• Love the plugin – it so nearly works perfect
    Have latest version Version: 2.5.2 on WordPress 3.2.1.

    2 errors i receive using the survey
    After a completion of quiz the instant email is sent to my inbox
    I click the link ….comwp-admin/admin.php?page=wpsqt-menu&section=results&subsection=mark&id=3

    But it shows an error Warning: Division by zero in /home/human/public_html/wp-content/plugins/wp-survey-and-quiz-tool/pages/admin/results/mark.php on line 121

    and accross the top i get
    No such Wpsqt_Page_Main_Edit_Mark class
    No such Wpsqt_Page_Main_Sections_Mark class
    etc

    any ideas Ollie?

Viewing 15 replies - 16 through 30 (of 67 total)
  • Plugin Author Ollie Armstrong

    (@olliea95)

    Its saving the results for me, are you certain you have the ‘save results’ option set to yes in the quiz edit page?

    Ollie

    Thread Starter zanet

    (@zanet)

    will do

    Plugin Author Ollie Armstrong

    (@olliea95)

    Apologies, I said the wrong file. Can you stick it in lib/Wpsqt/Tokens.php at line 110?

    The output should come just after you do the quiz. You may want to edit your previous post and get rid of the code.

    Also, if its that long then you can paste it to pastebin.com and put the URL here – just saves a massive post.

    Cheers,
    Ollie

    The save results is checked correctly – I checked it before I posted.

    The results email comes out for a new quiz I created just to test results not working

    Plugin Author Ollie Armstrong

    (@olliea95)

    Very strange, just tested and works fine for me. If you don’t have anything too important then can you do an uninstall from the maintenance page and then remove the plugin directory then reinstall it and test again?

    Already did the deactivate>delete > install plugin bit.

    Still nothing.

    Plugin Author Ollie Armstrong

    (@olliea95)

    May be worth doing the uninstall because this will clear the database tables and plugin options. You can do a backup if you want to.

    Ollie

    Thread Starter zanet

    (@zanet)

    Hi Ollie
    here is the output from Tokens.php

    https://pastebin.com/npmFfYWB

    Thread Starter zanet

    (@zanet)

    Hi astechsolutions

    Yes i have the same issue too

    All these submissions arent showing in the WP Survey And Quiz Tool – Results

    Just a few previous entrees – i wonder if this is connected?

    Plugin Author Ollie Armstrong

    (@olliea95)

    Okay, by the looks of things its not being given a result_id, therefore its not being stored in the database correctly and thus the email URL doesn’t work.

    Strange thing is it works for me. If you could grab the latest version from the GitHub repo, as that is exactly the same as my copy and tell me if the problem persists?

    Used the github version of the plugin didn’t save the results either.

    Plugin Author Ollie Armstrong

    (@olliea95)

    Okay, just tried on a fresh install and it no longer works. At least I can reproduce the error now. Working on a fix.

    Thread Starter zanet

    (@zanet)

    great news you can see the problem – thanks Ollie

    Plugin Author Ollie Armstrong

    (@olliea95)

    Okay, I believe it was just a stupid database error I made. Right, you are going to have to do an uninstall in the maintenance page, remove the plugin files, download the latest version from the github link above (just updated it), install as usual and then try.

    I’ll push the update to the WP repo but it will take some time to update so just grab from GitHub then update from WP repo when it allows you to.

    Sorry about this. Just out of curiosity, did you both install version 2.5.3 from fresh or did you upgrade from a previous version?

    Thread Starter zanet

    (@zanet)

    I upgraded from 2.5.2 to version 2.5.3

    Will try and let you know how it goes

Viewing 15 replies - 16 through 30 (of 67 total)
  • The topic ‘2 errors i receive using the survey’ is closed to new replies.