首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >检测到编码错误,必须由程序员修复:配置文件条件无效的->cf。

检测到编码错误,必须由程序员修复:配置文件条件无效的->cf。
EN

Stack Overflow用户
提问于 2016-05-25 10:55:24
回答 2查看 2.8K关注 0票数 0

当我试图恢复课程备份时,我得到了一个错误。有人能帮帮我吗。我所犯的错误是低沉的。

代码语言:javascript
复制
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()

有谁知道如何修复这个错误吗。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-05-25 15:14:45

来自错误:/availability/condition/profile/classes/condition.php

我猜是缺少自定义配置文件字段了。

查看站点管理->用户->帐户->用户配置文件字段

字段列表是否与旧系统和新系统相匹配?

票数 1
EN

Stack Overflow用户

发布于 2016-05-25 11:38:14

不同的moodle版本和moodle实例/系统的备份不能100%兼容。尝试以相同的moodle版本还原备份,然后将moodle更新为当前版本,然后从更新的moodle系统备份并还原到生产环境中。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37435010

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档