Course restore error

Course restore error

by John Green -
Number of replies: 4

I have a few courses on old server that I want to move to a new one

Both servers run 3.8

When I try to restore when the process is around  98% or 99% I get this error

Coding error detected, it must be fixed by a programmer: Invalid availability text

More information about this error

×Debug info:
Error code: codingerror
×Stack trace:
  • line 140 of /availability/classes/info.php: coding_exception thrown
  • line 114 of /availability/classes/info.php: call to core_availability\info->decode_availability()
  • line 318 of /availability/classes/info.php: call to core_availability\info->get_availability_tree()
  • line 905 of /backup/moodle2/restore_stepslib.php: call to core_availability\info->update_after_restore()
  • line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_update_availability->define_execution()
  • line 181 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
  • line 178 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
  • line 168 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
  • line 377 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
  • line 219 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
  • line 141 of /backup/restore.php: call to restore_ui->execute()


Any idea what could be done to fix it ?


Thanks

Average of ratings: -
In reply to John Green

Re: Course restore error

by John Green -
BTW Backup and Restore to the same server (under different name) works fine
In reply to John Green

Re: Course restore error

by Ken Task -
Picture of Particularly helpful Moodlers

That being the case sounds like there's a difference in config of the 2 instances related to availability.

Login as admin to both sites.

Search admin menu for 'availability' ... that will find several settings with that term.

Look for something that could/would restrict/modify the availability of sections in a course.

Got an addon/plugin in one not present in other related to availability?

'SoS', Ken


In reply to Ken Task

Re: Course restore error

by John Green -
Thanks !
I was able to find one setting using "Search admin menu for 'availability' " that was different between the servers
In reply to John Green

Re: Course restore error

by Deleted user -
Please check and compare the old and new site for any missing availability plugin. Looks like the old one had an availability condition plugin which was used as a part of the backup course and the new site doesn't have that installed.