Cart Design error message

  • Posts: 49
  • Thank you received: 3
  • Hikashop Business
9 months 3 weeks 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: 4585
  • Thank you received: 616
  • MODERATOR
9 months 3 weeks 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: 9 months 3 weeks 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.075 seconds
Powered by Kunena Forum