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

    (@olliea95)

    Stefan,

    Having trouble implementing it, don’t suppose you could take a look? The function thats run when the poll finishes is in the shortcode class called finishQuiz().

    If you can’t do it I’ll get one of my colleagues to take a look.

    Ollie

    The backup worked like a charm … restored all my quizes. But the results dont seem to get saved.

    Any tricks I could try. I would hate to have to type all the content again.

    Plugin Author Ollie Armstrong

    (@olliea95)

    Do you mean that the results from the backup didn’t get restored?

    Ollie

    The results got restored. I’m facing the older issue where the results from taking the quiz again are not being saved.

    Plugin Author Ollie Armstrong

    (@olliea95)

    Oh poop. Could you go into PHPMyAdmin and tell me the structure of the quiz_surveys table? Basically check if there is a field called ‘datetaken’.

    Ollie

    Nope… I can only see id, name, setting, type, timestamp

    Plugin Author Ollie Armstrong

    (@olliea95)

    Right, can you check for the same field in the all_results table?

    all_results has the datetaken field ??

    Thread Starter zanet

    (@zanet)

    @astechsolutions did you try the reactivate as well as the first time i had to do deactivate and reactivate before it worked

    Plugin Author Ollie Armstrong

    (@olliea95)

    Do what zanet just suggested. Deactivate then activate.

    It should be working absolutely fine. Do you know if it was working okay before you imported?

    I reinstalled the plugin – created a test quiz – and it was working fine. I deleted this quiz then imported the old quizzes and the results stopped working.

    I deactivated and reactivated again right now – and then tried the quiz. Didn’t save the result ??

    Plugin Author Ollie Armstrong

    (@olliea95)

    Okay, I think that your results database is now fudged from the import.

    If you drop the all_results database then deactivate and the activate it should recreate it properly. Do a test after this to make sure it is all working.

    Then as long as you don’t mind privacy/security concerns could you upload your backup.sql file to pastebin.com and send the link? I will make sure that it is formatted correctly.

    Ollie

    YES!!

    It works now. I dropped the all_results database and deactivate/reactivated and now the results are saved.

    Thanks a million Ollie.

    Plugin Author Ollie Armstrong

    (@olliea95)

    No worries. I guess the backup script corrupted the results table. Will have to take a look at the and fix it!

    For now, don’t use the backup!

    Hey Ollie,

    I am somewhere on the half way more at the end ??

    I got everything working but one thing .. ANSWERS .. it never takes the correct answer

    Check: https://smemladi.smertv.sk/testy/test-autoskola/

    Try it and see the ajax call in firebug. I cant set it up to show the correct answer in result. Can you just tell me, what should I change or adjust or .. where in the code it is determined that which answer has been selected for the exact question.

    Until now, I have only made few changes (15 lines of code maybe) in the code so if we fix this issue, will be awesome.

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