# ERROR: extending oxbasket 4.7

**URL:** <https://forum.oxid-esales.com/t/error-extending-oxbasket-4-7/63487>\
**Category:** English forums\
**Tags:** modules\
**Created:** [March 14, 2013, 4:01pm UTC](https://forum.oxid-esales.com/t/error-extending-oxbasket-4-7/63487 "2013-03-14T16:01:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balltas](https://forum.oxid-esales.com/letter_avatar_proxy/v4/letter/b/c4cdca/32.png) [@Balltas](https://forum.oxid-esales.com/u/Balltas)\
**Post date:** [March 14, 2013, 4:01pm UTC](https://forum.oxid-esales.com/t/error-extending-oxbasket-4-7/63487/1 "2013-03-14T16:01:23Z")

</div>

[//metadata.php](https://metadata.php):  
//-----------------------------------------------------  
$sMetadataVersion = ‘1.1’;  
$aModule = array(  
‘extend’ =\> array(  
“oxbasket” =\> “ddfreeshipping/models/oxddbasket”  
),  
\<…\>some other tpls, blocks and etc\<…\>  
);

//modules/ddfreeshipping/models/oxddbasket/oxddbasket.php:  
//-----------------------------------------------------  
class oxDdbasket extends oxDdbasket\_parent {}  
// nothing more in this file.  
//------------------------------------------------------------------------------------------------------------------

When I activate module and and try to load [http://oxid.dev/index.php?cl=payment](http://oxid.dev/index.php?cl=payment)  
(2 products are in the basket)

I get an error:  
Fatal error: Call to a member function getBruttoPrice() on a non-object in C:\wamp\www\oxid\core\oxpricelist.php on line 59

everything works if I disable the module.

in oxpricelist.php function getBruttoSum() I wrote a line:  
var\_dump($this-\>\_aList);  
and while my module is active I get this dump before error:

array (size=2)  
0 =\>  
array (size=0)  
empty  
1 =\> string ‘[http://oxid.dev/out/pictures/generated/product/1/87\_87\_75/ion\_sol\_kite\_waist\_2011\_1.jpg](http://oxid.dev/out/pictures/generated/product/1/87_87_75/ion_sol_kite_waist_2011_1.jpg)’ (length=87)

I use default test data. I cant understand why the string is there?  
If I disable my module, the dump is protty normal: its an array that contains oxprice objects.

I use 4.7 OXID.

please help…

edited:  
seems the bug apairs only with PHP v5.4 😕  
[https://bugs.php.net/bug.php?id=55801](https://bugs.php.net/bug.php?id=55801)

---

<div class="post-metadata">

**Author:** ![system](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/system/32/4245_2.png) [@system](https://forum.oxid-esales.com/u/system)\
**Post date:** [July 13, 2026, 7:39pm UTC](https://forum.oxid-esales.com/t/error-extending-oxbasket-4-7/63487/2 "2026-07-13T19:39:53Z")

</div>

Closed on July 13, 2026, 7:39pm UTC


