Hello List,
i programmed a module for automatic order-generation (abo-system). It
works flawlessly on the test system which is absolutely identical to the
live-system exept being stored in a different folder and running on a
seperate url on the same account / server. The live-system now generates
a fatal error in some situation:
PHP Fatal error: Call to a member function getNettoPrice() on a
non-object in /var/www/web15/html/live/shop/core/oxorder.php on line 738
The big problem is: copying the database from live-db to the test-db in
order to have the exact same conditions (files are synced already), then
changing mail-addresses of costomer(s) and shopowner to test-addresses
and running the abo ends up in NO ERROR. As far as I can see, there is
no way to log the callstack or variable-stack to get some more info from
the error-situation. I do not see ANY reason, why
oxBasketItem->getPrice() does not return a proper oxPrice-Object in the
particular situation.
The module overloads oxorder::finalizeOrder() to handle some stuff
before calling the parent function and trosuoxorder::finalizeOrder() is
called before the original function. My module manually generates a
basket with standard articles and sets payment, shipping and all other
necessary stuff before finalizing the order. Maybe this makes it a bit
clearer, how things are ment to work.
If anyone has an idea, how to retrieve more info from the live-system,
or why the error could occur - please tell me :-)
best regards,
Kai Gazmaga
VektorDesign - Online-Shops und Programmierung
Kai Gazmaga
Katharinenstraße 57
73 728 Esslingen Tel.: +49 711 - 25516226
Fax: +49 711 - 25518078
Mail: [email protected]
Web: www.vektordesign.de
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general