error php

  • Posts: 2
  • Thank you received: 0
2 years 1 month ago #346670

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

Attachments:

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
2 years 1 month ago #346678

Hi,

Change the 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:
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.047 seconds
Powered by Kunena Forum