Reorder page gives xml error

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.
Post Reply
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Reorder page gives xml error

Post by jack4ya »

I have 3 sites updated to 1.4.1, all hosted on the same server...

2 of them have problems when rearranging pages (the drag-drop ajax thing)
with one of these last 2, it's tricky > I can rearrange without problems, client can't
with one of these last 2, it's "complete" > nor I nor my client can rearrange.

Starting with the last one:

I tried (after going through the forum, but none worked)
• reuploading admin folder
• deleting *.nls.php language files in admin (http://forum.cmsmadesimple.org/index.ph ... 324.0.html)
• reuploading lib folder (ajax)
• reuploading listcontent.php
• reinstall leaving the db untouched during install (http://forum.cmsmadesimple.org/index.ph ... #msg120871)
• checksum gives md5sum check warnings for mostly lang files

this error comes up: (cut it shorter)

Code: Select all

The page at http://www.gelepeper.nl says:Error: the XML response that was returned from the server is invalid.
Received:
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/xxx/public_html/admin/listcontent.php</b> on line <b>417</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>/home/xxx/public_html/admin/listcontent.php</b> on line <b>418</b><br />
<br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/admin/listcontent.php:417) in <b>/home/xxx/public_html/lib/xajax/xajax.inc.php</b> on line <b>678</b><br />
<?xml version="1.0" encoding="utf-8" ?><xjx><cmd n="as" t="contentlist" p="innerHTML"><![CDATA[		<form action="/admin/listcontent.php" method="POST" onsubmit="document.getElementById('parent0ListOrder').value = Sortable.serialize('parent0');document.getElementById('parent73ListOrder').value = Sortable.serialize('parent73');document.getElementById('parent94ListOrder').value = Sortable.serialize('parent94');document.getElementById('parent91ListOrder').value = Sortable.serialize('parent91');document.getElementById('parent34ListOrder').value = Sortable.serialize('parent34');document.getElementById('parent59ListOrder').value = Sortable.serialize('parent59');document.getElementById('parent63ListOrder').value = Sortable.serialize('parent63');document.getElementById('parent52ListOrder').value = Sortable.serialize('parent52');document.getElementById('parentListOrder').value = Sortable.serialize('parent');document.getElementById('parent101ListOrder').value = Sortable.serialize('parent101');xajax_reorder_process(xajax.getFormValues('sortableListForm'));return false;" name="sortableListForm" id="sortableListForm">
			<input type="submit" value="Submit" class="button" />
			<input type="button" value="Cancel" class="button" onclick="xajax_content_list_ajax(); return false;" />
<ul id="parent0" class="sortableList">
......My menuand so on......
</ul>						<input type="hidden" name="parent0ListOrder" id="parent0ListOrder" size="60">
						<input type="hidden" name="parent73ListOrder" id="parent73ListOrder" size="60">
						<input type="hidden" name="parent94ListOrder" id="parent94ListOrder" size="60">
						<input type="hidden" name="parent91ListOrder" id="parent91ListOrder" size="60">
						<input type="hidden" name="parent34ListOrder" id="parent34ListOrder" size="60">
						<input type="hidden" name="parent59ListOrder" id="parent59ListOrder" size="60">
						<input type="hidden" name="parent63ListOrder" id="parent63ListOrder" size="60">
						<input type="hidden" name="parent52ListOrder" id="parent52ListOrder" size="60">
						<input type="hidden" name="parentListOrder" id="parentListOrder" size="60">
						<input type="hidden" name="parent101ListOrder" id="parent101ListOrder" size="60">
						<input type="hidden" name="sortableListsSubmitted" value="true" />
						<input type="submit" value="Submit" class="button" />
			<input type="button" value="Cancel" class="button" onclick="xajax_content_list_ajax(); return false;" />
		</form>
		]]></cmd><cmd n="js"><![CDATA[							Sortable.create('parent0',{tag:'li'});
								Sortable.create('parent73',{tag:'li'});
								Sortable.create('parent94',{tag:'li'});
								Sortable.create('parent91',{tag:'li'});
								Sortable.create('parent34',{tag:'li'});
								Sortable.create('parent59',{tag:'li'});
								Sortable.create('parent63',{tag:'li'});
								Sortable.create('parent52',{tag:'li'});
								Sortable.create('parent',{tag:'li'});
								Sortable.create('parent101',{tag:'li'});
						]]></cmd></xjx>
Last edited by jack4ya on Thu Nov 06, 2008 12:55 pm, edited 1 time in total.
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Re: Reorder page gives xml error

Post by jack4ya »

Checks: everything green/okay,
except:
PHP Open Basedir (open_basedir):
Session Save Path (session_save_path): No check because OS path

But these warnings are on every cms site I made...

And last but not least

Cms Version: 1.4.1

Installed Modules:

    * CMSMailer: 1.73.14
    * MenuManager: 1.5.1
    * ModuleManager: 1.2.1
    * News: 2.8.2
    * nuSOAP: 1.0.1
    * Search: 1.5.1
    * ThemeManager: 1.0.8
    * VisitorStats: 0.1.1
    * Album: 0.9.3
    * FrontEndUsers: 1.2.0
    * CustomContent: 1.5
    * Guestbook: 1.1.10
    * TinyMCE: 2.4.5
    * CGExtensions: 1.8
    * FileManager: 0.4.1
    * Printing: 0.2.5
    * Statistics: 0.8.0b9
    * Calendar: 0.7.8
    * FLVPlayer: 1.0.3
    * FormBuilder: 0.5.3
    * FormBrowser: 0.2.3
    * Blogs: 0.3.0b2
    * TruetypeText: 2.0.2
    * ImageUpload: 0.1.2


Config Information:

    * php_memory_limit:
    * process_whole_template: true
    * max_upload_size: 10000000
    * default_upload_permission: 664
    * assume_mod_rewrite: true
    * page_extension:
    * internal_pretty_urls: false
    * use_hierarchy: true


Php Information:

    * safe_mode: Off (False)
    * phpversion: 5.2.5
    * memory_limit: 30M
    * max_execution_time: 60
    * gd_version: 2
    * session_save_path: No check because OS path


Server Information:

    * Server Api: apache
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 4.1.21
alby

Re: Reorder page gives xml error

Post by alby »

jack4ya wrote: But these warnings are on every cms site I made...
Yes, your problem is probably browser dependant
have you tried with other browser?

Alby
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Re: Reorder page gives xml error

Post by jack4ya »

Yes other browser act the same

FF, Camino and Safari on Macosx
IE6 and IE7 on WinXP

Did not check any further, but I expect more of the same...

The link is generated as "/admin/listcontent.php?error=jsdisabled" but I have not js disabled.

Debugging shows alot, but not al make sense to me.
The errors I see are sqlqueries;

Small snippet of much longer list:

Code: Select all

Debug: (0.28379) - (9619092)

<br>
(mysql): SELECT content_id FROM cms_content WHERE owner_id = '1'<br>
 Error (0): <br>

Debug: (0.284628) - (9621188)

<br>
(mysql): SELECT user_id,content_id FROM cms_additional_users<br>
 Error (0): <br>

Debug: (0.294496) - (9739808)

<br>
(mysql): SELECT bookmark_id, user_id, title, url FROM cms_admin_bookmarks WHERE user_id = '1' ORDER BY title<br>
 Error (0): <br>

Debug display of 'Start Loading Hierarchy Manager':(0.295193) - (9729728)
Debug display of 'Load Content Operations':(0.295239) - (9729728)
Debug display of 'End Load Content Operations':(0.304804) - (10132668)
Debug display of 'starting tree':(0.304871) - (10132944)
Debug: (0.309235) - (10264184)

<br>
(mysql): SELECT id_hierarchy FROM cms_content ORDER BY hierarchy<br>
 Error (0): <br>

Debug display of 'Start Loading Children into Tree':(0.309943) - (10268444)
Debug display of 'End Loading Children into Tree':(0.31268) - (10347104)
Debug: (0.312729) - (10347148)

Serializing...
I uninstalled, visitorstats, stats, and TrueType, as the gave clear errors.
Last edited by jack4ya on Thu Nov 06, 2008 2:14 pm, edited 1 time in total.
alby

Re: Reorder page gives xml error

Post by alby »

jack4ya wrote: Did not check any further, but I expect more of the same...
Use FF and install firebug addon and check what error display it

Alby
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Re: Reorder page gives xml error

Post by jack4ya »

What the &*@ ??
Now it's gone??

But what did I do? I installed firebug, and restarted firefox...

Let me test other browsers! (my clients) I still need to fix one site then.
Difficult if you don't know what made it right!

EDIT:

This is impossible, all browser with one of the last two sites work fine now...

But not an other site... (from OP "with one of these last 2, it's tricky > I can rearrange without problems, client can't ")
I can't reproduce the error, but my client can...
I don't even know where to start.  ::)
Last edited by jack4ya on Thu Nov 06, 2008 3:34 pm, edited 1 time in total.
Post Reply

Return to “CMSMS Core”