php-general | 2001072
Date: 07/31/01
- Next message: Richard Lynch: "[PHP] Re: Reading from remote files"
- Previous message: Richard Lynch: "[PHP] Re: Large Calculations"
- In reply to: Greg Fyans: "[PHP] "Call to a member function on a non-object" error!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>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 <email protected> address is an endangered species -- Use ceo <email protected> 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-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Richard Lynch: "[PHP] Re: Reading from remote files"
- Previous message: Richard Lynch: "[PHP] Re: Large Calculations"
- In reply to: Greg Fyans: "[PHP] "Call to a member function on a non-object" error!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

