簡體   English   中英

錯誤代碼:插件安裝期間的ddlxmlfileerror

[英]Error code: ddlxmlfileerror during plugin installation

當我將文件夾轉換為 zip 然后安裝它時,我在 moodle 的本地文件夾中創建了一個插件/webservice; 它會正確安裝在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

誰能給我一個解決方案,提前謝謝。

活動插件與本地插件不同。

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

但是活動插件有很多要求——包括一個與插件同名的主數據庫表。 所以你需要創建一個 install.xml 文件。

這里有關於創建活動插件的文檔。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM