[Skip to main content](#vessel-content)

#   Joomla 4: 0 Call to undefined method on End of Checkout

##

- **[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")**
- [![MSTACE's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7448-mstace "View MSTACE's Profile") Topic Author
- [ Offline](/forum/user/7448-mstace)

Less More

- Posts: 301
- Thank you received: 11
-
-

4 years 3 months ago -  4 years 3 months ago [\#343747](#343747) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  *[Joomla 4: 0 Call to undefined method on End of Checkout](/forum/27-checkout/904819-joomla-4-0-call-to-undefined-method-on-end-of-checkout#343747 "-- url of the page with the problem -- : -- HikaShop version -- : 4.6.1 -- Joomla version -- : ‎4.1.5 -- PHP version -- : 7.4.30 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : 0 Call to undefined method Joomla&#92;CMS&#92;Application&#92;SiteApplication::isAdmin()  At the final step of checkout, on pressing submit, it throws the following error: 0 Call to undefined method Joomla&#92;CMS&#92;Application&#92;SiteApplication::isAdmin()  No order is created.  For testing, you can use this coupon for 99% discount: SYSTEM-TEST-2  I have sent you login details.  Here is the debug grid:  0 Call to undefined method Joomla&#92;CMS&#92;Application&#92;SiteApplication::isAdmin() Call stack # Function Location 1 () JROOT/media/com&#95;hikashop/mail/order&#95;creation&#95;notification.preload.modified.php:62 2 include() JROOT/administrator/components/com&#95;hikashop/classes/mail.php:362 3 hikashopMailClass-&gt;loadEmail() JROOT/administrator/components/com&#95;hikashop/classes/mail.php:31 4 hikashopMailClass-&gt;get() JROOT/administrator/components/com&#95;hikashop/classes/order.php:1997 5 hikashopOrderClass-&gt;loadOrderNotification() JROOT/administrator/components/com&#95;hikashop/classes/order.php:441 6 hikashopOrderClass-&gt;save() JROOT/administrator/components/com&#95;hikashop/classes/order.php:906 7 hikashopOrderClass-&gt;createFromCart() JROOT/components/com&#95;hikashop/controllers/checkout.php:671 8 checkoutController-&gt;confirm() JROOT/libraries/src/MVC/Controller/BaseController.php:735 9 Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;execute() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2382 10 hikashopController-&gt;execute() JROOT/components/com&#95;hikashop/hikashop.php:88 11 require&#95;once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69 12 Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher::Joomla&#92;CMS&#92;Dispatcher&#92;{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71 13 Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher-&gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389 14 Joomla&#92;CMS&#92;Component&#92;ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:204 15 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;dispatch() JROOT/libraries/src/Application/SiteApplication.php:243 16 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:278 17 Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() JROOT/includes/app.php:63 18 require&#95;once() JROOT/index.php:32")* was created by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")*

-- url of the page with the problem -- :
-- HikaShop version -- : 4.6.1
-- Joomla version -- : ‎4.1.5
-- PHP version -- : 7.4.30
-- Browser(s) name and version -- : Any
-- Error-message(debug-mod must be tuned on) -- : 0 Call to undefined method Joomla\CMS\Application\SiteApplication::isAdmin()

At the final step of checkout, on pressing submit, it throws the following error:
**0 Call to undefined method Joomla\\CMS\\Application\\SiteApplication::isAdmin()**

No order is created.

For testing, you can use this coupon for 99% discount: SYSTEM-TEST-2

I have sent you login details.

Here is the debug grid:

0 Call to undefined method Joomla\CMS\Application\SiteApplication::isAdmin()
Call stack
\# Function Location
1 () JROOT/media/com_hikashop/mail/order_creation_notification.preload.modified.php:62
2 include() JROOT/administrator/components/com_hikashop/classes/mail.php:362
3 hikashopMailClass-&gt;loadEmail() JROOT/administrator/components/com_hikashop/classes/mail.php:31
4 hikashopMailClass-&gt;get() JROOT/administrator/components/com_hikashop/classes/order.php:1997
5 hikashopOrderClass-&gt;loadOrderNotification() JROOT/administrator/components/com_hikashop/classes/order.php:441
6 hikashopOrderClass-&gt;save() JROOT/administrator/components/com_hikashop/classes/order.php:906
7 hikashopOrderClass-&gt;createFromCart() JROOT/components/com_hikashop/controllers/checkout.php:671
8 checkoutController-&gt;confirm() JROOT/libraries/src/MVC/Controller/BaseController.php:735
9 Joomla\CMS\MVC\Controller\BaseController-&gt;execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2382
10 hikashopController-&gt;execute() JROOT/components/com_hikashop/hikashop.php:88
11 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
12 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
13 Joomla\CMS\Dispatcher\LegacyComponentDispatcher-&gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:204
15 Joomla\CMS\Application\SiteApplication-&gt;dispatch() JROOT/libraries/src/Application/SiteApplication.php:243
16 Joomla\CMS\Application\SiteApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
17 Joomla\CMS\Application\CMSApplication-&gt;execute() JROOT/includes/app.php:63
18 require_once() JROOT/index.php:32

Last edit: 4 years 3 months ago by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDgxOS1qb29tbGEtNC0wLWNhbGwtdG8tdW5kZWZpbmVkLW1ldGhvZC1vbi1lbmQtb2YtY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14327
-
-

4 years 3 months ago [\#343756](#343756) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Joomla 4: 0 Call to undefined method on End of Checkout](/forum/27-checkout/904819-joomla-4-0-call-to-undefined-method-on-end-of-checkout#343756 "-- url of the page with the problem -- : -- HikaShop version -- : 4.6.1 -- Joomla version -- : ‎4.1.5 -- PHP version -- : 7.4.30 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : 0 Call to undefined method Joomla&#92;CMS&#92;Application&#92;SiteApplication::isAdmin()  At the final step of checkout, on pressing submit, it throws the following error: 0 Call to undefined method Joomla&#92;CMS&#92;Application&#92;SiteApplication::isAdmin()  No order is created.  For testing, you can use this coupon for 99% discount: SYSTEM-TEST-2  I have sent you login details.  Here is the debug grid:  0 Call to undefined method Joomla&#92;CMS&#92;Application&#92;SiteApplication::isAdmin() Call stack # Function Location 1 () JROOT/media/com&#95;hikashop/mail/order&#95;creation&#95;notification.preload.modified.php:62 2 include() JROOT/administrator/components/com&#95;hikashop/classes/mail.php:362 3 hikashopMailClass-&gt;loadEmail() JROOT/administrator/components/com&#95;hikashop/classes/mail.php:31 4 hikashopMailClass-&gt;get() JROOT/administrator/components/com&#95;hikashop/classes/order.php:1997 5 hikashopOrderClass-&gt;loadOrderNotification() JROOT/administrator/components/com&#95;hikashop/classes/order.php:441 6 hikashopOrderClass-&gt;save() JROOT/administrator/components/com&#95;hikashop/classes/order.php:906 7 hikashopOrderClass-&gt;createFromCart() JROOT/components/com&#95;hikashop/controllers/checkout.php:671 8 checkoutController-&gt;confirm() JROOT/libraries/src/MVC/Controller/BaseController.php:735 9 Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;execute() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2382 10 hikashopController-&gt;execute() JROOT/components/com&#95;hikashop/hikashop.php:88 11 require&#95;once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69 12 Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher::Joomla&#92;CMS&#92;Dispatcher&#92;{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71 13 Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher-&gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389 14 Joomla&#92;CMS&#92;Component&#92;ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:204 15 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;dispatch() JROOT/libraries/src/Application/SiteApplication.php:243 16 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:278 17 Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() JROOT/includes/app.php:63 18 require&#95;once() JROOT/index.php:32")*

Hi,

This indicates that you have an old override of the "preload" of the "order creation notification" email.
This old override has some code on line 62 which isn't compatible with Joomla 4 and that's why it breaks.
You can rename the file /media/com_hikashop/mail/order_creation_notification.preload.modified.php via FTP to deactivate the override so that it uses the latest version's default preload. It will remove the error.
And if necessary, you can recustomize it via the interface in the backend.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDgxOS1qb29tbGEtNC0wLWNhbGwtdG8tdW5kZWZpbmVkLW1ldGhvZC1vbi1lbmQtb2YtY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")**
- [![MSTACE's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7448-mstace "View MSTACE's Profile") Topic Author
- [ Offline](/forum/user/7448-mstace)

Less More

- Posts: 301
- Thank you received: 11
-
-

4 years 3 months ago [\#343759](#343759) by [MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")  Replied by *[MSTACE](/forum/user/7448-mstace "View MSTACE's Profile")* on topic *[Joomla 4: 0 Call to undefined method on End of Checkout](/forum/27-checkout/904819-joomla-4-0-call-to-undefined-method-on-end-of-checkout#343759 "-- url of the page with the problem -- : -- HikaShop version -- : 4.6.1 -- Joomla version -- : ‎4.1.5 -- PHP version -- : 7.4.30 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : 0 Call to undefined method Joomla&#92;CMS&#92;Application&#92;SiteApplication::isAdmin()  At the final step of checkout, on pressing submit, it throws the following error: 0 Call to undefined method Joomla&#92;CMS&#92;Application&#92;SiteApplication::isAdmin()  No order is created.  For testing, you can use this coupon for 99% discount: SYSTEM-TEST-2  I have sent you login details.  Here is the debug grid:  0 Call to undefined method Joomla&#92;CMS&#92;Application&#92;SiteApplication::isAdmin() Call stack # Function Location 1 () JROOT/media/com&#95;hikashop/mail/order&#95;creation&#95;notification.preload.modified.php:62 2 include() JROOT/administrator/components/com&#95;hikashop/classes/mail.php:362 3 hikashopMailClass-&gt;loadEmail() JROOT/administrator/components/com&#95;hikashop/classes/mail.php:31 4 hikashopMailClass-&gt;get() JROOT/administrator/components/com&#95;hikashop/classes/order.php:1997 5 hikashopOrderClass-&gt;loadOrderNotification() JROOT/administrator/components/com&#95;hikashop/classes/order.php:441 6 hikashopOrderClass-&gt;save() JROOT/administrator/components/com&#95;hikashop/classes/order.php:906 7 hikashopOrderClass-&gt;createFromCart() JROOT/components/com&#95;hikashop/controllers/checkout.php:671 8 checkoutController-&gt;confirm() JROOT/libraries/src/MVC/Controller/BaseController.php:735 9 Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;execute() JROOT/administrator/components/com&#95;hikashop/helpers/helper.php:2382 10 hikashopController-&gt;execute() JROOT/components/com&#95;hikashop/hikashop.php:88 11 require&#95;once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69 12 Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher::Joomla&#92;CMS&#92;Dispatcher&#92;{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71 13 Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher-&gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389 14 Joomla&#92;CMS&#92;Component&#92;ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:204 15 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;dispatch() JROOT/libraries/src/Application/SiteApplication.php:243 16 Joomla&#92;CMS&#92;Application&#92;SiteApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:278 17 Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() JROOT/includes/app.php:63 18 require&#95;once() JROOT/index.php:32")*

That makes sense. This website is one of the oldest HikaShop installs I have.

Renaming the file did not stop the error.

I ended up deleting all of the customization for the emails.
That is working now.

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDgxOS1qb29tbGEtNC0wLWNhbGwtdG8tdW5kZWZpbmVkLW1ldGhvZC1vbi1lbmQtb2YtY2hlY2tvdXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.082 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
