• 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 - 1 through 15 (of 67 total)
  • Plugin Author Ollie Armstrong

    (@olliea95)

    Don’t get the errors you specified but I do get a load of other errors. I know the issue, the URL is incorrect (probably forgot to update it after I changed the way the marking works).

    Will push a fix for this and your other issue asap.

    Ollie

    Thread Starter zanet

    (@zanet)

    Thanks Ollie
    Its so refreshing to have you answering plugin queries so quickly

    Plugin Author Ollie Armstrong

    (@olliea95)

    Hah, sure. Pushed the update, should be available for download from the plugin directory within 15 minutes. Fixes both issues you have.

    Ollie

    Thread Starter zanet

    (@zanet)

    Awesome! I’ll install and report back

    Thread Starter zanet

    (@zanet)

    Hi Ollie
    Just updated…
    The HTML/Text now works a dream – nice one

    The email WPSQT Bot notification link still doesn’t work

    The address is ….com/wp-admin/admin.php?page=wpsqt-menu&section=results&subsection=mark&id=1&resultid=0

    Takes me to the mark page where it says
    Total Points 0 out of 0
    Warning: Division by zero in /…/…/public_html/wp-content/plugins/wp-survey-and-quiz-tool/pages/admin/results/mark.php on line 121

    Plugin Author Ollie Armstrong

    (@olliea95)

    Right okay, looks like it still isn’t assigning the correct resultid. Would you be able to take the quiz again and send me the link that it send you the second time?

    Also, if you could clear your cache – just in case.

    Cheers,
    Ollie

    Thread Starter zanet

    (@zanet)

    ok will do – i will take it on a different browser – to double make sure of the cache issue

    Thread Starter zanet

    (@zanet)

    Still exactly the same

    I will try and make a new quiz and see if that helps

    any other ideas?

    Plugin Author Ollie Armstrong

    (@olliea95)

    Okay, seems to be an issue with it grabbing the resultid. Works fine on my install so not quite sure. Will take a look on a fresh install.

    Will get back to you as soon as I can get it fixed.

    EDIT:
    Would you be able to add the line
    echo '<pre>'; var_dump($_SESSION['wpsqt']); echo '</pre>';
    to lib/Wpsqt/Mail.php at about line number 110. Then if you could do the quiz and copy the var_dump output to here so I can see if its got the correct id.

    Ollie

    Thread Starter zanet

    (@zanet)

    Yes will do
    Just a point that might help before i add the code

    If i go to the results from within the admin
    it works fine

    eg https://&#8230;..com/wp-admin/admin.php?page=wpsqt-menu&section=results&subsection=quiz&id=1

    Plugin Author Ollie Armstrong

    (@olliea95)

    Is this on the mark result view? If not could you get me the URL of that page?

    Ollie

    Thread Starter zanet

    (@zanet)

    Sorry that was the result view
    The heading is:
    WP Survey And Quiz Tool – Results
    Shows passes and fails etc

    The Mark view is
    https://www.mydomain.com/wp-admin/admin.php?page=wpsqt-menu&section=results&subsection=mark&id=1&resultid=3

    Plugin Author Ollie Armstrong

    (@olliea95)

    Okay, that’s better. That’s all working fine. Can you add the vardump and get me the output?

    Thread Starter zanet

    (@zanet)

    yes will do

    Hi Ollie and zanet,

    What I’ve noticed after the upgrade – results are not being saved at all. If we got to the results section it only shows the old values and no new entries.

    Can you confirm this zanet?

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