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

From: Date: Mon, 30 Jul 2001 13:26:38 +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-60207@lists.php.net to get a copy of this message
greg@syntonik.co.uk (Greg Fyans) wrote: > 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); > have you initialized you object before using it? like: $MyCart = new MyCart; -- Henrik Hansen

« previous php.general (#60207) next »