"Call to a member function on a non-object" error!
| From: | Greg Fyans | Date: | Mon, 30 Jul 2001 13:16:34 +0000 |
| Subject: | "Call to a member function on a non-object" error! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-60206@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);
Which is calling the function from this class:
class MyCart extends Cart {
function Display($orderno)
{
echo "called dummy..."; // this isnt the real function this is just a dummy
}
}
I can't quite figure out the error message itself, it doesnt really make any sense.
Any help appreciated!
Cheers.
--
Greg Fyans
greg@syntonik.co.uk