Hi,
I'm using Moodle 2.8.5 ($release = '2.8.5+ (Build: 20150421)';) and JME plugin 2.11 ($plugin->release = '2.11 for Moodle 2.6+';).
I can create new jsme questions without problem.
I've restored a course from Moodle 2.7 containing questions created with the "old" jme plugin.
When I access the preview from the question bank I get messages like:
Notice: Undefined property: stdClass::$jmeoptions in /aplica/moodle/www/moodle/question/type/questiontypebase.php on line 865
Notice: Undefined property: stdClass::$width in /aplica/moodle/www/moodle/question/type/questiontypebase.php on line 865
Notice: Undefined property: stdClass::$height in /aplica/moodle/www/moodle/question/type/questiontypebase.php on line 865
And other times I get:
Detectado
un error de codificación, debe ser corregido por un programador: The
theme has already been set up for this page ready for output. Therefore,
you can no longer change the theme, or anything that might affect what
the current theme is, for example, the course.
Más información sobre este error
Debug info:
Stack trace when the theme was set up: <ul style="text-align: left"
data-rel="backtrace"><li>line 1648 of /lib/setuplib.php: call
to
moodle_page->initialise_theme_and_output()</li><li>line
774 of /question/type/questiontypebase.php: call to
bootstrap_renderer->__call()</li><li>line 774 of
/question/type/questiontypebase.php: call to
bootstrap_renderer->notification()</li><li>line 831 of
/lib/questionlib.php: call to
question_type->get_question_options()</li><li>line 865 of
/lib/questionlib.php: call to _tidy_question()</li><li>line
516 of /question/engine/bank.php: call to
get_question_options()</li><li>line 328 of
/cache/classes/loaders.php: call to
question_finder->load_for_cache()</li><li>line 1454 of
/cache/classes/loaders.php: call to
cache->get()</li><li>line 479 of
/question/engine/bank.php: call to
cache_application->get()</li><li>line 255 of
/question/engine/bank.php: call to
question_finder->load_question_data()</li><li>line 274 of
/question/engine/bank.php: call to
question_bank::load_question_data()</li><li>line 46 of
/question/preview.php: call to
question_bank::load_question()</li></ul>
Error code: codingerror
Stack trace: - line 1832 of /lib/pagelib.php: coding_exception thrown
- line 914 of /lib/pagelib.php: call to moodle_page->ensure_theme_not_set()
- line 2964 of /lib/moodlelib.php: call to moodle_page->set_course()
- line 56 of /question/preview.php: call to require_login()
Output buffer:
<div class="alert alert-error">Failed to load question options
from the table qtype_jme_options for questionid 97</div>
Notice: Undefined property: stdClass::$jmeoptions in
/aplica/moodle/www/moodle/question/type/questiontypebase.php on line 865
Notice: Undefined property: stdClass::$width in
/aplica/moodle/www/moodle/question/type/questiontypebase.php on line 865
Notice: Undefined property: stdClass::$height in
/aplica/moodle/www/moodle/question/type/questiontypebase.php on line 865
When I click on edit the question, I get:
Failed to load question options from the table qtype_jme_options for questionid 96
Notice: Undefined property: stdClass::$answers in /aplica/moodle/www/moodle/question/type/edit_question_form.php on line 328
On the one hand, it seems that the correct answers are not loaded and in the other hand it seems that there are no entries in the qtype_jme_options table for the imported questions.
Any idea what is happening?
Thanks!