Custom Plugin Installation Issue

Custom Plugin Installation Issue

ved GAYATRI VENUGOPAL -
Antal besvarelser: 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?

Gennemsnitsbedømmelse: -
I svar til GAYATRI VENUGOPAL

Re: Custom Plugin Installation Issue

ved Rahul Rai -

Hi Gayatri

Please check install.xml file in your db folder. 

If not exist please create.  

I svar til Rahul Rai

Re: Custom Plugin Installation Issue

ved 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) <
I svar til GAYATRI VENUGOPAL

Re: Custom Plugin Installation Issue

ved Howard Miller -
Billede af Core developers Billede af Documentation writers Billede af Particularly helpful Moodlers Billede af Peer reviewers Billede af 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.