• Resolved humanbodylab

    (@humanbodylab)


    Hi,

    thank you for the great plugin, exactly what I was searching for.

    Unfortunately when clicking the “Check Answer” Buttons nothing happens. I receive following PHP Warning when saving a question:
    Warning: mysql_insert_id(): No such file or directory in /home/.sites/12/site2928/web/wp-content/plugins/quiz-tool-lite/scripts/actions.php on line 178

    Warning: mysql_insert_id(): A link to the server could not be established in /home/.sites/12/site2928/web/wp-content/plugins/quiz-tool-lite/scripts/actions.php on line 178

    Similar Warning when adding a new response options:
    Warning: mysql_insert_id(): No such file or directory in /home/.sites/12/site2928/web/wp-content/plugins/quiz-tool-lite/scripts/actions.php on line 514

    Warning: mysql_insert_id(): A link to the server could not be established in /home/.sites/12/site2928/web/wp-content/plugins/quiz-tool-lite/scripts/actions.php on line 514

    I guess the problem with the check answer button might be in connection with this warning?

    One small typo: wenn adding a new question the feedback tab there are two text boxes: the upper one has the title “Feedback if incorrect” – the lower one “Incorrect Feedback”. After saving the upper one changes to “Feedback if correct”

    Thank you in advance, appreciate your support!
    Gregor

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Alex Furr

    (@alexfurr)

    Hi Gregor and thanks for your feedback.

    I’ve never seen that error before, it suggests either that the database for the response options hasn’t been created or if it’s an error from the front end that the theme may be preventing the database connection.

    Could you send me the shortcode you are using to generate the question please.

    Also, can your confirm you’re running this on a multisite install?

    I’ll work on the typos this week. We’ve got a big release coming shortly so will work it into that.

    Alex

    Thread Starter humanbodylab

    (@humanbodylab)

    Hi Alex,

    thanks for your quick response.

    The table response_options is available and the options have been saved in the table.

    The used shortcode is [QTL-Question id=1]. See an example here: https://www.humanbodylab.org/test-2/

    This is not a multisite installation.

    It seems to be a problem with the theme, as the button is working with the wp 2015 standard theme. Could you give me just one or two hints how to approach the problem?

    Thanks
    Gregor

    Plugin Author Alex Furr

    (@alexfurr)

    Hi Gregor,

    I’ve taken a quick look and don’t have an immediate solution for you – I’ve noticed during the testing that I’ve found some other themes that also don’t play nicely with the plugin. I THINK it may be a jquery conflict issue.

    Is it possible to get a copy of the theme you are using? That way I can troubleshoot more effectively and get a fix for you and other ASAP.

    Alex

    Plugin Author Alex Furr

    (@alexfurr)

    Last question – do you get the Warning: mysql_insert_id(): errors when you apply the wp 2015 theme and then edit the questions?

    Alex

    Thread Starter humanbodylab

    (@humanbodylab)

    Hi Alex,

    thank you!
    I even get the warning with the wp 2015 theme. If helpful I can give you access to the wordpress backend of the homepage. Otherwise how can I provide you with the theme?

    Thanks
    Gregor

    Thread Starter humanbodylab

    (@humanbodylab)

    Just read your message once more – to be more precisely:
    I get the warning only when saving the question the first time. Editing and updating a question is done without any warnings, in both themes.

    Gregor

    Thread Starter humanbodylab

    (@humanbodylab)

    Hi Alex,

    I found the problem/solution for the not working “Check Answer” Button:

    It’s the “.hidden” class in the css file in combination with my theme, which is based on bootstrap. Bootstrap uses the same name for a css class and this overrules the class in your plugin. It’s enough to rename the class in the plugin’s style.css (eg. to hidden_quiz) and adapt the /quizFrontEnd/draw.php file accordingly (there are two entries in this file).

    I can’t resolve the problem with the warnings, but have a work-around that’s ok for me …

    best
    Gregor

    Plugin Author Alex Furr

    (@alexfurr)

    Gregor -you are a superstar thank you.

    I’ll make the changes as you suggest, credit you and get it in the next release which is actually quite a big one.

    I’ll resolve this for now, but its good to know there is a temporary fix for sites using bootstrap. I’ll continue to try to troubleshoot the other SQL warnings.

    Thanks again, the world needs more helpful people like you ??
    Alex

    Plugin Author Alex Furr

    (@alexfurr)

    I’ve also found the cause of those SQL insert errors – thanks for spotting that. Legacy code that should never have been put in the first place. Will be fixed as well in the next release.

    Alex

    Thread Starter humanbodylab

    (@humanbodylab)

    Thank you alex for the support and thank you for the great plugin! ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Check Answer Buttons not working’ is closed to new replies.