after upgrade tot 1.0 Beta 6 no more editing possible in admin

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
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm
Location: behind my desk

after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by petert »

I upgraded my 1.0 beta 5 installation with the svn beta 6 version. Now I can not edit any pages anymore from the backend.
When I do a fresh install, then it does work. So I suspect that there is some code in the content database that makes that it no longer functions.
Other modules work great and as advertised. It's just the content editing that stopped working.
Pages do show in the front-end.
After inspecting the source code for a page-edit from the back-end (see code) it turns out that there are errors.

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta name="Generator" content="CMS Made Simple - Copyright (C) 2004-6 Ted Kulp. All rights reserved." />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex, nofollow" />
<title>Edit Page: Nieuws</title>
<link rel="stylesheet" type="text/css" href="style.php" />
<!-- THIS IS WHERE HEADER STUFF SHOULD GO -->
<__script__ type="text/javascript" src="themes/default/includes/standard.js"></__script><__script__ type="text/javascript" src="../lib/scriptaculous/prototype.js"></__script><__script__ type="text/javascript" src="../lib/scriptaculous/scriptaculous.js"></__script><__script__ type="text/javascript" src="../lib/scriptaculous/cmsext.js"></__script>	<__script__ type="text/javascript">
	<!--
var xajaxRequestUri="http://www.fogoisle.nl/admin/editcontent.php?content_id=71&page=";
var xajaxDebug=false;
var xajaxStatusMessages=false;
var xajaxWaitCursor=true;
var xajaxDefinedGet=0;
var xajaxDefinedPost=1;
var xajaxLoaded=false;
function xajax_ajaxpreview(){return xajax.call("ajaxpreview", arguments, 1);}
	-->
	</__script>

	<__script__ type="text/javascript" src="../lib/xajax/xajax_js/xajax.js"></__script>
	<__script__ type="text/javascript">
	<!--
window.setTimeout(function () { if (!xajaxLoaded) { alert('Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect?\nURL: ../lib/xajax/xajax_js/xajax.js'); } }, 6000);
	-->
	</__script>

<base href="http://www.fogoisle.nl/admin/" />
</head>
</__body##BODYSUBMITSTUFFGOESHERE##>
<div><p class="logocontainer"><img src="themes/default/images/logo.gif" alt="" /><span class="logotext">CMS Made Simple Admin Panel</span></p></div><div class="topmenucontainer">
	<ul id="nav">
		<li><a href="index.php">Main</a></li>

		<li><a href="topcontent.php" class="selected">Content</a><ul><li><a href="listcontent.php" class="selected">Pages</a></li><li><a href="files.php">File Manager</a></li><li><a href="imagefiles.php">Image Manager</a></li><li><a href="listhtmlblobs.php">Global Content Blocks</a></li><li><a href="moduleinterface.php?module=Album" class="first_module">Photo Albums</a></li><li><a href="moduleinterface.php?module=Bookmarks" class="module">Bookmarks</a></li><li><a href="moduleinterface.php?module=Comments" class="module">Comments</a></li><li><a href="moduleinterface.php?module=Glossary" class="module">Glossary / Dictionary Page / FAQ Module</a></li><li><a href="moduleinterface.php?module=News" class="module">News</a></li></ul></li>

		<li><a href="toplayout.php">Layout</a><ul><li><a href="listtemplates.php">Templates</a></li><li><a href="listcss.php">Stylesheets</a></li><li><a href="moduleinterface.php?module=MenuManager">Menu Manager</a></li><li><a href="moduleinterface.php?module=ThemeManager" class="first_module">Theme Manager</a></li></ul></li>
		<li><a href="topusers.php">Users & Groups</a><ul><li><a href="listusers.php">Users</a></li><li><a href="listgroups.php">Groups</a></li><li><a href="changegroupassign.php">Group Assignments</a></li><li><a href="changegroupperm.php">Group Permissions</a></li><li><a href="moduleinterface.php?module=FrontEndUserListing" class="first_module">Frontend User Listing</a></li><li><a href="moduleinterface.php?module=FrontEndUsers" class="module">Frontend User Managment</a></li><li><a href="moduleinterface.php?module=SelfRegistration" class="module">Self Registration Module</a></li></ul></li>

		<li><a href="topextensions.php">Extensions</a><ul><li><a href="listmodules.php">Modules</a></li><li><a href="listtags.php">Tags</a></li><li><a href="eventhandlers.php">Events</a></li><li><a href="listusertags.php">User Defined Tags</a></li><li><a href="moduleinterface.php?module=Backup" class="first_module">Database Backup</a></li><li><a href="moduleinterface.php?module=Cataloger" class="module">Cataloger</a></li><li><a href="moduleinterface.php?module=CMSMailer" class="module">CMSMailer Module</a></li><li><a href="moduleinterface.php?module=FCKeditorX" class="module">FCKeditorX</a></li><li><a href="moduleinterface.php?module=MovedPages" class="module">Moved Pages</a></li><li><a href="moduleinterface.php?module=Search" class="module">Search</a></li><li><a href="moduleinterface.php?module=VisitorStats" class="module">Visitor Stats</a></li><li><a href="moduleinterface.php?module=Xinha" class="module">Xinha</a></li></ul></li>

		<li><a href="topadmin.php">Site Admin</a><ul><li><a href="siteprefs.php">Global Settings</a></li><li><a href="adminlog.php">Admin Log</a></li></ul></li>
		<li><a href="topmyprefs.php">My Preferences</a><ul><li><a href="edituser.php">My Account</a></li><li><a href="editprefs.php">User Preferences</a></li><li><a href="listbookmarks.php">Manage Shortcuts</a></li></ul></li>

		<li><a href="../" rel="external">View Site</a></li>
		<li><a href="logout.php">Logout</a></li>
	</ul>
	<div class="clearb"></div>
</div>
<div class="breadcrumbs"><p class="breadcrumbs"><a class="breadcrumbs" href="topcontent.php">Content</a> » <a class="breadcrumbs" href="listcontent.php">Pages</a> » Edit Page: Nieuws</p></div><div class="hstippled"> </div><div id="MainContent">

<div class="navt_menu">
<div id="navt_display" class="navt_show" onclick="change('navt_display', 'navt_hide', 'navt_show'); change('navt_container', 'invisible', 'visible');"></div>
<div id="navt_container" class="invisible">
<div id="navt_tabs">
<div id="navt_bookmarks">Shortcuts</div>
</div>
<div style="clear: both;"></div>
<div id="navt_content">
<div id="navt_bookmarks_c">
<a href="makebookmark.php?title=Edit%26nbsp%3BPage%3A+Nieuws">1. Add Shortcut</a><br />
<a href="listbookmarks.php">2. Manage Shortcuts</a><br />
</div>
</div>
</div>

<div style="clear: both;"></div>
</div>

<div class="pagecontainer pageoverflow">
	<div class="pageheader">Edit Content</div>	<div id="page_tabs" style="width:100%;">
						<div id="editab0">Main</div>
								<div id="editab1">Options</div>
				<div id="edittabpreview" onclick="##INLINESUBMITSTUFFGOESHERE##xajax_ajaxpreview(xajax.getFormValues('contentform'));return false;">Preview</div>	</div>

	<div style="clear: both;"></div>
	<form method="post" action="editcontent.php?content_id=71&page=" enctype="multipart/form-data" name="contentform" id="contentform"##FORMSUBMITSTUFFGOESHERE##>
<input type="hidden" id="serialized_content" name="serialized_content" value="Tzo3OiJDb250ZW50IjozNTp7czoyMzoiYWRkaXRpb25hbENvbnRlbnRCbG9ja3MiO2E6MDp7fXM6MjM6ImFkZHRDb250ZW50QmxvY2tzTG9hZGVkIjtiOjE7czozOiJtSWQiO3M6MjoiNzEiO3M6NToibU5hbWUiO3M6NjoiTmlldXdzIjtzOjU6Im1UeXBlIjtzOjc6ImNvbnRlbnQiO3M6NjoibU93bmVyIjtzOjE6IjMiO3M6MTE6Im1Qcm9wZXJ0aWVzIjtPOjE3OiJDb250ZW50UHJvcGVydGllcyI6NDp7czoxNDoibVByb3BlcnR5TmFtZXMiO2E6MTp7aTowO3M6MTA6ImNvbnRlbnRfZW4iO31zOjE0OiJtUHJvcGVydHlUeXBlcyI7YToxOntzOjEwOiJjb250ZW50X2VuIjtzOjY6InN0cmluZyI7fXM6MTU6Im1Qcm9wZXJ0eVZhbHVlcyI7YToxOntzOjEwOiJjb250ZW50X2VuIjtzOjc0NzoiPGgyPk5pZXV3cyB2YW4gRm9nbyBJc2xlPC9oMj4NCg0KPHA+T3AgZGV6ZSBwYWdpbmEgdmluZCBqZSBkZSBuaWV1d3NiZXJpY2h0ZW4gdmFuIGFsbGUgY2F0ZWdvcmllZW4gYmlqIGVsa2Fhci48L3A+DQoNCjxoMz5FLW1haWxuaWV1d3NicmllZjwvaDM+DQo8cD5NZXQgaW5nYW5nIHZhbiAyMDA2IHN0dXJlbiB3ZSBlbmtlbGUga2VyZW4gcGVy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0YSI7czowOiIiO3M6MTU6Im1UaXRsZUF0dHJpYnV0ZSI7czowOiIiO3M6MTA6Im1BY2Nlc3NLZXkiO3M6MDoiIjtzOjk6Im1UYWJJbmRleCI7czowOiIiO3M6MTA6Im1IaWVyYXJjaHkiO3M6NToiMDAwMDIiO3M6MTI6Im1JZEhpZXJhcmNoeSI7czoyOiI3MSI7czoxNDoibUhpZXJhcmNoeVBhdGgiO3M6NjoiTmlldXdzIjtzOjk6Im1NZW51VGV4dCI7czo2OiJOaWV1d3MiO3M6NzoibUFjdGl2ZSI7YjoxO3M6NjoibUFsaWFzIjtzOjY6Ik5pZXV3cyI7czo5OiJtT2xkQWxpYXMiO3M6NjoiTmlldXdzIjtzOjk6Im1DYWNoYWJsZSI7YjoxO3M6ODoibVByZXZpZXciO2I6MTtzOjExOiJtU2hvd0luTWVudSI7YjoxO3M6MTU6Im1EZWZhdWx0Q29udGVudCI7YjowO3M6NzoibU1hcmt1cCI7czo0OiJodG1sIjtzOjE1OiJtTGFzdE1vZGlmaWVkQnkiO3M6MToiMSI7czoxMzoibUNyZWF0aW9uRGF0ZSI7czoxOToiMjAwNS0xMS0xNiAxNTo1MjoyNSI7czoxMzoibU1vZGlmaWVkRGF0ZSI7czoxOToiMjAwNi0wOC0xOCAyMjoyNjoxMCI7czoxODoibUFkZGl0aW9uYWxFZGl0b3JzIjtOO3M6MTM6Im1SZWFkeUZvckVkaXQiO2I6MTtzOjExOiJtQ2hpbGRDb3VudCI7aTowO30=" />
<input type="hidden" name="content_id" value="71" />
<input type="hidden" name="page" value="" />
<input type="hidden" name="orig_content_type" value="content" />
<div id="page_content">
<div id="editab0_c"><div class="pageoverflow">
<p class="pagetext"> </p>
<p class="pageinput">
 <input type="submit" name="submitbutton" value="Submit" class="pagebutton" onmouseover="this.className='pagebuttonhover'" onmouseout="this.className='pagebutton'" title="Save changes" /> <input type="submit" name="previewbutton" value="Preview" class="pagebutton" onmouseover="this.className='pagebuttonhover'" onmouseout="this.className='pagebutton'" title="Preview changes" onclick="##INLINESUBMITSTUFFGOESHERE##xajax_ajaxpreview(xajax.getFormValues('contentform'));return false;" /> <input type="submit" name="cancel" value="Cancel" class="pagebutton" onclick="return confirm('Are you sure you want to discard your changes? Click OK to discard all changes. Click Cancel to continue editing.');" onmouseover="this.className='pagebuttonhover'" onmouseout="this.className='pagebutton'" title="Discard Changes" /> <input type="submit" name="applybutton" value="Apply" class="pagebutton" onmouseover="this.className='pagebuttonhover'" onmouseout="this.className='pagebutton'" title="Save changes and continue to edit" />

</p>
</div>				<div class="pageoverflow">
					<p class="pagetext">Content Type:</p>
					<p class="pageinput"><select name="content_type" onchange="document.contentform.submit()" class="standard"><option value="separator">Separator</option><option value="link">Link</option><option value="sectionheader">SectionHeader</option><option value="content" selected="selected" >Content</option><option value="albumcontent">Photo Albums</option><option value="catalogitem">Cataloger Item</option><option value="catalogcategory">Cataloger Category</option><option value="catalogprintable">Cataloger Printable</option><option value="newsmodule">News</option></select></p>

				</div>
				
And there it stops. Even when I remove all the modules, still the same problems.
[img]http://[img]http://[/img][/img]

[gelöscht durch Administrator]
Last edited by petert on Fri Sep 08, 2006 12:40 pm, edited 1 time in total.
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
Nemesis666

Re: after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by Nemesis666 »

I experience the same problem after upgrading a working 1.0beta5 to 1.0. Firefox shows the following error:
document.getElementById(tabs[j].id + "_c") has no properties
Quelldatei: http://cms.XXXXXXXXXXX.de/admin/themes/ ... tandard.js
Zeile: 55
Any ideas? Anyone?
Nemesis666

Re: after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by Nemesis666 »

Tracked down the issue a little more, as the js-error is only a follow up. The page doesn't load completely and produces the following error:

Code: Select all

<b>Fatal error</b>:  Call to a member function on a non-object in 
<b>/var/www/webXXX/html/cms/lib/classes/class.contentoperations.inc.php</b> on line <b>643</b><br />
Hope this helps finding the problem? I'll check, if I can find something, but I'm not very deep into CMSMS source.
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm
Location: behind my desk

Re: after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by petert »

Nemesis666 wrote:

Code: Select all

<b>Fatal error</b>:  Call to a member function on a non-object in 
<b>/var/www/webXXX/html/cms/lib/classes/class.contentoperations.inc.php</b> on line <b>643</b><br />
That's the same as I am getting. Has got to do with modules that are not compatible. Even though the module is removed from the backend )i.e. from modules/) there is still something of it left in the content that makes cmsms choke on it.
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
Nemesis666

Re: after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by Nemesis666 »

Found it!

Using phpMyAdmin to search through the prefix_content table, I found one entry (the last) that had "guestbookcontent" as content type, all others were just "content". I deleted this entry, and everything works fine!

Strange, as I just installed the guestbook once for testing purposes and uninstalled it right away. The page that did the knot was not displayed in CMSMS. Who should come up with a solution for this problem, guestbook (for uninstalling purposes) or CMSMS core (for better error handling with unsupported content types)? I think, both should work on this issue...

Greetz,
Nemesis
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by Ted »

That's definitely a core bug.  Can you submit a bug for that when you get a chance?  Thanks!
User avatar
petert
Power Poster
Power Poster
Posts: 282
Joined: Wed Feb 09, 2005 9:30 pm
Location: behind my desk

Re: after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by petert »

Nemesis666 wrote: Found it!
Using phpMyAdmin to search through the prefix_content table, I found one entry (the last) that had "guestbookcontent" as content type, all others were just "content". I deleted this entry, and everything works fine!
Same problem, same solution here :)
But my entry was gastbuch not guestbook

Deleted the entry and now I can edit the pages once again.
Thanks!

Code: Select all

as a sidenote (seems logical now):
The xml errors generated by the backend when using 'expand all sections' are gone now too
Last edited by petert on Tue Sep 12, 2006 9:23 am, edited 1 time in total.
Mambo sucks, that's why I am here.
Now they call it Joomla, but it still sucks!

CMSMS rules!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by Ted »

Ok, I've worked out a workaround for this problem.  It'll be in the upcoming 1.0.1 release.

Thanks!
Nemesis666

Re: after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by Nemesis666 »

So no more bug tracker entry needed?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by tsw »

Nemesis666 wrote: So no more bug tracker entry needed?
You might want to test with 1.0.1 and if the problem still persist please file a bug
tkunn
New Member
New Member
Posts: 7
Joined: Tue May 30, 2006 8:22 am

Re: after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by tkunn »

i have CMSMS version 1.01 (overwritten diff files from 1.0 to 1.01) and album 0.7.2 and the problem still exists.

no content editing possible after content type set to "Album".

hope there's a solution on the way :)
windfjf

Re: after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by windfjf »

I have CMSMS version 1.02  and album 0.7.3 and the problem still exists.

no content editing possible after content type set to "Album".
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: after upgrade tot 1.0 Beta 6 no more editing possible in admin

Post by Dee »

windfjf wrote: I have CMSMS version 1.02  and album 0.7.3 and the problem still exists.

no content editing possible after content type set to "Album".
It's been fixed in SVN (http://dev.cmsmadesimple.org/scm/?group_id=167):
http://dev.cmsmadesimple.org/tracker/in ... 7&atid=725

A tar.gz or .xml snapshot can be downloaded here:
http://forum.cmsmadesimple.org/index.ph ... l#msg39640
Post Reply

Return to “CMSMS Core”