Skip to main content

PHP error after updating to PHP 5.4.29

More
12 years 3 months ago #159679 by detheridge02
-- url of the page with the problem -- : Checking out cart from www.72010-hengist.org
-- HikaShop version -- : HikaShop [1403280123]
-- Joomla version -- : 2.5.20
-- PHP version -- : 5.4.29
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- :
Warning: reset() expects parameter 1 to be array, null given in /home/hengist/public_html/administrator/components/com_hikashop/classes/currency.php on line 1814

Fatal error: __clone method called on non-object in /home/hengist/public_html/administrator/components/com_hikashop/classes/currency.php on line 1814

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #159684 by detheridge02
I have just tested this with Internet Explorer and Firefox and the error doesn't appear.
Dave

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #159686 by nicolas
Hi,

Change the line:
Code:
$total->prices = array(clone(reset($ref_total->prices)));
to:
Code:
$price = reset($ref_total->prices); if(is_null($price)) $price = new stdClass(); $total->prices = array(clone($price));
in that file and that should fix the problem.

Please Log in or Create an account to join the conversation.

Time to create page: 0.205 seconds
Powered by Kunena Forum