- Posts: 2
- Thank you received: 0
PHP error after updating to PHP 5.4.29
- detheridge02
-
Topic Author
- Offline
Less
More
12 years 3 months ago #159679
by detheridge02
PHP error after updating to PHP 5.4.29 was created 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
-- 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.
- detheridge02
-
Topic Author
- Offline
Less
More
- Posts: 2
- Thank you received: 0
12 years 3 months ago #159684
by detheridge02
Replied by detheridge02 on topic PHP error after updating to PHP 5.4.29
I have just tested this with Internet Explorer and Firefox and the error doesn't appear.
Dave
Dave
Please Log in or Create an account to join the conversation.
12 years 3 months ago #159686
by nicolas
Replied by nicolas on topic PHP error after updating to PHP 5.4.29
Hi,
Change the line:
to:
in that file and that should fix the problem.
Change the line:
Code:
$total->prices = array(clone(reset($ref_total->prices)));
Code:
$price = reset($ref_total->prices);
if(is_null($price)) $price = new stdClass();
$total->prices = array(clone($price));
Please Log in or Create an account to join the conversation.
Time to create page: 0.205 seconds