Upgrading from CMS 1.6.6, first step of the install process didn't show but this message does :
It is (was) a regular CMSMS 1.6.6, the class.contentoperations.inc.php file around line 372 :Fatal error: Call to a member function GetRow() on a non-object in /home/httpd/vhosts/lovecmsms.us/httpdocs/lib/classes/class.contentoperations.inc.php on line 372
Code: Select all
function & GetDefaultContent()
{
global $gCms;
if( isset($gCms->variables['default_content_id']) )
{
return $gCms->variables['default_content_id'];
}
$db =& $gCms->GetDb();
$result = -1;
$query = "SELECT content_id FROM ".cms_db_prefix()."content WHERE default_content = 1";
[b] $row = & $db->GetRow($query);[/b]
if ($row)
{
$result = $row['content_id'];
}
else
{
#Just get something...
$query = "SELECT content_id FROM ".cms_db_prefix()."content";
$row = &$db->GetRow($query);
if ($row)
{
$result = $row['content_id'];
}
}
$gCms->variables['default_content_id'] = $result;
return $result;
}
Does someone have the problem solutionned ?
EDIT: With class.contentoperations.inc.php from version 1.6.6 the result is the same.