Error message in Order Creation Notification email

  • Posts: 51
  • Thank you received: 0
10 years 2 months ago #192684

-- 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.

  • Posts: 26235
  • Thank you received: 4036
  • MODERATOR
10 years 2 months ago #192688

Hi,

It looks like you have an item custom fields which does not exists.
You can edit the email file and replace

if(empty($item->$namekey) && !strlen($item->$namekey)) continue;
By
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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.052 seconds
Powered by Kunena Forum