Jump to content

[SOLVED] Object Serialization


lordzardeck

Recommended Posts

My object is loaded into a session variable at the end of the script. The next time the script is ran, the object is loaded from the session variable. When it does, I get this error:

 

Fatal error: attackSystem::startAttack() [<a href='attacksystem.startattack'>attacksystem.startattack</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "trainingDummy" 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 /home/bfwd/public_html/lordsarmy/handlers/attacksystem.php on line 46

 

What does this mean?

Link to comment
https://forums.phpfreaks.com/topic/173583-solved-object-serialization/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.