• Resolved KTS915

    (@kts915)


    This plugin looks like it has a lot of promise. Unfortunately, on activation in debug mode, I get these warnings:

    Notice: Undefined index: action in ~/wp-content/plugins/quiz-tool-lite/admin/home.php on line 13 Notice: Undefined variable: feedback in ~/wp-content/plugins/quiz-tool-lite/admin/home.php on line 33 Notice: Undefined index: download in ~/wp-content/plugins/quiz-tool-lite/functions.php on line 240

    And, as I use it, I get: Notice: Undefined variable: reflectionClause in ~/plugins/quiz-tool-lite/scripts/qry-functions.php on line 64 Notice: Undefined variable: feedback in ~/wp-content/plugins/quiz-tool-lite/admin/questions.php on line 21

    Actually, there are lots more warnings like this. Could you please turn on debug mode and address these bugs?

    https://www.ads-software.com/plugins/quiz-tool-lite/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter KTS915

    (@kts915)

    Upgrade to latest version fixes many issues and now makes the plugin useable. Many thanks! But there are still some unresolved issues:

    Incorrect Use of wp_enqueue_script()
    Used in wp-includes/general-template.php on line 2248.
    Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks.
    This message was added in version 3.3.

    Incorrect Use of wp_enqueue_script()
    Used in wp-includes/general-template.php on line 2249.
    Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks.
    This message was added in version 3.3.

    Plugin Author Alex Furr

    (@alexfurr)

    Hi,

    Thanks for the feedback! I will certainly, turn in debug mode and check for errors.

    I was pretty sure I had got the enqueue scripts setup correctly and the general-template.php file is not part of my plugin, so I’m slightly confused though.

    Will debug tomorrow and get back to you.

    Alex

    Thread Starter KTS915

    (@kts915)

    Thanks very much for the swift response, Alex.

    The reference to the general-template.php is how debug mode tells you where the message it is generating is coming from. It’s not part of the problem, and so it’s nothing you need to fix. If you get the enqueuing how WordPress wants it (and I must say that I find enqueuing scripts incredibly confusing anyway), that message will simply go away.

    Thanks again! I’m really looking forward to trying this out bug-free!

    Plugin Author Alex Furr

    (@alexfurr)

    OK all sorted. Annoyingly it was the thickbox code that was setup incorrectly – I’d done it correctly for my styles, but didn’t realize the thickbox stuff ALSO had to be done in the right order.

    V 1.4.7 should now be available.

    Thread Starter KTS915

    (@kts915)

    Sorry, but I’m still getting the enqueuing errors. And I’m also now getting this after editing a response option:

    Notice: Undefined index: newResponse in ~/wp-content/plugins/quiz-tool-lite/scripts/actions.php on line 425 Notice: Undefined index: responseCorrectFeedback in ~/wp-content/plugins/quiz-tool-lite/scripts/actions.php on line 426 Notice: Undefined index: responseIncorrectFeedback in ~/wp-content/plugins/quiz-tool-lite/scripts/actions.php on line 427

    Please don’t misunderstand me. I am not really complaining. Actually, the reverse — the more I use this plugin, the more I think it has to offer and the more I like it. That’s what makes me so keen to get these bugs squashed.

    Thank you for your work in both putting this plugin together and addressing these issues.

    Plugin Author Alex Furr

    (@alexfurr)

    hey, no problem. Glad its of use.

    I’m not getting any enqueue errors which is strange. Which page are you seeing it on? Can you please clear your cache and try again.

    I’ve also found and eliminated those other debug warnings but won’t be able to update the plugin until next week. Happy to send you the single file that fixes it though. Let me know if you want it and can mail directly.

    Alex

    Thread Starter KTS915

    (@kts915)

    Alex,

    You are right about the caching. It was my browser cache (I’m not running any cahing on the site itself.)

    I can wait till next week for the revised version. I won’t have a chance to get back to this until then anyway.

    Thanks again!

    Hi,

    I just installed this plugin and it seems to work really well for what I need – basically I need to display one random question from a pool (pot) to users and display some feedback based on their responses. I also need to record their answers. When I tried to see the results I got an error message:
    “Fatal error: Class ‘TT_Example_List_Table’ not found in /home/[…]/public_html/[…]/wp-content/plugins/quiz-tool-lite/admin/results.php on line 488” (please note that I removed some of the folder names and replaced them with […])

    Can you please let me know why this is happening, what the problem may be and how to fix it?

    Also, since I can’t see the results I don’t know how the results page looks like. Does it display the question and the user’s answer or only the user’s score? I would really need to know the specific question they answered and the option they selected.

    Thanks,
    Peter

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Warnings and error messages’ is closed to new replies.