[Resolved] Latest Update Doesn’t Work With WP-Quiz

Home Forums Support [Resolved] Latest Update Doesn’t Work With WP-Quiz

Home Forums Support Latest Update Doesn’t Work With WP-Quiz

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1479543
    Ryan

    Hey guys, after updating to the new version, my quiz plugin (WP-Quiz) stopped working. If I change back to my old theme, the plugin works again. Was wondering if you could help me with this

    Here is an example (if you click on a quiz answer, it won’t move on to the next question)

    https://www.thronesquiz.com/who-would-be-your-best-friend-in-game-of-thrones/

    #1479625
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You have a javascript error on the page from a personality.js file saying jQuery is not defined.

    The theme won’t load jQuery unless it requires it, so scripts like the above need to do it if they need.

    You can force it to load like this:

    add_action( 'wp_enqueue_scripts', function() {
        wp_enqueue_script( 'jquery' );
    } );
    #1480303
    Ryan

    Hey Tom, where do I add that code?

    I tried to add it using the ‘Code Snippets’plugin but it did not work.

    #1480800
    Leo
    Staff
    Customer Support

    Hmm that code should work in Code Snippets.

    Did you clear all of your caching plugins or server cache after adding it?

    #1480827
    Ryan

    Hey Leo,

    Yes, I have purged my caching plugins and have also done so on Cloudflare. Still no luck unfortunately.

    #1480846
    Tom
    Lead Developer
    Lead Developer

    Can you temporarily disable your caching? The fact that it’s still saying jQuery is not defined means the function isn’t working on your site. That means your site is likely cached.

    #1480885
    Ryan

    Hey Tom,

    It turns out that it was a conflict between GP and Autoptimize.

    For anybody else who has the problem in the future, I unchecked the ‘Aggregate JS-files?’ button on the plugin and it now works perfectly.

    Thanks for the help guys.

    #1480887
    Tom
    Lead Developer
    Lead Developer

    This likely is a conflict between Autoptimize and the Quiz plugin, as GP doesn’t depend on jQuery for anything.

    Glad you got it sorted! 🙂

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