【问题标题】:Error code: ddlxmlfileerror during plugin installation错误代码:插件安装期间的ddlxmlfileerror
【发布时间】: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


【解决方案1】:

活动插件与本地插件不同。

使用本地插件,您几乎可以做任何您喜欢的事情。

但是 Activity 插件有很多要求 - 包括一个与插件同名的主数据库表。所以你需要创建一个 install.xml 文件。

这里有关于创建活动插件的文档。

https://docs.moodle.org/dev/Activity_modules#install.xml

【讨论】:

    猜你喜欢
    • 2013-06-30
    • 2013-08-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-08
    • 1970-01-01
    • 2016-07-21
    相关资源
    最近更新 更多