Hi, 

Put your module inside directory, like /modules/vdtest/vdtest_oxbasket.php.
After that, modify modules array, and cleanup tmp folder contents.

this is happening because autoloader uses your vdtest_oxbasket as main class, 
not the module, and then serializing, it writes module, not the main class. 

Mažvydas

From: Kai Gazmaga 
Sent: Wednesday, March 16, 2011 10:54 AM
To: [email protected] 
Subject: [oxid-dev-general] oxbasket and session in 4.4.7

Hello,

I try to overload oxbasket in oxid CE 4.4.7. I have an empty class. As soon, as 
I delete my cookies (so the new class is used) I get a fatal error:

  a.. Fatal error: oxcmp_lang::init() [<a 
href='oxcmp-lang.init'>oxcmp-lang.init</a>]: The script tried to execute a 
method or access a property of an incomplete object. Please ensure that the 
class definition &quot;vdtest_oxBasket&quot; 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 
/path/to/shop/views/oxcmp_lang.php on line 73 
Not neccessaryly oxcmp_lang, but one or another component. I overloaded 
oxBasket in other modules without problems. Any hints / ideas?

Regards, Kai



--------------------------------------------------------------------------------
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to