• 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”

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Akhilesh

    (@atul-rahman)

    Hi

    Thanks for contacting to us.

    To fix the issue follow the given below instruction.

    1. Locate script.php:
      • Navigate to your WordPress theme folder for Newscrunch.
      • Go to wp-content/themes/Newscrunch/inc/script/ and find the script.php file.
    2. Replace the Code:
      • Open script.php in a code editor.
      • Copy and replace the existing code in script.php with the updated code from the link.
    3. Test the Update:
      • Save the file and reload your website to check if the newscrunch_missed_settings error is resolved.

    If you run into any confusion during these steps, feel free to reach out for more guidance!

    Regards

    Newsblogger Support Team

    Thread Starter ciucaadrian11

    (@ciucaadrian11)

    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!

    Akhilesh

    (@atul-rahman)

    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 Team

    Thread Starter ciucaadrian11

    (@ciucaadrian11)

    Hello,
    I deactivated all plugins and the issue persist.
    Thank you!

    Akhilesh

    (@atul-rahman)

    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

    Thread Starter ciucaadrian11

    (@ciucaadrian11)

    Hello,

    After I replaced the old code with the new one provided by you, there is a critical error.

    Akhilesh

    (@atul-rahman)

    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

    Thread Starter ciucaadrian11

    (@ciucaadrian11)

    Hello,

    My mistake. It seems that the error has been fixed.
    Thank you for your support!

    Akhilesh

    (@atul-rahman)

    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:

    NewsBlogger Theme Review

    Regards 

    Newsblogger Support Team

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.