Page 1 of 1

[solved ... nearly] CMSMS V1.2 | Edit Content | Fatal Error

Posted: Thu Oct 25, 2007 9:18 pm
by babulski
I've just installed 4 (yes, four!) separate installations of CMSMS on a client server.
Worked fine, as ever, CMSMS rocksĀ  ;)

BUT:
While trying to edit a page in one of these installations (demo-stuff was installed) it got this error:

Fatal error: Call to a member function on a non-object in /~/public_html/admin/editcontent.php on line 327

Okay. Let's have a look in editcontent.php:

Code: Select all

	else if ($content_id != -1 && !$preview && strtolower(get_class($contentobj)) != strtolower($content_type))
	{
		global $gCms;
		$contentops =& $gCms->GetContentOperations();
		$contentobj = $contentops->LoadContentFromId($content_id);
line 327:	$content_type = $contentobj->Type();
		$contentobj->SetLastModifiedBy($userid);
	}
What's happening there?

The server's running PHP 4.3.3.
Excerpt from phpinfo():

magic_quotes_gpc: On On
magic_quotes_runtime: Off Off
register_globals: On On
safe_mode: Off Off

The dir-rights are set correct (during install).

Any ideas?

PS: Posted this already in the German-Thread

[SOLVED] CMSMS V1.2 | Edit Content | Fatal Error

Posted: Fri Oct 26, 2007 12:57 pm
by babulski
UPDATE:

I've just found a quick & dirty workaround to 'solve' this problem, and posted this in the original German-Thread.

http://forum.cmsmadesimple.org/index.php/topic,16329.0.html

Re: [solved ... nearly] CMSMS V1.2 | Edit Content | Fatal Error

Posted: Tue Oct 30, 2007 12:01 pm
by neelesh