Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • I had the same question and found very little other than a list of Hooks with no parameters or additional data. After a number of hours of trial and error I did find a solution that worked for me and thought I would share here. In my case I ran the qsm_quiz_submitted hook which looks something like:

    add_action(‘qsm_quiz_submitted’, ‘mmm_get_data’, 10, 4 );
    function mmm_get_data( $results_array, $results_id, $qmn_quiz_options, $qmn_array_for_variables ) {
    …Your code here to capture quiz data and do something with it. Note running an echo here will probably break the quiz plugin…
    }

    I found that the $qmn_array_for_variables array stored all of the quiz results data that I needed. For reference, here is an output of how that array is structured. I will leave it up to you to figure out how to grab the data you need. The second array will need to be looped through to get each question/answer. The ‘correct’ field lists if the answer was ‘correct’ or ‘incorrect’. All of the other fields are pretty self explanatory. Best of luck!

    $qmn_array_for_variables = array (
    'quiz_id' => '1',
    'quiz_name' => 'test',
    'quiz_system' => '0',
    'quiz_payment_id' => '',
    'user_ip' => '###.###.###.###',
    'form_type' => '0',
    'user_name' => 'Test Test',
    'user_business' => 'None',
    'user_email' => 'test@test.com',
    'user_phone' => '##########',
    'user_id' => 0,
    'timer' => 10,
    'timer_ms' => 0,
    'time_taken' => '05:14:21 PM 02/05/2023',
    'contact' =>
    array (
    0 =>
    array (
    'label' => 'Name',
    'value' => 'Test Test',
    'use' => 'name',
    'type' => 'text',
    ),
    1 =>
    array (
    'label' => 'Email',
    'value' => 'test@test.com',
    'use' => 'email',
    'type' => 'email',
    ),
    2 =>
    array (
    'label' => 'Phone',
    'value' => '##########',
    'use' => 'phone',
    'type' => 'text',
    ),
    ),
    'hidden_questions' => NULL,
    'total_points' => 0,
    'total_score' => ##.##,
    'total_correct' => #,
    'total_questions' => #,
    'question_answers_display' => '',
    'question_answers_array' =>
    array (
    0 =>
    array (
    0 => '',
    1 => 'Submitted Answer',
    2 => 'Correct Answer',
    3 => '',
    'user_answer' =>
    array (
    1 => 'Submitted Answer',
    ),
    'correct_answer' =>
    array (
    0 => 'Correct Answer',
    ),
    'correct' => 'correct',
    'id' => '1',
    'points' => 0,
    'category' => '',
    'multicategories' =>
    array (
    ),
    'question_type' => '0',
    'question_title' => 'Test Question #1',
    'user_compare_text' => '',
    'case_sensitive' => '',
    ),
    ),
    'total_possible_points' => #,
    'total_attempted_questions' => #,
    'minimum_possible_points' => #,
    'comments' => '',
    'response_saved' => 1,
    'result_id' => ##,
    'result_unique_id' => '######',
    )
    Thread Starter millermultimedia

    (@millermultimedia)

    Thanks for the quick response back Alim. I have narrowed the issue down to a PHP setting. It appears that PHP is timing out before the entire upload/transfer to Google process can finish when I upload a large video file. Smaller videos upload just fine.

    I did a quick scan of all of the sites I manage. Out of around 40 sites 3 were having issues. The three with issues had the 7.1.14 update. Two were conflicts with WPS Hide Login. The third was with the plugin “Responsive Menu”. The Responsive Menu conflict was breaking the entire site while the WPS Hide Login conflict only appeared on pages with logins.

    I did an upgrade to 7.1.15 on one of the problematic sites and am seeing no new issues.

    I was getting White Screens due to the PHP error:

    PHP Fatal error: Cannot redeclare Composer\Autoload\includeFile() (previously declared in /public_html/wp-content/plugins/wps-hide-login/vendor/composer/ClassLoader.php:442) in /public_html/wp-content/plugins/wordfence/vendor/composer/ClassLoader.php on line 445

    I applied the @fanta8897 fix and was able to log back into the site and no more white screens. I will check a few other sites as I run this plugin combination on about 40 different WordPress sites.

    The ClassLoader is also conflicting with WPS Hide Login. PHP errors are preventing logging into sites and also loading pages which have a front-end login which is also loading WPS Hide Login.

    I have found that going to the Plugins screen, deactivating and reactivating the Stop XML plugin removed the error message. I then go to Settings ==> Stop XML-RPC Attack and regenerating the htaccess to be sure all is working as it should.

    You will need to view the source of your page where the Search and Filter is being used. Each Category will have an

    • with a class defined along the lines of cat-item-#. Write down the numbers of the categories you wish to hide. Now go to Appearance ==> Editor. Open your styles.css document add the following:
      .searchandfilter .cat-item.cat-item-# { display: none!; }
      replace # with the number of the category you wish to hide. To hide multiple categories simply add a comma followed by .searchandfilter .cat-item.cat-item-# again replacing # with the second categories number. Repeat as needed.
    Thread Starter millermultimedia

    (@millermultimedia)

    Thanks to the developer for an incredibly quick response and for finding and fixing the conflict. The issue has been resolved.

    Thread Starter millermultimedia

    (@millermultimedia)

    Slider Revolution is a commercial plugin and not available on the WordPress site. My site is under development and I am unable to post a URL here. I have sent you a response through your website. Thank you for the speedy reply.

    Thread Starter millermultimedia

    (@millermultimedia)

    Thanks for the suggestion Shahriar. After additional testing I found out that the SEO manager for the site had added a line of code to the header file in the template which in turn loads a script from from Adobe Campaign. This was done without my knowledge. For some reason this tracking code is causing the conflict. The solution for now was to disable that script.

    Thread Starter millermultimedia

    (@millermultimedia)

    For anyone else having this issue, the solution turned out to be very simple. In the Custom Post Widget settings there is an option to “Not apply content filters” When I enabled this option the issue went away.

    Thread Starter millermultimedia

    (@millermultimedia)

    That was quick. I received the updated JS file and ran a test with the new file. I am still having the same issue. I did another test and removed the contents of the wpmu-ui.2.min.js, leaving an empty file. This did resolve the issue in LayerSlider although I’m sure it will cause all kinds of issues with Membership 2 so I put the file back to it’s original state. In LayerSlider the Attribute error is occurring on the following line:

    if(jQuery(this).attr(‘name’).substr(-2, 2) == ‘[]’) {

    I understand that LayerSlider is a premium plugin, so it may not be possible for your team to troubleshoot. Is there anything else I can do on my end to try and resolve the issue? If it helps, your team may email me direct.

    BTW, unexpected side effect. I disabled the Membership plugin to test. When I re-enabled it all of my protection rule settings were lost (Menu Items and URL Restrictions).

    Thread Starter millermultimedia

    (@millermultimedia)

    Hello Bojan,

    Thank you for the quick response. I went to the post on your site’s forum but am not seeing the attachment. I have sent in a request via your site’s contact form, using the “I have a different question” option with my email address. I’m hoping you or your developer will be able to email me the JS file. I will then test and post the results.

    Thanks again!
    –GM

Viewing 13 replies - 1 through 13 (of 13 total)