Viewing 15 replies - 1 through 15 (of 27 total)
  • Plugin Author DCoda

    (@dcoda)

    Sorry for the oversight. It should tell you on the forms page the code what you need to install. It seems to have got removed in the upgrade. We’ll get a new release to sort this.

    the syntax to insert the sort is [quizme form=”formname”]

    Thread Starter JimmyAL

    (@jimmyal)

    Thanks, it works.
    But, when submitting the quiz it shows me this:
    Parse error: syntax error, unexpected T_AS in /home/jimmyal/public_html/wp-content/plugins/quizme/library/base/view.php(107) : eval()’d code on line 1

    Plugin Author DCoda

    (@dcoda)

    Just to be sure, when you say submitting the quiz, you mean submitting the form created by the quiz, not submitting any changes to the quiz.

    Its a very strange problem.
    Can you post a diag file: click on the spanner icon on the forms page and and post the diagnostic data here. To start with lets just do the basic diag info.

    Thanks, you your help in sorting this
    -D

    Thread Starter JimmyAL

    (@jimmyal)

    Sorry for being so late. Here is the data:
    [diag]eNp1zk0OgjAQBeC7zN6G0oJxOIMLT2AKwdiE/uiABg13t1NxZdi1k/e+GYMa34RSIpgYB9uZ0QYPjUHFc43gjeuhIawRTpN9HfNnj/Do75SjhBVCKbQo+M1SiIycrb8ElspVag39pFuSvqxCoKldFV4goVmWPI/XyHXJ9b+FlVBCpyglHp5bwaQoIXMsddxMt2EjKWs2C3GQuy44N3k7znzJB952V8s=[/diag]

    Plugin Author DCoda

    (@dcoda)

    I cannot see any cause with that level of diag info, you are running a newer version of php than out test version but that should not be a problem.

    What OS are you using?
    Do this happen with the default quiz or just your own creation?

    Thread Starter JimmyAL

    (@jimmyal)

    Both the default quiz and the one created by me show this issue. I am on a linux hosting!

    Plugin Author DCoda

    (@dcoda)

    if you could tick all the boxes on the diag page, and then post the diags using this contact form
    https://dcoda.co.uk/contact/

    Plugin Author DCoda

    (@dcoda)

    Thanks for the file. We will review it to find any difference between the test systems and yours to track down the problem.
    We’ll let you know when we have something to try.

    Regards
    D

    Thread Starter JimmyAL

    (@jimmyal)

    Thank you :)!

    Plugin Author DCoda

    (@dcoda)

    Can’t sport anything that should cause that error. Its a syntax error which it what seems odd, that should occur on all systems, and the one it infers does not appear in the code.
    please install this test version
    https://downloads.www.ads-software.com/plugin/quizme.2.4.1.debug1.zip
    it has a few display markers to help narrow down the location of the objectionable line of code.

    Regards D

    Thread Starter JimmyAL

    (@jimmyal)

    Well, the error is surely different now : `[1][2][3][6]
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/jimmyal/public_html/wp-content/plugins/quizme/library/base/view.php(107) : eval()’d code on line 1`
    I cannot find, however, any error in the view file!

    Plugin Author DCoda

    (@dcoda)

    Thank you for persisting with this ??

    The new messages tell me what parts of the code are executing ok.
    There would be no visible problems with view.php, the line in question is dealing with the responses, it is loading them and executing them as php.
    The fault does look like it is in the saved responses.
    please try
    https://downloads.www.ads-software.com/plugin/quizme.2.4.1.debug2.zip

    I’ve narrowed the markers to get closer to the problem. Also it should now display the code it is trying to execute to produce the response. This code is syntactically correct , I just want to see if it actually loading in the correct saved option.

    Regards D

    Thread Starter JimmyAL

    (@jimmyal)

    I have no problem in persisting with this. As long as my website will be mainly based on this plugin, it is in my interest!
    Now the error is slightly different, containing some php

    ===========<?php echo "[a]";if($this->answers>0): ?><div class='v23v'><p>	<b>You Scored</b> <?php echo $this->correct;?> out of a possible <?php echo $this->answers;?>.</p><hr/><?php endif;?><?phpecho "[b]";foreach ( $this->fields as $field ):	if($field->has_answer()):?> <fieldset class='<?php echo $field->correct(true);?>'>	 <label class='question' for='<?php $field->field_id(); ?>'><?php echo $field->question; ?></label>	 <p><b>Correct answer: </b><?php echo $field->answer; ?></p>	 <p class='answered'><b>You answered: </b><?php echo $field->html_value(); ?></p>	</fieldset>	<?php else:	 echo "<br/>". $field->question . ":<br/>" . $field->html_value() . "<br/>";	endif;?><?php endforeach;if($this->answers>0):?></div><?php endif?>===========[I][II]
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/jimmyal/public_html/wp-content/plugins/quizme/library/base/view.php(107) : eval()’d code on line 1
    [III]

    Plugin Author DCoda

    (@dcoda)

    Well its loading the correct code, and it should execute it without any erros just like on our test systems, even though yours is a slightly different version and using fast/cgi unlike ours.
    So before we get deep down into checking every line, Here is a test version that has been reformatted and the syntax slightly changed to see if that helps.

    https://downloads.www.ads-software.com/plugin/quizme.2.4.1.debug3.zip

    Thread Starter JimmyAL

    (@jimmyal)

    Well, it still doesn’t work. But thanks for the efforts, anyway!
    PS: I tried it on two different hosts (Tikolah and Hostgator) and in both cases the error was the same!

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘[Plugin: QuizMe] How to publish quizes’ is closed to new replies.