Upgraded from 2.4 to 3.6

Upgraded from 2.4 to 3.6

by sundarapandian madhvan -
Number of replies: 5

I am not aware to upgrade from 2.4 to 3.6 in step by step but i was upgraded now issue was once upload the course  with the user.then we have to create the quiz in that course it showing below error

Team please help me on this is issue.

Below issue was i am facing :

Invalid course module ID

More information about this error

Debug info: SELECT id,course FROM {course_modules} WHERE id IS NULL
[array (
)]
Error code: invalidcoursemodule

Stack trace:

  • line 1546 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
  • line 1522 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
  • line 7021 of /lib/accesslib.php: call to moodle_database->get_record()
  • line 2503 of /lib/grade/grade_item.php: call to context_module::instance()
  • line 1242 of /lib/grade/grade_grade.php: call to grade_item->get_context()
  • line 1054 of /lib/grade/grade_grade.php: call to grade_grade->get_context()
  • line 369 of /lib/grade/grade_object.php: call to grade_grade->add_feedback_files()
  • line 1025 of /lib/grade/grade_grade.php: call to grade_object->insert()
  • line 647 of /lib/grade/grade_category.php: call to grade_grade->insert()
  • line 567 of /lib/grade/grade_category.php: call to grade_category->aggregate_grades()
  • line 743 of /lib/grade/grade_item.php: call to grade_category->generate_grades()
  • line 1272 of /lib/gradelib.php: call to grade_item->regrade_final_grades()
  • line 2035 of /lib/grade/grade_item.php: call to grade_regrade_final_grades()
  • line 290 of /lib/gradelib.php: call to grade_item->update_raw_grade()
  • line 865 of /mod/quiz/lib.php: call to grade_update()
  • line 751 of /mod/quiz/lib.php: call to quiz_grade_item_update()
  • line 775 of /mod/quiz/locallib.php: call to quiz_update_grades()
  • line 1968 of /mod/quiz/attemptlib.php: call to quiz_save_best_grade()
  • line 1794 of /mod/quiz/attemptlib.php: call to quiz_attempt->process_finish()
  • line 93 of /mod/quiz/view.php: call to quiz_attempt->handle_if_time_expired()



Average of ratings: -
In reply to sundarapandian madhvan

Re: Upgraded from 2.4 to 3.6

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
In one long jump? The triple-jump is the advised method, 2.4 > 2.7 > 3.1 > 3.6. (From memory, may slightly differ in detail.)
In reply to Visvanath Ratnaweera

Re: Upgraded from 2.4 to 3.6

by sundarapandian madhvan -

Sorry i was upgraded. now i stuck in many issue most of the quiz are conflict in moodle 2.4 to moodle 3.6.

is any solution for fix the issue.kindly help me i am big stuck in moodle. 


And also in moodle 3.6 When we duplicate the quiz its taking so long and display undefined error.


Please help me on this issue.

In reply to sundarapandian madhvan

Re: Upgraded from 2.4 to 3.6

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

You didn't answer my question, whether you tried the upgrade in one step.

Whatever, if a Moodle upgrade is broke, there is no way of "repairing" it. You need to reset the site to the last backup.
In reply to Visvanath Ratnaweera

Re: Upgraded from 2.4 to 3.6

by sundarapandian madhvan -

I have created the fresh moodle 3.6 in one server.but if i duplicate the quiz its take long time and display the undefined error

Please help me on this issue sir.

Most problem in quiz module only sir.is any other way fix the duplicate the quiz issue sir

In reply to sundarapandian madhvan

Re: Upgraded from 2.4 to 3.6

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
I don't know what you wanted to do nor what you actually did. The related migration documents are:
- https://docs.moodle.org/27/en/Upgrading
- https://docs.moodle.org/31/en/Upgrading
- https://docs.moodle.org/36/en/Upgrading

As I said earlier, if site broke during upgrade, no way of repairing it. You need to restore a backup: https://docs.moodle.org/en/Site_restore.
Average of ratings: Useful (1)