Invalid context id specified context::instance_by_id()

Invalid context id specified context::instance_by_id()

by Giovanni Moreno -
Number of replies: 0
He actualizado moodle de la version 3.8.9 a la 3.10.11, luego a la 4.1.2 y finalmente a la 4.1.3+. Ahora estoy experimentado un error cuando quiero ver las preguntas de un cuestionario. Me sale el siguiente error:

"Detectado un error de codificación, debe ser corregido por un programador: Invalid context id specified context::instance_by_id()

Más información sobre este error"

y en el debug se ve lo siguiente:

No se puede encontrar el registro de datos en la base de datos. (SELECT q.id, qc.id as category, q.parent, q.name, q.questiontext, q.questiontextformat, q.generalfeedback, q.generalfeedbackformat, q.defaultmark, q.penalty, q.qtype, q.length, q.stamp, q.timecreated, q.timemodified, q.createdby, q.modifiedby, qbe.idnumber, qc.contextid, qv.status, qv.id as versionid, qv.version, qv.questionbankentryid FROM {question} q JOIN {question_versions} qv ON qv.questionid = q.id JOIN {question_bank_entries} qbe ON qbe.id = qv.questionbankentryid JOIN {question_categories} qc ON qc.id = qbe.questioncategoryid WHERE q.id = :id [array ( 'id' => '179540', )])

  • line 645 of /question/engine/bank.php: call to moodle_database->get_record_sql()
  • line 587 of /cache/classes/loaders.php: call to question_finder->load_for_cache()
  • line 1860 of /cache/classes/loaders.php: call to cache->get_implementation()
  • line 405 of /cache/classes/loaders.php: call to cache_application->get_implementation()
  • line 501 of /question/engine/bank.php: call to cache->get()
  • line 255 of /question/engine/bank.php: call to question_finder->load_question_data()
  • line 1451 of /lib/questionlib.php: call to question_bank::load_question_data()
  • line 258 of /mod/quiz/classes/structure.php: call to question_has_capability_on()
  • line 841 of /mod/quiz/classes/output/edit_renderer.php: call to mod_quiz\structure->has_use_capability()
  • line 761 of /mod/quiz/classes/output/edit_renderer.php: call to mod_quiz\output\edit_renderer->get_action_icon()
  • line 547 of /mod/quiz/classes/output/edit_renderer.php: call to mod_quiz\output\edit_renderer->question()
  • line 520 of /mod/quiz/classes/output/edit_renderer.php: call to mod_quiz\output\edit_renderer->question_row()
  • line 95 of /mod/quiz/classes/output/edit_renderer.php: call to mod_quiz\output\edit_renderer->questions_in_section()
  • line 211 of /mod/quiz/edit.php: call to mod_quiz\output\edit_renderer->edit_page()

Notice: Trying to get property 'contextid' of non-object in /var/www/ehep/lib/questionlib.php on line 1480

Por favor su gentil ayuda




Average of ratings: -