PHP error after updating to PHP 5.4.29

  • Posts: 2
  • Thank you received: 0
10 years 5 months ago #159679

-- 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.

  • Posts: 2
  • Thank you received: 0
10 years 5 months ago #159684

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.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 5 months ago #159686

Hi,

Change the line:

$total->prices = array(clone(reset($ref_total->prices)));
to:
$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.059 seconds
Powered by Kunena Forum