Re: "Call to a member function on a non-object" error!

From: Date: Tue, 31 Jul 2001 07:38:32 +0000
Subject: Re: "Call to a member function on a non-object" error!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-60347@lists.php.net to get a copy of this message
>Fatal error: Call to a member function on a non-object >in /home/cmradmin/public_html/thus/basket.php on line 304 > >Does anyone know what the flaming heck that means? I'm trying to fix this little problem >which has only appeared since my webserver upgraded to PHP4. > >Line 304 contains this: > >$MyCart->Display($Orderno); PHP thinks that $MyCart ain't an object, much less a Cart object. At line 303, insert: echo "MyCart is a ", vartype($MyCart), "<BR>\n"; vardump($MyCart); and see what you get. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#60347) next »