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

#   Cart Design error message

##

- **[jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile")**
- [![jfischer&#95;hika's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile") Topic Author
- [ Offline](/forum/user/60459-jfischer-hika)

Less More

- Posts: 51
- Thank you received: 3
-
-

3 years 2 months ago [\#354804](#354804) by [jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile")  *[Cart Design error message](/forum/26-product-category-display/906945-cart-design-error-message#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&#95;design/cart&#95;design&#95;view.php on line 254  Line 254: $desc = trim($view-&gt;params-&gt;get('msg'));")* was created by *[jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile")*

-- 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-&gt;params-&gt;get('msg'));

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

3 years 2 months ago -  3 years 2 months ago [\#354807](#354807) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Cart Design error message](/forum/26-product-category-display/906945-cart-design-error-message#354807 "-- 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&#95;design/cart&#95;design&#95;view.php on line 254  Line 254: $desc = trim($view-&gt;params-&gt;get('msg'));")*

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 :**Code:

$desc = trim($view-&gt;params-&gt;get('msg'));

**For :**Code:

$desc = trim((string) $view-&gt;params-&gt;get('msg'));

**Result :**
[ ![alt](https://i.ibb.co/PMXg606/screenshot.png) ](https://i.ibb.co/PMXg606/screenshot.png "alt")

Once again, thank you for your return.
Regards

Last edit: 3 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

The following user(s) said Thank You: [jfischer\_hika](/forum/user/60459-jfischer-hika "View jfischer&#95;hika's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDY5NDUtY2FydC1kZXNpZ24tZXJyb3ItbWVzc2FnZT90bXBsPW1hcmtkb3du) 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.050 seconds

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