• Resolved ISMPP

    (@ismpp)


    Hi all – Just recently the QSM plugin has started giving us a critical error message on our site. We’ve had to disable it. Can anyone please let us know what we should do to get it working again?

    Thank you in advance!

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

Viewing 11 replies - 16 through 26 (of 26 total)
  • Hi @ismpp ,

    I hope you’re doing well. Apologies for the delay in getting back to you.

    Thank you for updating the plugin to the latest version. I’m sorry to hear that you’re still experiencing issues. To ensure a quick resolution, I have shared the latest error log with our development team and marked it as a high-priority case. This will help expedite the review process and ensure that we provide a solution or the necessary troubleshooting steps as soon as possible.

    I will keep you updated with any information I receive from the development team.

    Thank you for your patience and cooperation.

    Best regards,
    Dhanush

    Thread Starter ISMPP

    (@ismpp)

    Thank you! We really need to get it working and to be able to pull the latest poll results as it’s been a month since it stopped working.

    Hi @ismpp ,

    I hope you’re doing well. My apologies for the delayed response.

    Our development team has reviewed the debug log you provided. Based on the identified error, we recommend the following steps to resolve the issue:

    A. Manually add ‘fixed_duplicate_questions’ to the options table.
    B. Alternatively, you can add the following function to functions.php to handle it automatically.

    Below is the relevant section of code that needs to be implemented:

      add_action(‘plugins_loaded’, function() {
      if (get_option(‘fixed_duplicate_questions’) === false) {
      add_option(‘fixed_duplicate_questions’, 1);
      }
      });

      Please give this a try and let us know if you encounter any issues. We appreciate your time and cooperation.

      Best regards,
      Dhanush


        Thread Starter ISMPP

        (@ismpp)

        Hello – can you provide me with the steps on how I add that code? We are a small non-profit with 10 people and do not have an IT person (well, I’m that person – if you understand what I mean).

        Thread Starter ISMPP

        (@ismpp)

        Can you please give more details on where I add in the custom code? Do I add it to the WP theme’s functions.php or to the QSM plugin? I just need more details on where to add the code. Please advise today if possible as we really need to get this plug in working again. Thank you!

        Thread Starter ISMPP

        (@ismpp)

        I tried to update in the Functions.php in the theme (at the end) and got this error message:

        Your PHP code changes were not applied due to an error on line 9061 of file wp-content/themes/Divi/functions.php. Please fix and try saving again.Uncaught Error: Undefined constant “‘plugins_loaded’” in wp-content/themes/Divi/functions.php:9061 Stack trace: #0 wp-settings.php(672): include() #1 wp-config.php(54): require_once(‘/home3/ismppnew…’) #2 wp-load.php(50): require_once(‘/home3/ismppnew…’) #3 wp-admin/admin.php(34): require_once(‘/home3/ismppnew…’) #4 wp-admin/theme-editor.php(10): require_once(‘/home3/ismppnew…’) #5 {main} thrown

        Thread Starter ISMPP

        (@ismpp)

        I added it again and it took it but when I enabled QSM I got the following error message:

        Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home3/ismppnew/public_html/wp-content/plugins/quiz-master-next_old/php/classes/class-qsm-migrate.php:142 Stack trace: #0 /home3/ismppnew/public_html/wp-content/plugins/quiz-master-next_old/php/classes/class-qsm-install.php(2028): QSM_Migrate::fix_duplicate_questions() #1 /home3/ismppnew/public_html/wp-includes/class-wp-hook.php(324): QSM_Install->update(”) #2 /home3/ismppnew/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #3 /home3/ismppnew/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /home3/ismppnew/public_html/wp-admin/admin.php(175): do_action(‘admin_init’) #5 /home3/ismppnew/public_html/wp-admin/plugins.php(10): require_once(‘/home3/ismppnew…’) #6 {main} thrown in /home3/ismppnew/public_html/wp-content/plugins/quiz-master-next_old/php/classes/class-qsm-migrate.php on line 142

        There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.

        Learn more about troubleshooting WordPress.

        Hi @ismpp ,

        I hope you had a great weekend. Apologies for the delayed response.

        add_action(‘plugins_loaded’, function() {
        if (get_option(‘fixed_duplicate_questions’) === false) {
        add_option(‘fixed_duplicate_questions’, 1);
        }
        });

        I would like to request you to add the following code to qsm's function.php file. The file path is:

        php >> admin >> function.php

        Screenshot link

        This update should help resolve the issue. Please let me know if you need any further assistance.

        Thank you for your time and cooperation.

        Best regards,
        Dhanush

        Thread Starter ISMPP

        (@ismpp)

        Is there any way we can do a Zoom call so I can show you what’s going on? I added it to the end of the code in functions.php and got this error message:

        Fatal error: Uncaught Error: Undefined constant “‘plugins_loaded’” in /home3/ismppnew/public_html/wp-content/plugins/quiz-master-next/php/admin/functions.php:1660 Stack trace: #0 /home3/ismppnew/public_html/wp-content/plugins/quiz-master-next/mlw_quizmaster2.php(278): include_once() #1 /home3/ismppnew/public_html/wp-content/plugins/quiz-master-next/mlw_quizmaster2.php(160): MLWQuizMasterNext->load_dependencies() #2 /home3/ismppnew/public_html/wp-content/plugins/quiz-master-next/mlw_quizmaster2.php(1230): MLWQuizMasterNext->__construct() #3 /home3/ismppnew/public_html/wp-admin/includes/plugin.php(2387): include_once(‘/home3/ismppnew…’) #4 /home3/ismppnew/public_html/wp-admin/plugins.php(194): plugin_sandbox_scrape(‘quiz-master-nex…’) #5 {main} thrown in /home3/ismppnew/public_html/wp-content/plugins/quiz-master-next/php/admin/functions.php on line 1660

        Thread Starter ISMPP

        (@ismpp)

        Ok – I think it took and it appears to be working. Thanks for your help.

        Hi @ismpp ,

        I hope you are doing well.

        I’m glad to hear that the issue has been successfully resolved. This was possible due to your dedicated time and cooperation. We truly appreciate your effort in sharing the error logs, which helped in identifying the problem effectively.

        If you need any further assistance or information, please feel free to reach out.

        Wishing you all the best with your projects!

        Thank you for your time and cooperation.

        Best regards,
        Dhanush

      Viewing 11 replies - 16 through 26 (of 26 total)

      The topic ‘critical error’ is closed to new replies.