doumou5109 2017-06-22 11:31
浏览 283

Moodle - 检测到编码错误,必须由程序员修复:数据源类不存在

I am trying to upgrade Moodle 2.7 to 3.1.But for some reason I can't. This is the error:

Coding error detected, it must be fixed by a programmer: The data source class does not exist.

Debug info: 
Error code: codingerror
Stack trace:
line 498 of /cache/classes/definition.php: coding_exception thrown
line 515 of /cache/classes/helper.php: call to cache_definition::load()
line 480 of /cache/classes/helper.php: call to cache_helper::purge_store()
line 323 of /admin/index.php: call to cache_helper::purge_all()

What could be the problem of this?

  • 写回答

2条回答 默认 最新

  • dongou6632 2017-06-23 05:15
    关注

    You may have removed a file which was meant to be included when loading the cache definitions from any db/caches.php. Grep those files for datasource, that will help you identify where the problem is.

    Another reason would be that the class cannot be found because the cache code runs before the autoloading definitions are set. That would be very surprising, but you can have a look at [moodledatafolder]/cache/core_component.php to see if the class is in there, and its path exists.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?