Multi langual website warning in backend Deprecated: strtoupper()

  • Posts: 191
  • Thank you received: 11
  • Hikashop Business
1 year 8 months ago #352354

-- HikaShop version -- : 4.7.3
-- Joomla version -- : 4.3.2
-- PHP version -- : 8.1
-- Error-message(debug-mod must be tuned on) -- : Deprecated: strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in C:\wamp64\www\testshop\administrator\components\com_hikashop\helpers\translation.php on line 628

I installed Hikashop in a multi lanual website and activated the multi langual feature.
Whem I edit a product I now have a lot of deprication warnings:

Deprecated: strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in C:\wamp64\www\testshop\administrator\components\com_hikashop\helpers\translation.php on line 628

Attachments:

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

  • Posts: 83326
  • Thank you received: 13473
  • MODERATOR
1 year 8 months ago #352370

Hi,

Thanks for the feedback. Change the line:

$key = preg_replace('#[^A-Z_0-9]#','',strtoupper($orig));
to:
$key = preg_replace('#[^A-Z_0-9]#','',strtoupper((string)$orig));
in administrator\components\com_hikashop\helpers\translation.php and it will remove these.
We'll do the change on our end for the next version of HikaShop, which is to be released soon.

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

Time to create page: 0.050 seconds
Powered by Kunena Forum