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

#   Error in order Email notify

##

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

Less More

- Posts: 432
- Thank you received: 22
-

2 years 11 months ago [\#357358](#357358) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  *[Error in order Email notify](/forum/35-orders-management/907414-error-in-order-email-notify#357358 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1  When try to send email to customer in order view (via email button) an error apears An error has occurred. 0 4 arguments are required, 3 given  I have tryed this   www.hikashop.com/forum/orders-management...tem-was-shipped.html  but found no modified files.")* was created by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")*

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 4.4.1
-- PHP version -- : 8.1

When try to send email to customer in order view (via email button) an error apears
An error has occurred.
0 4 arguments are required, 3 given
[ ![hika-order-mail.jpg](/forum/attachment/58379) ](/forum/attachment/58379 "...order-mail.jpg")

I have tryed this [ www.hikashop.com/forum/orders-management...tem-was-shipped.html](https://www.hikashop.com/forum/orders-management/907248-error-when-i-try-to-notify-customer-that-item-was-shipped.html) but found no modified files.

- [ ![hika-order-mail.jpg](/forum/attachment/58379) ](/forum/attachment/58379 "...order-mail.jpg") [ ](/forum/attachment/58379?download=1 "...order-mail.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50LzkwNzQxNC1lcnJvci1pbi1vcmRlci1lbWFpbC1ub3RpZnk/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: 86555
- Thank you received: 14304
-
-

2 years 11 months ago [\#357368](#357368) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error in order Email notify](/forum/35-orders-management/907414-error-in-order-email-notify#357368 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1  When try to send email to customer in order view (via email button) an error apears An error has occurred. 0 4 arguments are required, 3 given  I have tryed this   www.hikashop.com/forum/orders-management...tem-was-shipped.html  but found no modified files.")*

Hi,

It's hard to say where the problem is and what to do with the abbreviated error message.
Please activate the "debug" setting of the joomla configuration page and try again.
You'll get a more complete error message which will allow us to understand what's going on so that we can tell you what to do.

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

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

Less More

- Posts: 432
- Thank you received: 22
-

2 years 11 months ago [\#357409](#357409) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Error in order Email notify](/forum/35-orders-management/907414-error-in-order-email-notify#357409 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1  When try to send email to customer in order view (via email button) an error apears An error has occurred. 0 4 arguments are required, 3 given  I have tryed this   www.hikashop.com/forum/orders-management...tem-was-shipped.html  but found no modified files.")*

This is what I get:
Call stack
\# Function Location
1 () JROOT/libraries/src/Language/Text.php:281
2 sprintf() JROOT/libraries/src/Language/Text.php:281
3 Joomla\CMS\Language\Text::sprintf() JROOT/administrator/components/com_hikashop/classes/order.php:2023
4 hikashopOrderClass-&gt;loadMailNotif() JROOT/administrator/components/com_hikashop/classes/order.php:1991
5 hikashopOrderClass-&gt;loadMail() JROOT/administrator/components/com_hikashop/views/order/view.html.php:637
6 OrderViewOrder-&gt;mail() JROOT/administrator/components/com_hikashop/views/order/view.html.php:28
7 OrderViewOrder-&gt;display() JROOT/libraries/src/MVC/Controller/BaseController.php:660
8 Joomla\CMS\MVC\Controller\BaseController-&gt;display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2576
9 hikashopController-&gt;display() JROOT/administrator/components/com_hikashop/controllers/order.php:367
10 OrderController-&gt;mail() JROOT/libraries/src/MVC/Controller/BaseController.php:693
11 Joomla\CMS\MVC\Controller\BaseController-&gt;execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2554
12 hikashopController-&gt;execute() JROOT/administrator/components/com_hikashop/hikashop.php:73
13 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
14 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
15 Joomla\CMS\Dispatcher\LegacyComponentDispatcher-&gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
16 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
17 Joomla\CMS\Application\AdministratorApplication-&gt;dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
18 Joomla\CMS\Application\AdministratorApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
19 Joomla\CMS\Application\CMSApplication-&gt;execute() JROOT/administrator/includes/app.php:61
20 require_once() JROOT/administrator/index.php:32

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50LzkwNzQxNC1lcnJvci1pbi1vcmRlci1lbWFpbC1ub3RpZnk/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: 86555
- Thank you received: 14304
-
-

2 years 11 months ago [\#357411](#357411) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error in order Email notify](/forum/35-orders-management/907414-error-in-order-email-notify#357411 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1  When try to send email to customer in order view (via email button) an error apears An error has occurred. 0 4 arguments are required, 3 given  I have tryed this   www.hikashop.com/forum/orders-management...tem-was-shipped.html  but found no modified files.")*

Hi,

The error stack indicates that the error happens because of a wrong translation key.
The error message points at a translation key used on line 2023 of the file /administrator/components/com_hikashop/classes/order.php
That's where the subject of the email is translated by HikaShop.
So basically, you probably have a custom translation for the subject of the email being sent and this translation key doesn't have the correct number of variables in it (one too much)
So I would recommend checking your translation overrides under the Languages tab of the HikaShop configuration page.

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

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

Less More

- Posts: 432
- Thank you received: 22
-

2 years 11 months ago [\#357489](#357489) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Error in order Email notify](/forum/35-orders-management/907414-error-in-order-email-notify#357489 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1  When try to send email to customer in order view (via email button) an error apears An error has occurred. 0 4 arguments are required, 3 given  I have tryed this   www.hikashop.com/forum/orders-management...tem-was-shipped.html  but found no modified files.")*

I have 2 overrides for subject. Deleted it and error is still there.
Where else to look?
Is it posible that original language file (slovenian) is the problem?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL29yZGVycy1tYW5hZ2VtZW50LzkwNzQxNC1lcnJvci1pbi1vcmRlci1lbWFpbC1ub3RpZnk/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: 86555
- Thank you received: 14304
-
-

2 years 11 months ago [\#357498](#357498) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error in order Email notify](/forum/35-orders-management/907414-error-in-order-email-notify#357498 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1  When try to send email to customer in order view (via email button) an error apears An error has occurred. 0 4 arguments are required, 3 given  I have tryed this   www.hikashop.com/forum/orders-management...tem-was-shipped.html  but found no modified files.")*

Hi,

It indeed seems to be the case.
When I search for ORDER_NOTIFICATION_SUBJECT I can see this line for the Slovenian: Code:

ORDER_NOTIFICATION_SUBJECT="Naročilo št. %s je %s - %s"

But if I check the same translation key for other languages, I see this: Code:

ORDER_NOTIFICATION_SUBJECT="Your order No. %s at %s"

So there indeed is an extra parameter in Slovenian which shouldn't be there. Remove it and it should help.
We'll also change it on our end.
I think it was a bad copy/paste from one of the other order email subjects by the person who made that translation.

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

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

Less More

- Posts: 432
- Thank you received: 22
-

2 years 11 months ago [\#357577](#357577) by [mojweb](/forum/user/5128-mojweb "View mojweb's Profile")  Replied by *[mojweb](/forum/user/5128-mojweb "View mojweb's Profile")* on topic *[Error in order Email notify](/forum/35-orders-management/907414-error-in-order-email-notify#357577 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4.4.1 -- PHP version -- : 8.1  When try to send email to customer in order view (via email button) an error apears An error has occurred. 0 4 arguments are required, 3 given  I have tryed this   www.hikashop.com/forum/orders-management...tem-was-shipped.html  but found no modified files.")*

Thank you. Solved.

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

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