• Resolved dystyler

    (@dystyler)


    Hi there,

    I’ve been using SlickQuiz for almost a year now and it has been working great. Today it stopped working and I’m not really sure why.

    I’ve been browsing all the support threads and most likely is something related to other plugin I have active on my website (although I wasn’t changing anything today). I tried to disable almost every plugin and could not make the SlickQuiz work again. I’ve upgraded today the plugin to the latest version (1.2.32).

    An example of this is: http://wikimetal.uol.com.br/site/wikimetal-quiz/

    (the ‘start’ button shows, but doesn’t work, probably due to the “Uncaught TypeError: Object [object Object] has no method ‘on'” message that’s appearing on the Dev Console)

    Also checked the footer.php of my theme and it does have this:
    <?php wp_footer(); ?>

    Could you please shed some light on this issue, since our quizzes are an important part of our website?

    Many thanks, Daniel.

    http://ww.wp.xz.cn/plugins/slickquiz/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author jewlofthelotus

    (@jewlofthelotus)

    @dystyler – Thanks for your thorough description and sorry to hear that the quiz has stopped working for you. You are right that the issue is with the Uncaught TypeError: Object [object Object] has no method 'on' message.

    This message is happening because it seems you’ve got an older version of jQuery (1.6.4) loading that doesn’t support the .on() method.

    There are various reasons that your version of jQuery could have changed, perhaps by updating a different plugin. But you’ll need at least version 1.7 of jQuery for SlickQuiz to work.

    Hope that helps get you a bit further in finding the problem!

    Thread Starter dystyler

    (@dystyler)

    I’ve updated JQuery installing the “jQuery Updater” plugin and still not working (now it’s not even showing the “Start” button) and it’s bringing the following 2 error messages on the Dev Console:

    Uncaught TypeError: Cannot read property ‘msie’ of undefined
    Uncaught TypeError: Object [object Object] has no method ‘colorbox’

    Any idea of what should I try?

    Many thanks, once again!
    Cheers, Daniel.

    Plugin Author jewlofthelotus

    (@jewlofthelotus)

    Do you have a colorbox plugin installed? If so, make sure that is up to date, or try disabling it…

    Thread Starter dystyler

    (@dystyler)

    I don’t think I have any colorbox plugin. The only one that might be is the “A5 Custom Login Page” which I’ve already upgraded and disabled it with no success whatsoever (same error messages, still)…

    Thread Starter dystyler

    (@dystyler)

    Actually, under my theme, I’ve found around 4 files (like header.php, archive.php, page.php and single.php) that have statements such as the following ones:

    ===
    <link rel=”stylesheet” href=”<?php bloginfo(‘template_directory’); ?>/js/colorbox/colorbox.css” type=”text/css” />
    ===
    <?php wp_enqueue_script(‘jquery.colorbox’, get_bloginfo(‘template_directory’). ‘/js/colorbox/jquery.colorbox-min.js’); ?>
    ===
    // Add colorbox to gallery
    $(‘.gallery’).each(function(index, obj){
    var galleryid = Math.floor(Math.random()*10000);
    $(obj).find(‘a’).colorbox({rel:galleryid, maxWidth:’95%’, maxHeight:’95%’});
    });
    $(“a.lightbox”).colorbox({maxWidth:’95%’, maxHeight:’95%’});
    ===

    Not sure what should I do…

    Plugin Author jewlofthelotus

    (@jewlofthelotus)

    Alright, looks like you’ll probably need to update the colorbox jquery plugin in your theme then.

    Unless you’re ok with getting rid of colorbox entirely, in which case try removing those colorbox lines from the template.

    Here’s their page for more info on what colorbox does: http://www.jacklmoore.com/colorbox/

    And here’s where you can grab the most up to date version of their code if you want to keep it: https://github.com/jackmoore/colorbox

    Thread Starter dystyler

    (@dystyler)

    Hi Julie,

    I’ve removed all the codes regarding the colorbox and, voilá, is working fine… (now, I have to check the whole website to make sure nothing got jammed… hahaha)… But at least, quiz is back!

    Thanks a million for your prompt answer and help!!!

    Cheers, Daniel.

    Plugin Author jewlofthelotus

    (@jewlofthelotus)

    Sweet! I wish I could tell you what changed to break things in the first place – something must’ve been updated, either the theme, or a plugin, or wordpress. Glad to hear you got it working though, and like I said, if you find that you still need the colorbox stuff, you should be able to replace the files in your theme with the newest version available on github.

    Thanks for using SlickQuiz!

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

The topic ‘Start Button Not Working’ is closed to new replies.