Members: 10,140
Threads: 38,830
Posts: 159,367
Online: 25

Newest Member: Xoote



Go Back   Mambers.com > Archive > Mambo 4.5 > Mambo 4.5 Bugs

 
 
Thread Tools Display Modes
Old 18.04.2004, 20:50   #1
chrisn
Guest
 
Posts: n/a
Default Fatal error: Call to a member function on a non-object in ...

Fatal error: Call to a member function on a non-object in /home/[site path omitted]/classes/mambo.php on line 1614

I now get this message upon entry to my site - Can anyone tell me what this means and how to fix it? (I have omitted the site paths)
The line from the file it refers to is highlighted here in blue. I have posted an excerpt to assist:

/**
* Checks whether a menu option is within the users access level
* @param int Item id number
* @param string The menu option
* @param int The users group ID number
* @param database A database connector object
* @return boolean True if the visitor's group at least equal to the menu access
*/
function mosMenuCheck( $Itemid, $menu_option, $gid, &$db ) {
$dblink="index.php?option=$menu_option";
$db->setQuery( "SELECT access FROM #__menu WHERE id='$Itemid' OR link='$dblink'" );
$access = intval( $db->loadResult() );
return ($access <= $gid);
}

Any help would be appreciated...
Regards,
Chris.
 
Sponsored Links
Old 20.06.2006, 12:28   #2
maalder
Baby Mamber
 
maalder's Avatar
 
Join Date: Jun 2006
Posts: 2
maalder is on a distinguished road
Default Re: Fatal error: Call to a member function on a non-object in ...

**** wrong item ****
maalder is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:55.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.