[TYPO3-commerce] FYI 24: PHP warning due to wrong parameter count
Sascha Egerer
seg at softvision.de
Mon Jul 26 20:07:28 CEST 2010
-1
Does not work with TYPO3 4.2
Btw. the bug was already reported
RFC: #7862: bug: Class constructor of tx_commerce_attribute_value causes
PHP Warning
Regards
Sascha Egerer
Am 26.07.10 18:30, schrieb Michael Knabe:
> This is an SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references: http://forge.typo3.org/issues/show/9042
>
> Branches: trunk
>
> Problem:
> tx_commerce_attribute_value constructor requires one to two parameters.
> Instead of passing them to the constructor,
> tx_commerce_attribute::get_all_values calls the constructor without
> parameters and then calls init() manually.
>
> Reproduction:
> Insert pi1 into a page, create some articles with attributes, enable
> admin panel, look for the above error message.
>
> Additional information:
> Core: Error handler (FE): PHP Warning: Missing argument 1 for
> tx_commerce_attribute_value::tx_commerce_attribute_value(), called in
> /var/www/trunk.localhost/TYPO3v4_trunk/t3lib/class.t3lib_div.php on line
> 5210 and defined in
> /var/www/trunk.localhost/htdocs/typo3conf/ext/commerce/lib/class.tx_commerce_attribute_value.php
> line 81
>
> Solution:
> Replace the empty array with an empty string.
>
> I will commit this one in 24 hours if noone complains.
>
> Cheers, Michael
More information about the TYPO3-team-commerce
mailing list