Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

XML-Parsing error: "Junk" after Document-Element in User defined Form


Go to End


6 Posts   4696 Views

Avatar
Macello

Community Member, 37 Posts

18 October 2008 at 10:18pm

Got this error and need Help:

XML-Verarbeitungsfehler: "Junk" nach Dokument-Element
Adresse: http://www.swissfinancescout.ch/finanzierungsantrag/?executeForm=Form
Zeile Nr. 2, Spalte 1:<b>Notice</b>: Array to string conversion in <b>/srv/www/htdocs/web83/html/sapphire/core/model/DataObject.php</b> on line <b>570</b><br />
^

Itz a Form that has 5 file upload fields, i tested with one file, besides, the Contactform seems to work right.

Hope i get help soon for this!

Avatar
Macello

Community Member, 37 Posts

19 October 2008 at 6:05am

Really need an answer here, other wise i need to switch on another CMS, this not what i want, but i need to get this working!

Avatar
Willr

Forum Moderator, 5523 Posts

20 October 2008 at 10:22am

The user defined form is pretty messy and it could be a number of things wrong. I would just remove the xml validation from the page (it could still be valid html as xml is much stricter). You can do this via removing the <?xml header from the Page.ss file.

Avatar
Macello

Community Member, 37 Posts

20 October 2008 at 10:49am

Thank you alot willr for your quick answer, it works now, half, it shows some Notice tags before the page starts, and makes it look a little messed up, but the files are still only read and write for the user, so the client can't watch them without i'm going to set permissions new. Is there a solution for this too?

Marcello

Avatar
Willr

Forum Moderator, 5523 Posts

20 October 2008 at 11:18am

The notice tags can be turned off via phps error_reporting() tool. I believe this is what you want to put in your mysite/_config.php

error_reporting(E_ALL ^ E_NOTICE);

Avatar
Macello

Community Member, 37 Posts

25 October 2008 at 5:08am

Edited: 25/10/2008 5:09am

Yes thats it! thank you willr, ever need help in some graphic stuff, tell me... ;)