[TYPO3-commerce] FYI 24: PHP warning due to wrong parameter count
Michael Knabe
t3 at aafhh.de
Mon Jul 26 18:30:44 CEST 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9042_v1.diff
Type: text/x-patch
Size: 854 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-commerce/attachments/20100726/be76630b/attachment.bin>
More information about the TYPO3-team-commerce
mailing list