2017-06-22 164 views
0

我想升級Moodle 2.7至3.1。但由於某種原因,我不能。這是錯誤:Moodle - 檢測到編碼錯誤,它必須由程序員修復:數據源類不存在

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() 

這可能是什麼問題?

回答

0

從任何db/caches.php加載緩存定義時,您可能已刪除了一個旨在包含的文件。請將這些文件格式化爲datasource,這將幫助您確定問題所在。

另一個原因是該類無法找到,因爲緩存代碼在自動加載定義設置之前運行。這將是非常令人驚訝的,但你可以看[moodledatafolder]/cache/core_component.php看看班級是否在那裏,路徑是否存在。

相關問題