Fatal error: Call to a member function web_order_change() on a non-object

From: Date: Mon, 03 Mar 2008 23:38:24 +0000
Subject: Fatal error: Call to a member function web_order_change() on a non-object
Groups: php.general 
Request: Send a blank email to php-general+get-270883@lists.php.net to get a copy of this message
Our server has just been upgraded to PHP 5.2.5 and suddenly I am getting the following error: Fatal error: Call to a member function web_order_change() on a non-object in /var/www/vhosts/cultureshop.org/httpdocs/cart.php on line 32 The code is: $SESSION["cart"]->web_order_change( true ); The command 'global $SESSION;' is the first line of the script. $SESSION is the session variable created with session_start(); session_register("SESSION"); if ( !isset($SESSION["cart"]) ) { $SESSION["cart"] = new Cart; } I am guessing this is a change in OO handling, any idea what is going on and how to fix it? Regards, Ben -- Ben Edwards - Bristol, UK http://www.flickr.com/photos/funkytwig - have a look at my pics If you have a problem emailing me use http://www.gurtlush.org.uk/profiles.php?uid=4 (email address this email is sent from may be defunct)

« previous php.general (#270883) next »