我在尝试恢复课程备份时遇到错误。谁能帮我吗。我得到的错误是吼叫。
Coding error detected, it must be fixed by a programmer: Invalid ->cf for profile condition
More information about this error
Debug info:
Error code: codingerror
Stack trace:
o line 120 of /availability/condition/profile/classes/condition.php: coding_exception thrown
o line 234 of /availability/classes/tree.php: call to availability_profile\condition->__construct()
o line 144 of /availability/classes/info.php: call to core_availability\tree->__construct()
o line 114 of /availability/classes/info.php: call to core_availability\info->decode_availability()
o line 318 of /availability/classes/info.php: call to core_availability\info->get_availability_tree()
o line 823 of /backup/moodle2/restore_stepslib.php: call to core_availability\info->update_after_restore()
o line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_update_availability->define_execution()
o line 181 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
o line 177 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
o line 167 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
o line 333 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
o line 224 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
o line 111 of /backup/restore.php: call to restore_ui->execute()
任何人都可以知道如何解决此错误。
答案 0 :(得分:1)
来自错误:/availability/condition/profile/classes/condition.php
我猜测缺少自定义个人资料字段。
查看网站管理员 - >用户 - >帐户 - >用户个人资料字段
旧系统和新系统的字段列表是否匹配?
答案 1 :(得分:0)
不同moodle版本和moodle实例/系统的备份无法100%兼容。 尝试在相同的moodle版本中恢复备份,然后将moodle更新为当前版本,备份并从更新的moodle系统恢复到生产环境。