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

#   problem adding to cart

##

- **[jesper](/forum/user/8151-jesper "View jesper's Profile")**
- [![jesper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/8151-jesper "View jesper's Profile") Topic Author
- [ Offline](/forum/user/8151-jesper)

Less More

- Posts: 171
- Thank you received: 4
-
-

11 years 4 months ago [\#206599](#206599) by [jesper](/forum/user/8151-jesper "View jesper's Profile")  Replied by *[jesper](/forum/user/8151-jesper "View jesper's Profile")* on topic *[problem adding to cart](/forum/26-product-category-display/877043-problem-adding-to-cart?start=20#206599 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.5.37 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/classes/cart.php on line 317  Hi,  i have a big problem on the site. When i go to there and add to cart, i have to add items 3 times to cart, before they get into for first item.  only error i see when doing debuging is Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/classes/cart.php on line 317  i have tried both with our custom template and the default beez20 template, and it does the same.  i have removed all other errors i was seeing on page, so no idea what is causing it.  any suggestions or help on how to fix this problem would be good")*

disabled the autoban as it is a test site... try now

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 4 months ago [\#206613](#206613) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[problem adding to cart](/forum/26-product-category-display/877043-problem-adding-to-cart?start=20#206613 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.5.37 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/classes/cart.php on line 317  Hi,  i have a big problem on the site. When i go to there and add to cart, i have to add items 3 times to cart, before they get into for first item.  only error i see when doing debuging is Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/classes/cart.php on line 317  i have tried both with our custom template and the default beez20 template, and it does the same.  i have removed all other errors i was seeing on page, so no idea what is causing it.  any suggestions or help on how to fix this problem would be good")*

Still banned message after the htaccess password.

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

- **[jesper](/forum/user/8151-jesper "View jesper's Profile")**
- [![jesper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/8151-jesper "View jesper's Profile") Topic Author
- [ Offline](/forum/user/8151-jesper)

Less More

- Posts: 171
- Thank you received: 4
-
-

11 years 4 months ago [\#206705](#206705) by [jesper](/forum/user/8151-jesper "View jesper's Profile")  Replied by *[jesper](/forum/user/8151-jesper "View jesper's Profile")* on topic *[problem adding to cart](/forum/26-product-category-display/877043-problem-adding-to-cart?start=20#206705 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.5.37 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/classes/cart.php on line 317  Hi,  i have a big problem on the site. When i go to there and add to cart, i have to add items 3 times to cart, before they get into for first item.  only error i see when doing debuging is Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/classes/cart.php on line 317  i have tried both with our custom template and the default beez20 template, and it does the same.  i have removed all other errors i was seeing on page, so no idea what is causing it.  any suggestions or help on how to fix this problem would be good")*

removed the script that autobans at it is just a testserver ![;)](/media/kunena/emoticons/24.png ";)")
its bb.test..... you use right ?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 4 months ago [\#206767](#206767) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[problem adding to cart](/forum/26-product-category-display/877043-problem-adding-to-cart?start=20#206767 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.5.37 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/classes/cart.php on line 317  Hi,  i have a big problem on the site. When i go to there and add to cart, i have to add items 3 times to cart, before they get into for first item.  only error i see when doing debuging is Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/classes/cart.php on line 317  i have tried both with our custom template and the default beez20 template, and it does the same.  i have removed all other errors i was seeing on page, so no idea what is causing it.  any suggestions or help on how to fix this problem would be good")*

Hi,

My bad, I was using an older access. So ok I have been able to reach the backend of the test domain, and reproduced the error.

It seem to be coming indeed from the cart class, strange because when we check the value of the $do variable after calling the trigger "onBeforeCartUpdate" in the cart class the value of $do is well "true" so the product should be added in the cart...

I will do further investigation, I have no clues for the moment, keep you informed.

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 4 months ago [\#206773](#206773) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[problem adding to cart](/forum/26-product-category-display/877043-problem-adding-to-cart?start=20#206773 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.5.37 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/classes/cart.php on line 317  Hi,  i have a big problem on the site. When i go to there and add to cart, i have to add items 3 times to cart, before they get into for first item.  only error i see when doing debuging is Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/classes/cart.php on line 317  i have tried both with our custom template and the default beez20 template, and it does the same.  i have removed all other errors i was seeing on page, so no idea what is causing it.  any suggestions or help on how to fix this problem would be good")*

Ok, problem solved, you have to use the function "initCart()" of the cart class after a get() or a loadFullCart().
This allow to make the cart usable back.

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

- **[jesper](/forum/user/8151-jesper "View jesper's Profile")**
- [![jesper's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/8151-jesper "View jesper's Profile") Topic Author
- [ Offline](/forum/user/8151-jesper)

Less More

- Posts: 171
- Thank you received: 4
-
-

11 years 4 months ago [\#206889](#206889) by [jesper](/forum/user/8151-jesper "View jesper's Profile")  Replied by *[jesper](/forum/user/8151-jesper "View jesper's Profile")* on topic *[problem adding to cart](/forum/26-product-category-display/877043-problem-adding-to-cart?start=20#206889 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.5.37 -- Browser(s) name and version -- : any -- Error-message(debug-mod must be tuned on) -- : Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/classes/cart.php on line 317  Hi,  i have a big problem on the site. When i go to there and add to cart, i have to add items 3 times to cart, before they get into for first item.  only error i see when doing debuging is Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/classes/cart.php on line 317  i have tried both with our custom template and the default beez20 template, and it does the same.  i have removed all other errors i was seeing on page, so no idea what is causing it.  any suggestions or help on how to fix this problem would be good")*

thanx that helped me fix that problem.

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

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