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

#   Notice: Undefined property: stdClass::$cart\_name

##

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

Less More

- Posts: 120
- Thank you received: 1
-
-
-

14 years 1 month ago [\#65570](#65570) by [watashi](/forum/user/8585-watashi "View watashi's Profile")  *[Notice: Undefined property: stdClass::$cart\_name](/forum/3-bug-report/65570-notice-undefined-property-stdclass-cart-name#65570 "Hello,  I have following error, which comes out at the very final stage of check out process  Before I found this error, I did two things:  1) In the control panel of my hosting provider, I have switched PHP version from 5.2 to 5.3. 2) Have changed e-mail send function from PHP mail to Sendmail.  Can you suggest what could be the reason of above?  Thanks.")* was created by *[watashi](/forum/user/8585-watashi "View watashi's Profile")*

Hello,

I have following error, which comes out at the very final stage of check out process
Code:

Notice: Undefined property: stdClass::$cart_name in /home/watashi/sad-ogorod.com.ua/www/administrator/components/com_hikashop/classes/cart.php on line 169 Notice: Undefined property: stdClass::$cart_share in /home/watashi/sad-ogorod.com.ua/www/administrator/components/com_hikashop/classes/cart.php on line 170

Before I found this error, I did two things:

1) In the control panel of my hosting provider, I have switched PHP version from 5.2 to 5.3.
2) Have changed e-mail send function from PHP mail to Sendmail.

Can you suggest what could be the reason of above?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82NTU3MC1ub3RpY2UtdW5kZWZpbmVkLXByb3BlcnR5LXN0ZGNsYXNzLWNhcnQtbmFtZT90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

14 years 1 month ago [\#65575](#65575) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Notice: Undefined property: stdClass::$cart\_name](/forum/3-bug-report/65570-notice-undefined-property-stdclass-cart-name#65575 "Hello,  I have following error, which comes out at the very final stage of check out process  Before I found this error, I did two things:  1) In the control panel of my hosting provider, I have switched PHP version from 5.2 to 5.3. 2) Have changed e-mail send function from PHP mail to Sendmail.  Can you suggest what could be the reason of above?  Thanks.")*

Hi,

We've already corrected that on our end.
You can add the code
if(isset($cart-&gt;cart_name))
and
if(isset($cart-&gt;cart_name))
at the beginning of these lines and it will remove the notice message.

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

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

Less More

- Posts: 120
- Thank you received: 1
-
-
-

14 years 1 month ago [\#65577](#65577) by [watashi](/forum/user/8585-watashi "View watashi's Profile")  Replied by *[watashi](/forum/user/8585-watashi "View watashi's Profile")* on topic *[Re: Notice: Undefined property: stdClass::$cart\_name](/forum/3-bug-report/65570-notice-undefined-property-stdclass-cart-name#65577 "Hello,  I have following error, which comes out at the very final stage of check out process  Before I found this error, I did two things:  1) In the control panel of my hosting provider, I have switched PHP version from 5.2 to 5.3. 2) Have changed e-mail send function from PHP mail to Sendmail.  Can you suggest what could be the reason of above?  Thanks.")*

Thank you. This worked for me!

if(isset($cart-&gt;cart_name)) $cart-&gt;cart_name = strip_tags($cart-&gt;cart_name);
if(isset($cart-&gt;cart_name)) $cart-&gt;cart_share = strip_tags($cart-&gt;cart_share);

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

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