Error Google Chrome Console
-
Hello,
Could you please help me in order to fix the follwing error from Google Chrome Console:
“Uncaught ReferenceError: newscrunch_missed_settings is not defined”-
This topic was modified 1 year, 7 months ago by
ciucaadrian11.
The page I need help with: [log in to see the link]
-
This topic was modified 1 year, 7 months ago by
-
Hi
Thanks for contacting to us.
To fix the issue follow the given below instruction.
- Locate
script.php:- Navigate to your WordPress theme folder for Newscrunch.
- Go to
wp-content/themes/Newscrunch/inc/script/and find thescript.phpfile.
- Replace the Code:
- Open
script.phpin a code editor. - Copy and replace the existing code in
script.phpwith the updated code from the link.
- Open
- Test the Update:
- Save the file and reload your website to check if the
newscrunch_missed_settingserror is resolved.
- Save the file and reload your website to check if the
If you run into any confusion during these steps, feel free to reach out for more guidance!
Regards
Newsblogger Support Team
Hello,
Thanks for the quick reply. I followed your instruction but the error persist.
I have replaced the existing code from wp-content/themes/newscrunch/inc/scripts/ with the one provided by you, I purged the cache, but I have the same error in the Google Chrome Console and Microsoft Edge.
Do you have any other solution in order to fix this error?
Thank you!
Hi @ciucaadrian11,
Thank you for your patience.
Could you please check if any plugins might be causing this issue? If possible, try deactivating each plugin one by one and see if the issue resolves, as there may be a conflict with the theme.
Let us know how it goes!
Best regards,
The Newsblogger Support TeamHello,
I deactivated all plugins and the issue persist.
Thank you!Hi
We have identified the cause of the console error. This issue is occurring because the “Missed Section” feature has not been enabled. Additionally, we found a minor conditional check error in our code that contributes to this.
We will correct this issue in our next update. Thank you for your patience, and please feel free to reach out if you have any further questions.
To fix the issue now follow the given below instruction.
1 Find the functions.php file located in your child theme Newsblogger directory.
2 Open the file and find the below line of code on line no 49.
wp_enqueue_script('newsblogger-custom', NEWSBLOGGER_TEMPLATE_DIR_URI . '/assets/js/custom.js', array('jquery'), '',true);3 And repalce it with below line of code.
if(get_theme_mod('hide_show_missed_section',true)==true):
wp_enqueue_script('newsblogger-custom', NEWSBLOGGER_TEMPLATE_DIR_URI . '/assets/js/custom.js', array('jquery'), '',true);
endif;Let me know if you have any confusion.
Thanks&Regard
The Newsblogger support team
Hello,
After I replaced the old code with the new one provided by you, there is a critical error.

Hi
This error is occurs bz you did not add endif;
More clarification kinldy see the snapshot and add endif;
Feel free to contact us if you have any issue.
Thanks
Hello,
My mistake. It seems that the error has been fixed.
Thank you for your support!Hi
I’m glad to hear that the issue has been resolved! We’re always committed to enhancing your website’s appeal. Should you need further assistance, please don’t hesitate to reach out.
If you’re satisfied with our theme and support, we’d greatly appreciate your feedback. Please take a moment to share your valuable thoughts here:
Regards
Newsblogger Support Team
- Locate
The topic ‘Error Google Chrome Console’ is closed to new replies.
