XML Error when logging to our development environment

XML Error when logging to our development environment

di smrithi puli -
Numero di risposte: 1

I get an XML error when I login to moodle. Could you please tell me what is the problem by looking into the screenshots that I have attached? Also the solution to this problem.                                                                                                                   The error message is as shown below:

<>The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


Only one top level element is allowed in an XML document. Error processing resource 'https://vle-dev.shell.com/Moodle19/aut...

 
        

Media dei voti:  -
In riposta a smrithi puli

Re: XML Error when logging to our development environment

di Tim Hunt -
Immagine Core developers Immagine Documentation writers Immagine Particularly helpful Moodlers Immagine Peer reviewers Immagine Plugin developers
I would guess that you have turned on the 'XML strict headers' setting under Administration -> Server -> Debugging. That option is only useful to developers, do not turn in on in a production setting.

(If you cannot get into Moodle at all, go into your database and UPDATE mdl_config SET value=0 WHERE name='xmlstrictheaders';)

What is going on is that becuase an error message "<b>Notice</b>: Undefined property: ..." is being displayed, that is making the page invalid HTML. And the whole point of the 'XML strict headers' is to tell the web browser not to display invalid HTML, which is very good for developers trying to fix bugs, but not if you just want to run a site.