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

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
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

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

Post 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.
Last edited by seensite on Wed Feb 24, 2010 1:43 pm, edited 1 time in total.
The universe of information technology is constantly growing and contains only emerging products built on successive patches
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post 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  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

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

Post 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.
The universe of information technology is constantly growing and contains only emerging products built on successive patches
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
User avatar
seensite
Forum Members
Forum Members
Posts: 173
Joined: Sun Feb 10, 2008 7:36 pm

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

Post 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...
The universe of information technology is constantly growing and contains only emerging products built on successive patches
Izal

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

Post by Izal »

I too experienced issues with upgrade using the diff package.

So your not alone.
Post Reply

Return to “CMSMS Core”