• Resolved sureshtmp-456

    (@sureshtmp-456)


    I am using latest Watu 2.1.3. URL to my quiz page is https://www.clouni.com/watutest/. When the page loads in front end, Quiz displays, but having few issues.

    1) The two buttons (Next and Submit) does not work. I mean when I click no action.

    2) I have configured to display one question at a time. But it still show me all questions in one page.

    3) In the browser script console I get error


    ReferenceError: Watu is not defined
    [Break On This Error]

    Watu.qArr = question_ids.split(',');

    Any idea what could be wrong ?

    Thanks
    -Suresh

    https://www.ads-software.com/extend/plugins/watu/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Bob

    (@prasunsen)

    I don’t see the watu javascript loaded on the page at all. I don’t know what is the reason for this, but without loading the script nothing will work.

    Thread Starter sureshtmp-456

    (@sureshtmp-456)

    Could u pls give some hint to what to check or where to look ? I just created a page and put the shortcode.

    Plugin Author Bob

    (@prasunsen)

    I’m sorry, first time I see such problem from thousands installations and have no idea what could be the reason. You will need someone to look at your blog and debug it.

    Plugin Author Bob

    (@prasunsen)

    I can see it already works. Would you share what happened?

    Thread Starter sureshtmp-456

    (@sureshtmp-456)

    Here is how I fixed it…

    When I created the page by using the default template and put the shortcut it was not working. The reason is that the default template page was not including the WATU script.js and style.css. I assumed that shortcode will load these two files in the page. But it was not loading those two files.

    So I created a new PHP template file(Template WatoQuizPlugin) and put these two files explicitly in that template. Then I created the page using this template and put the shortcode. Now those two js and css are loaded and everything is working perfectly fine.

    I am not sure why default template was not working OR may be default template is not suppose to work.

    Anyway thanks a lot for responding.

    Plugin Author Bob

    (@prasunsen)

    Hm, this is really weird, as the script should load with every template (and they do for me).
    Anyway, good to hear you have solved it in creative way and thanks for letting me know how.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Uncaught ReferenceError: Watu is not defined’ is closed to new replies.