- Posts: 2
- Thank you received: 0
error php
- Nasilowski
-
Topic Author
- Offline
Less
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
-- 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.
3 years 10 months ago #346678
by nicolas
Hi,
Change the code:
to:
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.
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);
}
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);
}
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