Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1231026

    This continues the discussion that was started by another customer here: https://kriesi.at/support/topic/learndash-quiz-results-display-issue-2-0/#post-1230927

    Here are my original comments so we can add onto them:

    I have an identical problem with LearnDash and Enfold and I also get a crash with the code you provided above when I put it in my functions.php file. Only my error says, “There has been a critical error on your website.” (English–not translated from German as RawoAT stated his was).

    I do not have his code which you describe above in my functions.php file–so I do not think that is the reason for the crash. So it may be the code you supplied that is crashing.

    (BTW, the code he shows looks like it is to increase the default memory and goes in your PHP-config file to increase the memory size as per comments from LearnDash (WordPress default is 40mb, but it needs to be 128mb or higher if you use LearnDash and WooCommerce together).

    An interesting thing happens when your code is installed. After a quiz, LearnDash has a progress bar as it is calculating the quiz results–then it displays the quiz results and the ability to re-take, move on, etc. WHEN it is working correctly. When it is not working, it freezes about 90% through–that is the problem (I can’t continue). BTW, it works fine for about 2 – 3 quizzes in a row and THEN it freezes. So you must continue that way

    When I added your code, the test shows the results immediately and allows me to continue–but the progress bar still freezes at about 90% (again, you have to take 2 – 3 quizzes in a row before this happens (seems to work fine the first few times). Because the bar freezes–it may show the test score and display the buttons, but it may have not have written the results to the database. So it appears to work fine for 2 – 3 more quizzes and then it crashes and gives the “there has been a critical error on your website” error.

    BTW, this is only the behavior when you are logged in as a USER. I did not have the same results when I was logged in as an Administrator. In fact, I had the problem as an Admin and thought it would be the same as a USER. However, my problem as an administrator was resolved with an earlier fix in this forum. All I had to do was add the function,

    dd.course_progress {
    width: 100%;
    }

    I added this code to the theme’s “Quick CSS” section. When I did EVERYTHING worked fine for the ADMIN.

    But logging in as a user gave me the same problem–and your code fixed it (sort of), but then crashed the site.

    BTW, the support team at LearnDash worked on this off and on for several times (logging into my site). We turned all the plug-ins off but LearnDash and WooCommerce. They then used another theme and everything worked flawlessly. They tried a second basic free WordPress theme and everything worked flawlessly.

    So it was definitely something with Enfold. I also turned off the performance features, all cache is turned off, all plugins were turned off except WooCommerce (required) and LearnDash–and it was something in the theme. This ONLY happens when both of these two high-resource plugins are working–but they work together on THOUSANDS of sites just fine–so again, back to the Enfold theme.

    I have been struggling with this for over a month! I just continued adding my content, but now I am at an impass–if I want to keep the Enfold theme. I’m not using a child theme because I have never had a problem with Enfold enough to have to modify any of the original files–but I was willing to set it up if this fix worked (but it didn’t)–but I’m fine if we install it.

    I still have the QuickCSS code installed:
    dd.course_progress {
    width: 100%;
    }

    I have included login, etc. credentials in the private content below. Please document any changes if you make any..

    #1231492

    Hey tedfinch,
    Thank you for the login, I completed 5 tests as the user but didn’t see any errors on the results page. I also tested without the script from the other thread, but the results would not show, as expected. I also tested as the admin with the script activated, but I saw no difference to the user results.
    I tested with Chrome & Firefox on Windows with the dev tools console open to hopefully catch any backend errors, I was also hoping that I would experience your “crash” to see what the console’s error message is, but it didn’t happen.
    While you were working with LearnDash did they offer any solutions for showing the results?
    The script I wrote is only adding css $('.wpProQuiz_results').css({display: 'block'}); to allow the div to show, so I don’t think that it is causing the crash but once we can recreate the error we will know more, but it sounds like the error is happening randomly.
    Do you have any suggestions on how I can force the error, perhaps a longer test? If you link to a longer test please include the answer key.

    Best regards,
    Mike

    #1232853
    This reply has been marked as private.
    #1233238

    Hi,
    @Omery I have replied to your thread about this issue, please review and continue the discussion there.

    Best regards,
    Mike

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