- Posts: 16
- Thank you received: 0
Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmi
1 year 7 months ago #365634
by terrylove
Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmi was created by terrylove
-- HikaShop version -- : 5.1.3
-- Joomla version -- : 5.2.3
-- PHP version -- : 8.3.16
-- Browser(s) name and version -- : Firefox 134.0.1
-- Error-message(debug-mod must be tuned on) -- : www.praxiseducation.com/administrator/in...=order&task=edit&cid []=250&cancel_redirect=L2FkbWluaXN0cmF0b3IvaW5kZXgucGhwP29wdGlvbj1jb21faGlrYXNob3AmYW1wO2N0cmw9b3JkZXI%3D
Get message
Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin() when change order status to 'shipped' and notify purchaser.
Error only appears when notify purchaser not on change of order status.
-- Joomla version -- : 5.2.3
-- PHP version -- : 8.3.16
-- Browser(s) name and version -- : Firefox 134.0.1
-- Error-message(debug-mod must be tuned on) -- : www.praxiseducation.com/administrator/in...=order&task=edit&cid []=250&cancel_redirect=L2FkbWluaXN0cmF0b3IvaW5kZXgucGhwP29wdGlvbj1jb21faGlrYXNob3AmYW1wO2N0cmw9b3JkZXI%3D
Get message
Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin() when change order status to 'shipped' and notify purchaser.
Error only appears when notify purchaser not on change of order status.
Please Log in or Create an account to join the conversation.
1 year 7 months ago #365637
by nicolas
Replied by nicolas on topic Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmi
Hi,
This error probably comes from an old version of a plugin which hasn't been updated on your website.
Please turn on the "debug" setting of the Joomla configuration and reproduce the error.
You should get a more complete error message which will point at the location of the problem.
This error probably comes from an old version of a plugin which hasn't been updated on your website.
Please turn on the "debug" setting of the Joomla configuration and reproduce the error.
You should get a more complete error message which will point at the location of the problem.
Please Log in or Create an account to join the conversation.
1 year 7 months ago #365646
by terrylove
Replied by terrylove on topic Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmi
Hi Nicolas, I included the whole of the Joomla debug with my initial message. Did it not come through to you?
Please Log in or Create an account to join the conversation.
1 year 7 months ago #365647
by nicolas
Replied by nicolas on topic Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmi
Hi,
The text "Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin()" is not the whole error message.
It's just the abbreviated message Joomla provides when the "debug" setting of the Joomla configuration is turned off.
Normally, when such an error happens, Joomla provides a more complete message, along with a call stack. Something like this:
i.postimg.cc/RF9yCBM7/2022-08-10-16-52-2...-mx-c486a83ccae4.jpg
Or like this:
www.bild-des-grauens.de/yootheme/_2023/_...error-call-stack.jpg
We need the complete error message because the abbreviated error message you provided doesn't give any indication on where the problem is.
If you're unsure on how to get the full error message, please provide a super admin backend access via our contact form and we can look into it:
www.hikashop.com/support/contact-us.html
The text "Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin()" is not the whole error message.
It's just the abbreviated message Joomla provides when the "debug" setting of the Joomla configuration is turned off.
Normally, when such an error happens, Joomla provides a more complete message, along with a call stack. Something like this:
i.postimg.cc/RF9yCBM7/2022-08-10-16-52-2...-mx-c486a83ccae4.jpg
Or like this:
www.bild-des-grauens.de/yootheme/_2023/_...error-call-stack.jpg
We need the complete error message because the abbreviated error message you provided doesn't give any indication on where the problem is.
If you're unsure on how to get the full error message, please provide a super admin backend access via our contact form and we can look into it:
www.hikashop.com/support/contact-us.html
Please Log in or Create an account to join the conversation.
1 year 7 months ago #365655
by terrylove
Replied by terrylove on topic Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmi
Hi Nicolas, I'd also included the full error message from Joomla in that initial post. Maybe it is getting stripped out because it was a table straight from Joomla? Here it is again, this time as text. Best, Terry
--
An error has occurred.
0 Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin()
Call Stack
# Function Location
1 () JROOT/media/com_hikashop/mail/order_status_notification.preload.modified.php:62
2 include() JROOT/administrator/components/com_hikashop/classes/mail.php:362
3 hikashopMailClass->loadEmail() JROOT/administrator/components/com_hikashop/classes/mail.php:31
4 hikashopMailClass->get() JROOT/administrator/components/com_hikashop/classes/order.php:2089
5 hikashopOrderClass->loadOrderNotification() JROOT/administrator/components/com_hikashop/classes/order.php:496
6 hikashopOrderClass->save() JROOT/administrator/components/com_hikashop/classes/order.php:1326
7 hikashopOrderClass->saveForm() JROOT/administrator/components/com_hikashop/controllers/order.php:619
8 OrderController->save() JROOT/libraries/src/MVC/Controller/BaseController.php:730
9 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2578
10 hikashopController->execute() JROOT/administrator/components/com_hikashop/hikashop.php:73
11 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
12 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
13 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:150
15 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:205
16 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:306
17 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:58
18 require_once() JROOT/administrator/index.php:32
--end
--
An error has occurred.
0 Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmin()
Call Stack
# Function Location
1 () JROOT/media/com_hikashop/mail/order_status_notification.preload.modified.php:62
2 include() JROOT/administrator/components/com_hikashop/classes/mail.php:362
3 hikashopMailClass->loadEmail() JROOT/administrator/components/com_hikashop/classes/mail.php:31
4 hikashopMailClass->get() JROOT/administrator/components/com_hikashop/classes/order.php:2089
5 hikashopOrderClass->loadOrderNotification() JROOT/administrator/components/com_hikashop/classes/order.php:496
6 hikashopOrderClass->save() JROOT/administrator/components/com_hikashop/classes/order.php:1326
7 hikashopOrderClass->saveForm() JROOT/administrator/components/com_hikashop/controllers/order.php:619
8 OrderController->save() JROOT/libraries/src/MVC/Controller/BaseController.php:730
9 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2578
10 hikashopController->execute() JROOT/administrator/components/com_hikashop/hikashop.php:73
11 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
12 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
13 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:150
15 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:205
16 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:306
17 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:58
18 require_once() JROOT/administrator/index.php:32
--end
Please Log in or Create an account to join the conversation.
1 year 7 months ago #365659
by nicolas
Replied by nicolas on topic Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmi
Hi,
Not sure what happened but the call stack was / is missing from your first message on my end.
Anyways, thanks, that's exactly what we need.
The callstack indicates that the issue comes from the file /media/com_hikashop/mail/order_status_notification.preload.modified.php
This file is an override of the preload section of the "order status notification" email. It is generated by HikaShop when you apply modifications to the preload of the email via the menu System>Emails. That way, when you update HikaShop, your modifications are not lost. The drawback is that you don't get the modifications we apply to the preload, like a modification to make the preload compatible with Joomla 5 which you must be missing.
So, I would recommend renaming that file via FTP, in order to deactivate that override.
Then, you can reapply your modifications to the preload of the email.
Not sure what happened but the call stack was / is missing from your first message on my end.
Anyways, thanks, that's exactly what we need.
The callstack indicates that the issue comes from the file /media/com_hikashop/mail/order_status_notification.preload.modified.php
This file is an override of the preload section of the "order status notification" email. It is generated by HikaShop when you apply modifications to the preload of the email via the menu System>Emails. That way, when you update HikaShop, your modifications are not lost. The drawback is that you don't get the modifications we apply to the preload, like a modification to make the preload compatible with Joomla 5 which you must be missing.
So, I would recommend renaming that file via FTP, in order to deactivate that override.
Then, you can reapply your modifications to the preload of the email.
Please Log in or Create an account to join the conversation.
1 year 7 months ago #365662
by terrylove
Replied by terrylove on topic Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmi
Hello,
Many thanks for your prompt reply. Renamed the file and on test I get no email notifications to purchaser.
Also I'm a little puzzled. As far as I know there are no modifications to the preload of the email from this end. Everything is as much as possible plain vanilla Joomla. The site only has Akeeba Backup and Admin tools, Hikashop and AcyMailing as extras - all are up to date.
Many thanks for your prompt reply. Renamed the file and on test I get no email notifications to purchaser.
Also I'm a little puzzled. As far as I know there are no modifications to the preload of the email from this end. Everything is as much as possible plain vanilla Joomla. The site only has Akeeba Backup and Admin tools, Hikashop and AcyMailing as extras - all are up to date.
Please Log in or Create an account to join the conversation.
1 year 7 months ago #365663
by terrylove
Replied by terrylove on topic Call to undefined method Joomla\CMS\Application\AdministratorApplication::isAdmi
Please ignore last message. Test email notification came through. Thank you for your support.
Please Log in or Create an account to join the conversation.
Time to create page: 0.272 seconds