Course Error while Backing up?

Course Error while Backing up?

by Rachel Grzymkowski -
Number of replies: 3

Hello Using Moodle 3.5 

We backed up a course that has all base Moodle activities in it. The backup worked but now the course has this error. 
Can any one help?


Coding error detected, it must be fixed by a programmer: Invalid availability structure (missing ->op)

More information about this error

×Debug info: 
Error code: codingerror
×Stack trace:
  • line 147 of /availability/classes/tree.php: coding_exception thrown
  • line 237 of /availability/classes/tree.php: call to core_availability\tree->__construct()
  • line 144 of /availability/classes/info.php: call to core_availability\tree->__construct()
  • line 114 of /availability/classes/info.php: call to core_availability\info->decode_availability()
  • line 248 of /availability/condition/completion/classes/condition.php: call to core_availability\info->get_availability_tree()
  • line 772 of /availability/classes/info.php: call to availability_completion\condition::completion_value_used()
  • line 489 of /course/renderer.php: call to core_availability\info::completion_value_used()
  • line 895 of /course/renderer.php: call to core_course_renderer->course_section_cm_completion()
  • line 797 of /course/renderer.php: call to core_course_renderer->course_section_cm()
  • line 990 of /course/renderer.php: call to core_course_renderer->course_section_cm_list_item()
  • line 908 of /course/format/renderer.php: call to core_course_renderer->course_section_cm_list()
  • line 57 of /course/format/topics/format.php: call to format_section_renderer_base->print_multiple_section_page()
  • line 280 of /course/view.php: call to require()

Average of ratings: -
In reply to Rachel Grzymkowski

Re: Course Error while Backing up?

by Rafael Monterroza -
Hi Rachel, could you provide more information, be more specific? For example, are you trying to restore the course in the same site where you backed it up? Are you trying to restore the course in the same Moodle version than the original course?
Generally, that exception is thrown when there is an error in the availability structure of what you're restoring. That's very uncommon but can happen if the base structure of Moodle is changed. For example, somebody manually manipulated the database or somebody uninstalled a plugin that was present in that course.

Do you know if any of these happened?
In reply to Rachel Grzymkowski

Re: Course Error while Backing up?

by Redro Smith -

Kodi is supported on Android, iOS, Windows, Mac, Chromecast and more platforms. Free download the official Kodi TV App with step by step guide. 

In reply to Rachel Grzymkowski

Re: Course Error while Backing up?

by Redro Smith -
It has compiled all the digital media tutuapp in user-friendly interface which is easily accessible to the users.