moodleou / moodle-qtype_recordrtc

A manually graded Moodle question type, where the student records a short audio response to answer the question asked.
3 stars 11 forks source link

Exception - syntax error, unexpected '?' #8

Closed cyberjames closed 3 years ago

cyberjames commented 3 years ago

Hi,

Tried doing editing quiz and suddenly getting error message below.

Exception - syntax error, unexpected '?'

More information about this error (http://docs.moodle.org/36/en/error/moodle/generalexceptionmessage)

Debug info:
Error code: generalexceptionmessage

Stack trace:
* line 135 of /question/type/recordrtc/question.php: ParseError thrown
* line 100 of /question/engine/bank.php: call to include_once()
* line 154 of /question/engine/bank.php: call to question_bank::get_qtype()
* line 1171 of /mod/quiz/classes/output/edit_renderer.php: call to question_bank::get_all_qtypes()
* line 97 of /mod/quiz/classes/output/edit_renderer.php: call to mod_quiz\output\edit_renderer->initialise_editing_javascript()
* line 211 of /mod/quiz/edit.php: call to mod_quiz\output\edit_renderer->edit_page()

I'm using Moodle 3.6.6 (Build: 20190909) and PHP 7.0.33.

Any advise is deeply appreciated.

Thanks. James

timhunt commented 3 years ago

This plugin requires PHP 7.1. (And. PHP 7.0 is out of support anyway.) If you want to use this plugin, you will need to upgrade PHP.