Cart Design error message

  • Posts: 51
  • Thank you received: 3
  • Hikashop Business
1 year 3 months ago #354804

-- HikaShop version -- : 4.7.5
-- Joomla version -- : 4.3.4
-- PHP version -- : 8.1

Hello,

I am getting an error message after updating to PHP 8.1.

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /plugins/hikashop/cart_design/cart_design_view.php on line 254

Line 254:
$desc = trim($view->params->get('msg'));

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

  • Posts: 4760
  • Thank you received: 647
  • MODERATOR
1 year 3 months ago #354807

Hello,

Thanks for your return, we will correct our package.
And I will teach you how to correct quickly your plugin, follow me step by step :
1. Go to Your_Website\plugins\hikashop\cart_design folder
2. Open the cart_design_view.php file
3. Go around the 254 line
4. Replace :

$desc = trim($view->params->get('msg'));
For :
$desc = trim((string) $view->params->get('msg'));

Result :


Once again, thank you for your return.
Regards

Last edit: 1 year 3 months ago by Philip.
The following user(s) said Thank You: jfischer_hika

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

Time to create page: 0.055 seconds
Powered by Kunena Forum