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

  • Posts: 18
  • Thank you received: 5
  • Hikamarket Frontedition Hikashop Business
5 days 23 hours 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: 85393
  • Thank you received: 13956
  • MODERATOR
5 days 19 hours 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: 18
  • Thank you received: 5
  • Hikamarket Frontedition Hikashop Business
5 days 18 hours 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: 18
  • Thank you received: 5
  • Hikamarket Frontedition Hikashop Business
5 days 17 hours 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.

  • Posts: 85393
  • Thank you received: 13956
  • MODERATOR
5 days 7 hours ago #371068

Hi,

Rename the file media/com_hikashop/mail/order_admin_notification.preload.modified.php via FTP in order to deactivate it. It will then work again.

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

  • Posts: 18
  • Thank you received: 5
  • Hikamarket Frontedition Hikashop Business
5 days 4 hours ago #371073

I renamed the file media/com_hikashop/mail/order_admin_notification.preload.modified.php
Didn't make a difference
Still getting the An error has occurred when I try to resend the email to our office
0 Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin()

I also tried renaming the file media/com_hikashop/mail/order_admin_notification.preload.modified.override.php
Didn't make a difference

The file order_admin_notification.preload.php is still active

I have access to CPanel File Manager on our server.

As I previously stated, all was working well until the 6.4.0 update.

Any ideas.

The emails work fine to the customers but email to us does not.

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

  • Posts: 85393
  • Thank you received: 13956
  • MODERATOR
5 days 1 hour ago #371074

Hi,

The error "0 Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin()" is the short version when the "debug" setting of the joomla configuration page is turned off.
With the setting turned on, you'll get the path of the file where the error is.
If the error is in media/com_hikashop/mail/order_admin_notification.preload.modified.php then renaming the file will 100% fix the problem.
If the error is in another file (probably another .modified.php file in that same folder), then you need to rename that other file. And you might have overrides for several emails and the issue in several of them.

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

  • Posts: 18
  • Thank you received: 5
  • Hikamarket Frontedition Hikashop Business
4 days 23 hours ago #371075

Used your suggestion and ran the Debug on the error message.
As you can see from the attachment, there seems to be a lot of issues.

With all those issues, would a reinstall of the Hikashop 6.4.0 resolve the issue. ??

What do you think our next step should be?

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

  • Posts: 85393
  • Thank you received: 13956
  • MODERATOR
4 days 19 hours ago #371077

Hi,

There are not a lot of issues. What you have in your attachment is the extended debug information for ONE error.

Unfortunately, you didn't provide the first line(s) of the error message, and thus we're missing the file path where the problem happens. Basically, as a comparison, it's like if you gave me the google maps itinerary to your street, but not the street number, so I don't which house you're in, but I know you're not far.

However, based on what is written in it, it seems that you reproduced the issue by clicking on the "email" button of an order;
In that case, it is the "order notification" email which is loaded, not the "order admin notification" email.
So the problem is likely with the file media/com_hikashop/mail/order_notification.preload.modified.php
rename it via FTP and try again and it should work.

Reinstalling HikaShop won't help. The problem is not in HikaShop. It's in a customization you've made in the past.

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

  • Posts: 18
  • Thank you received: 5
  • Hikamarket Frontedition Hikashop Business
4 days 4 hours ago #371093

OK
I will work on it today and let you know if the issue is resolved

I'm swamped with technical fires that everyone wants extinguished at the same time.

Thanks for your patience with this issue.

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

  • Posts: 18
  • Thank you received: 5
  • Hikamarket Frontedition Hikashop Business
3 days 4 hours ago #371253

Just a follow up on our issue.

I removed the file media/com_hikashop/mail/order_notification.preload.modified.php

Now the request form does not have any errors when it is printed

However, we had added a customized line the the report that we will have to replace.

Order Confirmation of order No. B5C8G1 at on the 2026-03-30 at 11:36

So, our initial problem is solved and we thank you for the assistance.

The following user(s) said Thank You: nicolas

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

Time to create page: 0.081 seconds
Powered by Kunena Forum