Skip to main content

Error message in Order Creation Notification email

More
11 years 7 months ago #192684 by phickman
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.4.0
-- PHP version -- : 5.3.27

The Order Creation Notification email is throwing the following message:


Notice: Undefined property: stdClass::$LWDisplay in /[path]/media/com_hikashop/mail/order_creation_notification.preload.php on line 159

Please advise if you have a fix I can put in place. Thanks!

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #192688 by Jerome
Hi,

It looks like you have an item custom fields which does not exists.
You can edit the email file and replace
Code:
if(empty($item->$namekey) && !strlen($item->$namekey)) continue;
By
Code:
if(!isset($item->$namekey) || (empty($item->$namekey) && !strlen($item->$namekey))) continue;
And it should fix the notice message.
Please note that it is just a notice ; it's not an error or a really big issue ; it will not break the HikaShop process and in production website, the PHP message should be hidden (but for sure, we do our best to remove all notices).

Regards,

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.166 seconds
Powered by Kunena Forum