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.

Archive

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

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

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


Reply

6 Posts   2919 Views

Avatar
Macello

18 October 2008 at 10:18pm Community Member, 37 Posts

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

19 October 2008 at 6:05am Community Member, 37 Posts

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

20 October 2008 at 10:22am Forum Moderator, 5511 Posts

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

20 October 2008 at 10:49am Community Member, 37 Posts

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

20 October 2008 at 11:18am Forum Moderator, 5511 Posts

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

25 October 2008 at 5:08am (Last edited: 25 October 2008 5:09am), Community Member, 37 Posts

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