[solved ... nearly] CMSMS V1.2 | Edit Content | Fatal Error
Posted: Thu Oct 25, 2007 9:18 pm
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:
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
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);
}
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