[Skip to main content](#vessel-content)

#   Deprecated: trim(): Passing null to parameter #1 ($string) of type string error

##

- **[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")**
- [![mohairbears's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/916-mohairbears "View mohairbears's Profile") Topic Author
- [ Away](/forum/user/916-mohairbears)

Less More

- Posts: 612
- Thank you received: 13
-

4 years 3 months ago -  4 years 3 months ago [\#344145](#344145) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  *[Deprecated: trim(): Passing null to parameter #1 ($string) of type string error](/forum/27-checkout/904902-deprecated-trim-passing-null-to-parameter-1-string-of-type-string-error#344145 "-- 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&#95;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&#95;hikashop/classes/field.php on line 2309")* was created by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")*

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

Last edit: 4 years 3 months ago by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDkwMi1kZXByZWNhdGVkLXRyaW0tcGFzc2luZy1udWxsLXRvLXBhcmFtZXRlci0xLXN0cmluZy1vZi10eXBlLXN0cmluZy1lcnJvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14327
-
-

4 years 3 months ago [\#344146](#344146) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Deprecated: trim(): Passing null to parameter #1 ($string) of type string error](/forum/27-checkout/904902-deprecated-trim-passing-null-to-parameter-1-string-of-type-string-error#344146 "-- 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&#95;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&#95;hikashop/classes/field.php on line 2309")*

Hi,

Thank you for your feedback.
You can add the code : Code:

if(is_null($value)) $value = '';

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.

The following user(s) said Thank You: [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDkwMi1kZXByZWNhdGVkLXRyaW0tcGFzc2luZy1udWxsLXRvLXBhcmFtZXRlci0xLXN0cmluZy1vZi10eXBlLXN0cmluZy1lcnJvcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.049 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
