Skip to main content

error php

More
3 years 10 months ago #346670 by Nasilowski
error php was created by Nasilowski
-- url of the page with the problem -- : www.pro-ex.com.na
-- Joomla version -- : 3.5
-- PHP version -- : 8.1
-- Error-message(debug-mod must be tuned on) -- : line 384 deprecated implicit conversion from float 25.5 on auction site with photos.. This shows and then goes away then shows...

Error on site with php 8.1

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

More
3 years 10 months ago #346678 by nicolas
Replied by nicolas on topic error php
Hi,

Change the code:
Code:
if(function_exists('imagecopyresampled')) { imagecopyresampled($ret['res'], $source['res'], $x, $y, 0, 0, $sx, $sy, $origin_width, $origin_height); } else { imagecopyresized($ret['res'], $source['res'], $x, $y, 0, 0, $sx, $sy, $origin_width, $origin_height); }
to:
Code:
if(function_exists('imagecopyresampled')) { imagecopyresampled($ret['res'], $source['res'], (int)$x, (int)$y, 0, 0, (int)$sx, (int)$sy, (int)$origin_width, (int)$origin_height); } else { imagecopyresized($ret['res'], $source['res'], (int)$x, (int)$y, 0, 0, (int)$sx, (int)$sy, (int)$origin_width, (int)$origin_height); }
in the file administrator/components/com_hikashop/helpers/image.php and it will remove these messages.
We'll add the change on our end too for the next version of HikaShop.

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

Moderators: Mohamed Thelji
Time to create page: 0.172 seconds
Powered by Kunena Forum