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

#   Warning vendorpoints plugin

##

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

Less More

- Posts: 285
- Thank you received: 42
-
-

3 years 3 months ago -  3 years 3 months ago [\#353661](#353661) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  *[Warning vendorpoints plugin](/forum/22-market-bug-report/906765-warning-vendorpoints-plugin#353661 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : 4.3.3 -- PHP version -- : 8.1.21 -- Browser(s) name and version -- : Google chrome -- Error-message(debug-mod must be tuned on) -- : Warning: Undefined property: stdClass::$old - plugins/hikashop/vendorpoints/vendorpoints.php on line 161  Warning: Undefined property: stdClass::$old - plugins/hikashop/vendorpoints/vendorpoints.php on line 161 Warning: Attempt to read property &quot;order&#95;type&quot; on null in plugins/hikashop/vendorpoints/vendorpoints.php on line 161  In backend, go to orders and change the status of one order and that message it will be visible for 2-4 frames in the popup.  PS. Sorry, I didn't picked the right category for this message :silly:")* was created by *[oxido](/forum/user/29793-oxido "View oxido's Profile")*

-- HikaShop version -- : 4.7.4
-- Joomla version -- : 4.3.3
-- PHP version -- : 8.1.21
-- Browser(s) name and version -- : Google chrome
-- Error-message(debug-mod must be tuned on) -- : Warning: Undefined property: stdClass::$old - plugins/hikashop/vendorpoints/vendorpoints.php on line 161

Warning: Undefined property: stdClass::$old - plugins/hikashop/vendorpoints/vendorpoints.php on line 161
Warning: Attempt to read property "order_type" on null in plugins/hikashop/vendorpoints/vendorpoints.php on line 161

In backend, go to orders and change the status of one order and that message it will be visible for 2-4 frames in the popup.

PS. Sorry, I didn't picked the right category for this message :silly:

- [ ![vendorpoints&#95;warning&#95;oxido&#95;24-07-23.png](/forum/attachment/57449) ](/forum/attachment/57449 "...o&#95;24-07-23.png") [ ](/forum/attachment/57449?download=1 "...o&#95;24-07-23.png")

Last edit: 3 years 3 months ago by [oxido](/forum/user/29793-oxido "View oxido's Profile"). Reason: To clarify that the message is not in the right category

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

3 years 3 months ago [\#353679](#353679) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Warning vendorpoints plugin](/forum/22-market-bug-report/906765-warning-vendorpoints-plugin#353679 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : 4.3.3 -- PHP version -- : 8.1.21 -- Browser(s) name and version -- : Google chrome -- Error-message(debug-mod must be tuned on) -- : Warning: Undefined property: stdClass::$old - plugins/hikashop/vendorpoints/vendorpoints.php on line 161  Warning: Undefined property: stdClass::$old - plugins/hikashop/vendorpoints/vendorpoints.php on line 161 Warning: Attempt to read property &quot;order&#95;type&quot; on null in plugins/hikashop/vendorpoints/vendorpoints.php on line 161  In backend, go to orders and change the status of one order and that message it will be visible for 2-4 frames in the popup.  PS. Sorry, I didn't picked the right category for this message :silly:")*

Hello,

You can replace the line with : Code:

if( (!empty($order-&gt;order_type) &amp;&amp; $order-&gt;order_type != 'subsale') &#124;&#124; (!empty($order-&gt;old) &amp;&amp; $order-&gt;old-&gt;order_type != 'subsale') )

And it should avoid the warning.

Please note that you should not display PHP warning in a production environment.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0LzkwNjc2NS13YXJuaW5nLXZlbmRvcnBvaW50cy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) 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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.047 seconds

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