Page 1 of 1

[SOLVED] Fatal error before 1st step during upgrade to 1.6.7

Posted: Wed Feb 24, 2010 11:49 am
by seensite
Hello,

Upgrading from CMS 1.6.6, first step of the install process didn't show but this message does :
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
It is (was) a regular CMSMS 1.6.6, the class.contentoperations.inc.php file around 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;
	}
In my Notepad++, line 372 is the stronged one.

Does someone have the problem solutionned ?


EDIT: With class.contentoperations.inc.php from version 1.6.6 the result is the same.

Re: Fatal error before 1st step during upgrade to 1.6.7

Posted: Wed Feb 24, 2010 1:07 pm
by Rolf
seensite wrote: Upgrading from CMS 1.6.6, first step of the install process didn't show but this message does :

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
Hey seensite,

I upgraded my testsite from 1.6.6 to 1.6.7 just now without any problems, and I don't have a Install process here...
Did you by any chance use the base package for this, instead of the diff. package?

Regards, Rolf  :)

Re: Fatal error before 1st step during upgrade to 1.6.7

Posted: Wed Feb 24, 2010 1:27 pm
by seensite
Rolf wrote: Hey seensite,

I upgraded my testsite from 1.6.6 to 1.6.7 just now without any problems, and I don't have a Install process here...
Did you by any chance use the base package for this, instead of the diff. package?

Regards, Rolf  :)
Hello Rolf,

Thank you for the idea, unfortunately I used the diff. package. I am still on it, 'll post if I find a solution.
It's anyways good hearing it's ok for you : it Should work for me too.

Re: Fatal error before 1st step during upgrade to 1.6.7

Posted: Wed Feb 24, 2010 1:32 pm
by RonnyK
seensite,

Rolf's point was if you used base or diff, as the diff from 1.6.6 to 1.6.7 shouldnt start an upgrade process. There is no DB-change in between, so only file-changes are done.

Ronny

Re: Fatal error before 1st step during upgrade to 1.6.7

Posted: Wed Feb 24, 2010 1:43 pm
by seensite
RonnyK wrote: seensite,

Rolf's point was if you used base or diff, as the diff from 1.6.6 to 1.6.7 shouldnt start an upgrade process. There is no DB-change in between, so only file-changes are done.

Ronny
Thank you Ronny for explaining me Rolf's point, sorry Rolf.  :-[
How dumb am I...

Re: [SOLVED] Fatal error before 1st step during upgrade to 1.6.7

Posted: Mon Mar 08, 2010 11:14 am
by Izal
I too experienced issues with upgrade using the diff package.

So your not alone.