- Posts: 281
- Thank you received: 42
Warning vendorpoints plugin
3 years 2 months ago - 3 years 2 months ago #353661
by oxido
Warning vendorpoints plugin was created by oxido
-- 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:
-- 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:
Last edit: 3 years 2 months ago by oxido. Reason: To clarify that the message is not in the right category
Please Log in or Create an account to join the conversation.
3 years 2 months ago #353679
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Warning vendorpoints plugin
Hello,
You can replace the line with :
And it should avoid the warning.
Please note that you should not display PHP warning in a production environment.
Regards,
You can replace the line with :
Code:
if( (!empty($order->order_type) && $order->order_type != 'subsale') || (!empty($order->old) && $order->old->order_type != 'subsale') )
Please note that you should not display PHP warning in a production environment.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: oxido
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.163 seconds