Created plugin error:Error code: ddlxmlfileerror

Created plugin error:Error code: ddlxmlfileerror

by Matt Checkerson -
Number of replies: 4

Hi, I created local plugin for test. 

And when I tied to install it, I had error:

Debug info: Errors found in XMLDB file: Missing TABLES section
Error code: ddlxmlfileerror
Stack trace:
  • line 346 of /lib/ddl/database_manager.php: ddl_exception thrown
  • line 362 of /lib/ddl/database_manager.php: call to database_manager->load_xmldb_file()
  • line 504 of /lib/upgradelib.php: call to database_manager->install_from_xmldb_file()
  • line 1630 of /lib/upgradelib.php: call to upgrade_plugins()
  • line 433 of /admin/index.php: call to upgrade_noncore()
My plugin is clear, I only filled versions.php, events,php and created in rott file "locallib.php"

How i can fix this error?


Thanks for help

Average of ratings: -
In reply to Matt Checkerson

Re: Created plugin error:Error code: ddlxmlfileerror

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Do you have an install.xml file under the db folder?
In reply to Marcus Green

Re: Created plugin error:Error code: ddlxmlfileerror

by Matt Checkerson -

Yeah, I have install.xml in "db" folder, but it`s empty file. Do I need this file? I created him, that I have full "normal" structure of local plugin.

In reply to Matt Checkerson

Re: Created plugin error:Error code: ddlxmlfileerror

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

If you don't need any database tables defining, do not create an install.xml file.

If there is an install.xml file present, then it is expected to contain data in the correct format (i.e. it cannot be blank).


In reply to Davo Smith

Re: Created plugin error:Error code: ddlxmlfileerror

by Matt Checkerson -

Exactly, you are right. I deleted file and now all is good. Thanks a lot for help