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

#   Standard Joomla! error messages not displayed

##

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

Less More

- Posts: 29
- Thank you received: 2
-
-

3 years 8 months ago [\#350195](#350195) by [pjdevries](/forum/user/64503-pjdevries "View pjdevries's Profile")  *[Standard Joomla! error messages not displayed](/forum/27-checkout/906098-standard-joomla-error-messages-not-displayed#350195 "-- HikaShop version -- : HikaShop Business 4.7.1 &#91;2301201934&#93; -- Joomla version -- : 4.2.9 -- PHP version -- : 8.1.12 -- Browser(s) name and version -- : Mozilla Firefox for Ubuntu 111.0 (64-bit)  Hello,  I have a plugin that handles HikaShop onAfterOrderUpdate events. The logic in the event handler contains a try/catch block. In the catch block, the core Joomla! CMSApplication::enqueueMessage() method is used in an attempt to display texts from any exceptions in the regular Joomla! message area. However, when editing and saving an order in the HikaShop backend, exception messages are never displayed and there is no indication to the user that anything has gone wrong.  What needs to be done to display messages in the default Joomla! message area?  Kind regards, Pieter-Jan de Vries")* was created by *[pjdevries](/forum/user/64503-pjdevries "View pjdevries's Profile")*

-- HikaShop version -- : HikaShop Business 4.7.1 [2301201934]
-- Joomla version -- : 4.2.9
-- PHP version -- : 8.1.12
-- Browser(s) name and version -- : Mozilla Firefox for Ubuntu 111.0 (64-bit)

Hello,

I have a plugin that handles HikaShop onAfterOrderUpdate events. The logic in the event handler contains a try/catch block. In the catch block, the core Joomla! CMSApplication::enqueueMessage() method is used in an attempt to display texts from any exceptions in the regular Joomla! message area. However, when editing and saving an order in the HikaShop backend, exception messages are never displayed and there is no indication to the user that anything has gone wrong.

What needs to be done to display messages in the default Joomla! message area?

Kind regards,
Pieter-Jan de Vries

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNjA5OC1zdGFuZGFyZC1qb29tbGEtZXJyb3ItbWVzc2FnZXMtbm90LWRpc3BsYXllZD90bXBsPW1hcmtkb3du) 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: 14325
-
-

3 years 8 months ago [\#350205](#350205) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Standard Joomla! error messages not displayed](/forum/27-checkout/906098-standard-joomla-error-messages-not-displayed#350205 "-- HikaShop version -- : HikaShop Business 4.7.1 &#91;2301201934&#93; -- Joomla version -- : 4.2.9 -- PHP version -- : 8.1.12 -- Browser(s) name and version -- : Mozilla Firefox for Ubuntu 111.0 (64-bit)  Hello,  I have a plugin that handles HikaShop onAfterOrderUpdate events. The logic in the event handler contains a try/catch block. In the catch block, the core Joomla! CMSApplication::enqueueMessage() method is used in an attempt to display texts from any exceptions in the regular Joomla! message area. However, when editing and saving an order in the HikaShop backend, exception messages are never displayed and there is no indication to the user that anything has gone wrong.  What needs to be done to display messages in the default Joomla! message area?  Kind regards, Pieter-Jan de Vries")*

Hi,

In the backend, most saves of the order data is done in a popup, which closes itself after, or in an ajax request, without a full refresh of the page being needed.
However, the standard enqueueMessage mechanism requires a full display of the page to display the message.
Supposing the location where the saving occurs allow you to output HTML, you could call the function hikashop_display($msg, 'error'); to directly output the error message.
But that might not be possible. I would need more details on where you're saving the order exactly to be able to tell you what are your options.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNjA5OC1zdGFuZGFyZC1qb29tbGEtZXJyb3ItbWVzc2FnZXMtbm90LWRpc3BsYXllZD90bXBsPW1hcmtkb3du) 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.054 seconds

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