【发布时间】:2022-02-04 20:12:54
【问题描述】:
我在moodle的本地文件夹中创建了一个插件/webservice,当我将文件夹转换为zip然后安装它时;它会正确安装在moodle的本地文件夹中。现在我想将它安装在 mod 文件夹中,所以我在插件中的任何地方都将路径从本地更改为 mod,现在当我尝试安装时,出现以下错误。
XML database file errors found
More information about this error
Debug info: File does not exist
Error code: ddlxmlfileerror
Stack trace:
line 346 of \lib\ddl\database_manager.php: ddl_exception thrown
line 370 of \lib\ddl\database_manager.php: call to database_manager->load_xmldb_file()
line 841 of \lib\upgradelib.php: call to database_manager->install_from_xmldb_file()
line 576 of \lib\upgradelib.php: call to upgrade_plugins_modules()
line 1929 of \lib\upgradelib.php: call to upgrade_plugins()
line 713 of \admin\index.php: call to upgrade_noncore()
我不想在安装插件时向数据库添加任何内容,我什至创建了一个空的 install.xml,但我得到了一个不同的错误,即
Debug info: Errors found in XMLDB file: Missing TABLES section
Error code: ddlxmlfileerror
谁能给我一个解决方案,提前谢谢。
【问题讨论】:
-
请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。
标签: php moodle moodle-api moodle-mobile moodle-theme