- Posts: 608
- Thank you received: 13
Deprecated: trim(): Passing null to parameter #1 ($string) of type string error
- mohairbears
-
Topic Author
- Offline
Less
More
4 years 1 month ago - 4 years 1 month ago #344145
by mohairbears
Deprecated: trim(): Passing null to parameter #1 ($string) of type string error was created by mohairbears
-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2
-- PHP version -- : 8
-- Browser(s) name and version -- : chrome
-- Error-message(debug-mod must be tuned on) -- : Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/xxxxx.co.uk/administrator/components/com_hikashop/classes/field.php on line 2309
Hi, Im updating to J4 and get the attached error message in checkout?
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in xxxxxx.co.uk/administrator/components/com_hikashop/classes/field.php on line 2309
-- Joomla version -- : 4.2
-- PHP version -- : 8
-- Browser(s) name and version -- : chrome
-- Error-message(debug-mod must be tuned on) -- : Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/xxxxx.co.uk/administrator/components/com_hikashop/classes/field.php on line 2309
Hi, Im updating to J4 and get the attached error message in checkout?
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in xxxxxx.co.uk/administrator/components/com_hikashop/classes/field.php on line 2309
Last edit: 4 years 1 month ago by mohairbears.
Please Log in or Create an account to join the conversation.
4 years 1 month ago #344146
by nicolas
Replied by nicolas on topic Deprecated: trim(): Passing null to parameter #1 ($string) of type string error
Hi,
Thank you for your feedback.
You can add the code :
just before the line of the error in administrator/components/com_hikashop/classes/field.php and it will remove the deprecated message.
We'll add the change on our end too for the next version of HikaShop.
Thank you for your feedback.
You can add the code :
Code:
if(is_null($value))
$value = '';
We'll add the change on our end too for the next version of HikaShop.
The following user(s) said Thank You: mohairbears
Please Log in or Create an account to join the conversation.
Time to create page: 0.164 seconds