Page 1 of 2
Site messed up after reordering pages... XML error reported
Posted: Tue Mar 27, 2007 4:21 pm
by cnymike
Just had a meltdown here.
I was instructing a client how to use the admin section and we were reordering a page.
After moving a page to a different order in the heirarchy and clicking submit, our next action caused an error to be displayed.
"The XML response that was returned from the server is invalid. Received:"
After that happened the Admin main page had lost its styling and clicking on any other menu option resulted in just a blank page being displayed in the browser. After a few minutes the admin seemed to be more or less back to normal but every attempt to reorder a page resulted in the same XML error message.
What is the cause of the message and how can I correct it? I did try clearing the cache which did not seem to fix anything. I am concerned about the stability of the site at this point and could really use some help.
Re: Site messed up after reordering pages... XML error reported
Posted: Wed Mar 28, 2007 11:22 am
by RonnyK
I've seen this error before, where on line 4 of the error, the statement is something like
'modules/PunBB/lang/en_US.php:163'
I didn't use the PunBB module so I went to the module manager and uninstalled 'PunBB'. After doing so, the error was gone.
The language-file of PunBB is wrong, something with additional returns after the last '?>'.
Ronny
Re: Site messed up after reordering pages... XML error reported
Posted: Thu Mar 29, 2007 7:11 pm
by cnymike
I do not have PunBB in my modules at all so there must be something else going on to explain the problem I'm having.
Re: Site messed up after reordering pages... XML error reported
Posted: Thu Mar 29, 2007 7:19 pm
by Dee
There is no way to tell what goes wrong without more information from the error message.
What is the start of the recieved code (the first part after "Received:")?
Regards,
D
Re: Site messed up after reordering pages... XML error reported
Posted: Thu Mar 29, 2007 7:37 pm
by cnymike
The first time the message came up, there was nothing after the "received:"
The next time it came up, there was a very lengthy amount of text that I was not able to save or copy to clipboard.
That was quite frustrating not to be able to save or copy it. So unfortunately I am not able to report what the text was.
the most strange thing is that it just fixed itself, or so it seems.
If a page is reordered, is there some lengthy process going on behind the scenes on the server that would take more than a second or two during which time if another action were taken, might result in an error such as this?
Re: Site messed up after reordering pages... XML error reported
Posted: Fri Mar 30, 2007 9:51 am
by Ted
Yup. It basically has to recreate all the different fields related to hierarchy. As the site gets bigger, this becomes a longer process. It's very possible that it timed out one time, throwing things off... and then the next tiem you saved a page or reordered, it fixed itself.
Re: Site messed up after reordering pages... XML error reported
Posted: Fri Mar 30, 2007 10:10 am
by KO
I seen hierarchy get wrong once but could not figure out how it happened. Now it happened again when myself was reordering pages. I used this ajax reorder button on top and seems that with long page list strange things could happen when using that. For me there was same hierarchy numbers for two different pages. Ofcourse navigation was acting funny. This was fixed with phpMyAdmin.
Keijo
Re: Site messed up after reordering pages... XML error reported
Posted: Fri Mar 30, 2007 10:41 pm
by Dee
The chances of this happening get bigger when the server is slow or the site big. Setting a higher/high enough value for
max_execution_time should prevent this. You can change the value by changing php.ini and restarting the webserver, using a
.htaccess file or using
ini_set() - if allowed by server settings and depending on your server access.
Regards,
D
Re: Site messed up after reordering pages... XML error reported
Posted: Sat Mar 31, 2007 6:53 am
by KO
When this last happened I was on dedicated powerful server with no load. I think problem in this case was long page listing and Ajax problem of scrolling the screen while dragging or something. Anyway good points you have - Dee.
Re: Site messed up after reordering pages... XML error reported
Posted: Mon Apr 09, 2007 12:33 pm
by berserkk
I get this error message every time I press the up/down arrow to re-order, it does not break anything though.
If i refresh the page the change has occurred, but it is still annoying.
The first few lines after "received: "
warning : Cannot modify header information - headers already sent by (output started at /home/www/ blah blah / PunBB/lang/en_Us.php:163) in blah blah something www/lib/xajax.inc.php on line 678
then lots more crap.
Re: Site messed up after reordering pages... XML error reported
Posted: Mon Apr 09, 2007 12:38 pm
by berserkk
fixed my problem, it was punBB language file
last 2 blank lines in /modules/punbb/lang/en_us.php
problem resolved from this post:
http://forum.cmsmadesimple.org/index.ph ... 165.0.html
Re: Site messed up after reordering pages... XML error reported
Posted: Mon Apr 09, 2007 1:36 pm
by RonnyK
Berserkk,
the second entry in this topic mentioned the solution as well for your problem.
Ronny
Re: Site messed up after reordering pages... XML error reported
Posted: Thu Jul 19, 2007 9:16 pm
by aaronc
I am having this problem as well. I found my issue was with Text Embellisher (RC1 and 2), turning it off fixed the ajax behaviors on the page menu.
However, the language file fix has not worked. The site's not too heavy, regarding the server response time issue, and I wouldn't think that having a module on would change the server response time.
So I have to believe it's in the text embellisher and the version of cmsms? I have Text embellisher installed on a 1.02 copy and it works fine.
My error is:
Code: Select all
Error: the XML response that was returned from the server is invalid.
Received:
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/.tamil/theluciagroup/luciagroup.dreamhosters.com/cmsms/modules/TruetypeText/lang/en_US.php:1) in <b>/home/.tamil/theluciagroup/luciagroup.dreamhosters.com/cmsms/lib/xajax/xajax.inc.php</b> on line <b>678</b><br />
Any ideas?
Re: Site messed up after reordering pages... XML error reported
Posted: Mon Jul 23, 2007 3:11 pm
by usolis
The problem for me was that the language file was in DOS format. I suspect there is a carriage return (but no line feed) at the end of /modules/TruetypeText/lang/en_US.php
Running the file through dos2unix solves the problem:
http://www.freedownloadscenter.com/Util ... X2DOS.html
Hope it helps
Re: Site messed up after reordering pages... XML error reported
Posted: Thu Jul 26, 2007 9:57 am
by usolis
Sorry, said too much too soon, running on different servers.
I have however now fixed it. I had to create a new file and cut and paste the contents into it. Shouldn't make much difference, but it does! Running the unix utility "file" on the file before and after I can see that the supposed plain text file was encoded in UTF-8 - doh!
I would attach a new XML but the module does not seem to work properly if you export via xml and then install again
Hope it helps