Funny to see that this bug still exists. I already described it in October
2009 in the German forum

http://www.oxid-esales.com/forum/showthread.php?t=2758

 

 <mailto:[email protected]> [email protected] |
<http://www.mediaopt.de/> www.mediaopt.de

 

derksen mediaopt gmbh | elbestrasse 28/29 | 12045 berlin | +49 (30) 34 09
42-77 | fax-66 | Amtsgericht Charlottenburg | HRB 120935 B | ust.-id
DE265886017 | geschäftsführer dipl.-ing. philipp derksen

 

Von: [email protected]
[mailto:[email protected]] Im Auftrag von Kai Gazmaga
Gesendet: Mittwoch, 16. März 2011 10:51
An: [email protected]
Betreff: Re: [oxid-dev-general] oxbasket and session in 4.4.7

 

Hello again,

after searching and traying for nearly 2.5 hours and beeing close to loosing
my mind i posted to the list. NOW I found the solution: I also overload
oxbasketitem. If I register oxbasket AFTER oxbasketitem the error occurs. So
simply registering oxbasket in the first line of System -> Modules in the
backend solves the whole problem.

As happy as I am now with having a solution for this, I still do not really
understand it. Each and every class is testet for having overloads when
being instantiated. So why does it make any difference in wich position
oxbasket is listed in the modules-section??? 

Regards, Kai 

VektorDesign - Online-Shops und Programmierung 


Kai Gazmaga 
Neue Strasse 83 
89 073 Ulm 

Tel.: +49 731 - 3781953 
Fax: +49 731 - 3781952 

Mail: [email protected] 
Web: www.vektordesign.de 

 



Am 16.03.2011 10:46, schrieb Mažvydas Skuodas: 

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 <mailto:[email protected]>  

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:

*       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
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to