Fatal error
| From: | Tzvetan Tzankov | Date: | Thu, 24 Aug 2000 13:31:48 +0000 |
| Subject: | Fatal error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-13398@lists.php.net to get a copy of this message | ||
So far my machine was with php4.0RC1 I upgraded to php4.0.1patch2 and now
one of my scripts gives this
Fatal error: The script tried to execute a method or access a property of an
incomplete object. Please ensure that the class definition stdClass of the
object you are trying to operate on was loaded _before_ the session was
started in /home/httpd/jvc/lev1.idea on line 7
I found that it's an object fetched from mysql ($userid =
mysql_fetch_object($res)) $userid is registred in the session (when I do
'echo $userid' it echoes 'Object') but when I try $userid->id it gives me
the above error.
If anybody can help me thanx in advance.