Site messed up after reordering pages... XML error reported

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Site messed up after reordering pages... XML error reported

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Site messed up after reordering pages... XML error reported

Post 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
Last edited by RonnyK on Wed Mar 28, 2007 11:29 am, edited 1 time in total.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Site messed up after reordering pages... XML error reported

Post 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.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Site messed up after reordering pages... XML error reported

Post 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
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Site messed up after reordering pages... XML error reported

Post 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?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Site messed up after reordering pages... XML error reported

Post 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.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Site messed up after reordering pages... XML error reported

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Site messed up after reordering pages... XML error reported

Post 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
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Site messed up after reordering pages... XML error reported

Post 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.
berserkk

Re: Site messed up after reordering pages... XML error reported

Post 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.
berserkk

Re: Site messed up after reordering pages... XML error reported

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Site messed up after reordering pages... XML error reported

Post by RonnyK »

Berserkk,

the second entry in this topic mentioned the solution as well for your problem.

Ronny
aaronc

Re: Site messed up after reordering pages... XML error reported

Post 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?
usolis
New Member
New Member
Posts: 6
Joined: Mon Jul 23, 2007 1:23 pm

Re: Site messed up after reordering pages... XML error reported

Post 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
usolis
New Member
New Member
Posts: 6
Joined: Mon Jul 23, 2007 1:23 pm

Re: Site messed up after reordering pages... XML error reported

Post 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
Post Reply

Return to “CMSMS Core”