note 74416 added to function.main
| From: | timmiejt at xs4all dot nl | Date: | Tue, 10 Apr 2007 18:43:23 +0000 |
| Subject: | note 74416 added to function.main | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125269@lists.php.net to get a copy of this message | ||
Notice: main() [function.main]: The script tried to execute a method or access a property of an
incomplete object. Please ensure that the class definition "clsUser" of the object you are
trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload()
function to load the class definition in <file> on line 54
I'm getting this error when im trying to store an class in a session. Something like this:
$_SESSION["clsUser"] = $this;
----
Server IP: 83.137.20.120
Probable Submitter: 82.92.75.228
----
Manual Page -- http://www.php.net/manual/en/function.main.php
Edit -- https://master.php.net/note/edit/74416
Del: integrated -- https://master.php.net/note/delete/74416/integrated
Del: useless -- https://master.php.net/note/delete/74416/useless
Del: bad code -- https://master.php.net/note/delete/74416/bad+code
Del: spam -- https://master.php.net/note/delete/74416/spam
Del: non-english -- https://master.php.net/note/delete/74416/non-english
Del: in docs -- https://master.php.net/note/delete/74416/in+docs
Del: other reasons-- https://master.php.net/note/delete/74416
Reject -- https://master.php.net/note/reject/74416
Search -- https://master.php.net/manage/user-notes.php