XML Error when logging to our development environment

XML Error when logging to our development environment

- smrithi puli の投稿
返信数: 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...

 
        

smrithi puli への返信

Re: XML Error when logging to our development environment

- Tim Hunt の投稿
画像 Core developers 画像 Documentation writers 画像 Particularly helpful Moodlers 画像 Peer reviewers 画像 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.