Error messages above the summary of the order receive by our office

  • Posts: 14
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
9 hours 11 minutes ago #371057

-- HikaShop version -- : 6.4.0
-- Joomla version -- : 5.4.3
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Firefox 149.0
-- Error-message(debug-mod must be tuned on) -- : /home/commini/public_html/media/com_hikashop/mail/email / order_admin_notification.preload.modified.php on line 93 ( Same error for line 95)

The invoice sent to the customer works fine.
The email order received by our office has these to error messages above the summary of the order

Warning : Undefined variable &url in:
/home/commini/public_html/media/com_hikashop/mail/email / order_admin_notification.preload.modified.php on line 93

/home/commini/public_html/media/com_hikashop/mail/email / order_admin_notification.preload.modified.php on line 95

This error began after the update to Hikashop 6.4.0, no errors before that.

We have not changed any settings to this section either before or after the updae to 6.4.0

Copy of Lines 93 and 95 from email / order_admin_notification.preload.modified.php

'ORDER_CREATED' => JText::sprintf('ORDER_CREATION_CONFIRM_ON_WEBSITE_AT_DATE', $data->order_number, $url, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M')),

'ORDER_NEWNOTE' => JText::sprintf('Request Notes', $data->request_note),

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

  • Posts: 85357
  • Thank you received: 13943
  • MODERATOR
4 hours 51 minutes ago #371058

Hello,

This warning comes from your modified template file `order_admin_notification.preload.modified.php`. It references a `$url` variable that doesn't exist in the template context.

In the current default template, the variable is called `$order_url` (set from `$data->order_url`). You need to replace `$url` with `$order_url` on lines 93 and 95 of your modified file.

You can also compare your `.modified.php` file with the default template `order_admin_notification.preload.php` in the `media/com_hikashop/mail/email/` folder to check for other differences that may have been introduced by the 6.4.0 update.

If you need the backend order edit URL, you can use the template variable `{VAR:ORDER_LINK}` which generates a direct link to the order edit page in the administration.

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

  • Posts: 14
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
4 hours 7 minutes ago #371063

Thank you. I will give that a try and report back with my results

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

  • Posts: 14
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
2 hours 50 minutes ago #371066

Ok I made the change to email / order_admin_notification.preload.modified.php

Line 93 'ORDER_CREATED' => JText::sprintf('ORDER_CREATION_CONFIRM_ON_WEBSITE_AT_DATE', $data->order_number, $order_url, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M')),


Didn't see to help

When we try to send an e-Mail to our office with the order we get tjos error message An error has occurred.

After doing some further checking with our on site people the following information was given to me.

0 Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin()


Line 95 didn't have the variable $url error instead it had this error message

Warning: Undefined property: stdClass::$request_note in /home/compmini/public_html/media/com_hikashop/mail/order_admin_notification.preload.modified.php on line 95

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

Time to create page: 0.058 seconds
Powered by Kunena Forum