Custom Plugin Installation Issue

Custom Plugin Installation Issue

by GAYATRI VENUGOPAL -
Number of replies: 7
Hi,
     I have created a custom resource, which works on an instance of Moodle 3.0.
I have another instance of the same version. When I try to install this plugin on the second instance, it gives me the following error:
Debug info: Errors found in XMLDB file: XML Error: Namespace prefix xsi for noNamespaceSchemaLocation on XMLDB is not defined at line 1.
Error code: ddlxmlfileerror


What could be the issue here?

Average of ratings: -
In reply to GAYATRI VENUGOPAL

Re: Custom Plugin Installation Issue

by Rahul Rai -

Hi Gayatri

Please check install.xml file in your db folder. 

If not exist please create.  

In reply to Rahul Rai

Re: Custom Plugin Installation Issue

by GAYATRI VENUGOPAL -
Hi Rahul,

            It exists and I can see all the tables that are required by

the plugin.



On Thu, Aug 31, 2017 at 11:18 AM, Rahul Rai (via Moodle.org) <
In reply to GAYATRI VENUGOPAL

Re: Custom Plugin Installation Issue

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I would assume that the message is true. Compare the first line or two of the xml file with a similar file from another (e.g. this one from mod_choice)

<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="mod/choice/db" VERSION="20120122" COMMENT="XMLDB file for Moodle mod/choice"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
>
  <TABLES>


...if it still looks ok, is there any chance you have edited it in something that might have damaged the character set or added extra (invisible) characters. Windows standard editors (like Notepad) are usually the problem here.

In reply to GAYATRI VENUGOPAL

Re: Custom Plugin Installation Issue

by Deepak Gour -

Hello Gayatri

Please delete your install.xml file.

And create again.