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

#   error at view edit with php 8

##

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

Less More

- Posts: 515
- Thank you received: 22
-
-

4 years 4 months ago [\#342137](#342137) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#342137 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")* was created by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")*

-- HikaShop version -- : 4.6.0
-- Joomla version -- : 4.1.4
-- PHP version -- : 8.0
-- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given

Hi,

When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.

When changing the php to version 7.4 the error doesn't occur.

- [ ![vieuw-edit&#95;2022-06-03.jpg](/forum/attachment/54937) ](/forum/attachment/54937 "...2022-06-03.jpg") [ ](/forum/attachment/54937?download=1 "...2022-06-03.jpg")
- [ ![vieuw-edit-error&#95;2022-06-03.jpg](/forum/attachment/54938) ](/forum/attachment/54938 "...2022-06-03.jpg") [ ](/forum/attachment/54938?download=1 "...2022-06-03.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vOTA0NTExLWVycm9yLWF0LXZpZXctZWRpdC13aXRoLXBocC04P3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

4 years 4 months ago [\#342141](#342141) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#342141 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")*

Hi,

It was great that you provided the callstack PDF. However, half of the callstack display is missing from the PDF. Normally, it should have the file path and line number for each row of the list.
Could you provide the full callstack of the error ?

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

4 years 4 months ago [\#342143](#342143) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#342143 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")*

Hi Nicolas,

Here's the callstack once more:

Call stack
\# Function Location
1 () JROOT/libraries/src/Language/Text.php:302
2 sprintf() JROOT/libraries/src/Language/Text.php:302
3 Joomla\CMS\Language\Text::sprintf() JROOT/plugins/editors/codemirror/layouts/editors/codemirror/element.php:60
4 include() JROOT/libraries/src/Layout/FileLayout.php:128
5 Joomla\CMS\Layout\FileLayout-&gt;render() JROOT/libraries/src/Layout/LayoutHelper.php:73
6 Joomla\CMS\Layout\LayoutHelper::render() JROOT/plugins/editors/codemirror/codemirror.php:268
7 PlgEditorCodemirror-&gt;onDisplay() JROOT/libraries/src/Editor/Editor.php:198
8 Joomla\CMS\Editor\Editor-&gt;display() JROOT/administrator/components/com_hikashop/helpers/editor.php:135
9 hikashopEditorHelper-&gt;displayCode() JROOT/administrator/components/com_hikashop/views/view/tmpl/form.php:97
10 include() JROOT/libraries/src/MVC/View/HtmlView.php:436
11 Joomla\CMS\MVC\View\HtmlView-&gt;loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2722
12 hikashopView-&gt;loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:220
13 Joomla\CMS\MVC\View\HtmlView-&gt;display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2677
14 hikashopView-&gt;display() JROOT/administrator/components/com_hikashop/views/view/view.html.php:23
15 ViewViewView-&gt;display() JROOT/libraries/src/MVC/Controller/BaseController.php:697
16 Joomla\CMS\MVC\Controller\BaseController-&gt;display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2400
17 hikashopController-&gt;display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2126
18 hikashopController-&gt;edit() JROOT/libraries/src/MVC/Controller/BaseController.php:735
19 Joomla\CMS\MVC\Controller\BaseController-&gt;execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2378
20 hikashopController-&gt;execute() JROOT/administrator/components/com_hikashop/hikashop.php:73
21 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
22 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
23 Joomla\CMS\Dispatcher\LegacyComponentDispatcher-&gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
24 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
25 Joomla\CMS\Application\AdministratorApplication-&gt;dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
26 Joomla\CMS\Application\AdministratorApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
27 Joomla\CMS\Application\CMSApplication-&gt;execute() JROOT/administrator/includes/app.php:63
28 require_once() JROOT/administrator/index.php:32

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vOTA0NTExLWVycm9yLWF0LXZpZXctZWRpdC13aXRoLXBocC04P3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

4 years 4 months ago [\#342146](#342146) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#342146 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")*

Hi,

It seems to be a bug from Joomla 4.1.1 with the codemirror plugin:
[ forum.joomla.org/viewtopic.php?f=823&amp;t=993766](https://forum.joomla.org/viewtopic.php?f=823&t=993766)
The issue is linked to the code: Code:

&lt;?php echo Text::sprintf('PLG_CODEMIRROR_TOGGLE_FULL_SCREEN', $fullScreenCombo); ?&gt;

in the file plugins/editors/codemirror/layouts/editors/codemirror/element.php
Removing that line should fix the problem.
However, it seems that the problem stems from the translation key PLG_CODEMIRROR_TOGGLE_FULL_SCREEN which is wrong in a translation file of your website.
Try while logged in in English and you should normally not have the problem, even without removing that line of code.
I checked the nl-NL translation file for that plugin from Joomla (in administrator/language/nl-NL/plg_editors_codemirror.ini), and the line is:
PLG_CODEMIRROR_TOGGLE_FULL_SCREEN="Druk op %s om 'Volledig scherm' bewerken te wisselen."
However, the error indicates that you have two %s in that translation instead of one.
So please check this.

The following user(s) said Thank You: [Larry3460](/forum/user/74805-larry3460 "View Larry3460's Profile")

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

- **[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")**
- [![Lumiga's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31479.png)](/forum/user/31479-lumiga "View Lumiga's Profile")
- [ Offline](/forum/user/31479-lumiga)

Less More

- Posts: 637
- Thank you received: 26
-
-
-

3 years 10 months ago -  3 years 10 months ago [\#347066](#347066) by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")  Replied by *[Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")* on topic *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#347066 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")*

Hi Nicolas,

I have a same issue with PHP 8.0.

Also error on the front-end:
0
3 arguments are required, 2 given

But deleting %1$s and %2$s from administrator/language/nl-NL/plg_editors_codemirror.ini doesn't fix the issue.

PLG_CODEMIRROR_TOGGLE_FULL_SCREEN="Druk op %1$s %2$s om te schakelen naar volledig scherm tekstverwerken."

See my Call Stack

Call stack
\# Function Location
1 () JROOT/libraries/src/Language/Text.php:321
2 sprintf()
3 call_user_func_array() JROOT/libraries/src/Language/Text.php:321
4 Joomla\CMS\Language\Text::sprintf() JROOT/media/com_hikashop/mail/order_admin_notification.text.php:16
5 require() JROOT/administrator/components/com_hikashop/classes/mail.php:367
6 hikashopMailClass-&gt;loadEmail() JROOT/administrator/components/com_hikashop/classes/mail.php:32
7 hikashopMailClass-&gt;get() JROOT/administrator/components/com_hikashop/classes/order.php:1997
8 hikashopOrderClass-&gt;loadOrderNotification() JROOT/administrator/components/com_hikashop/classes/order.php:460
9 hikashopOrderClass-&gt;save() JROOT/administrator/components/com_hikashop/classes/order.php:906
10 hikashopOrderClass-&gt;createFromCart() JROOT/components/com_hikashop/controllers/checkout.php:674
11 checkoutController-&gt;confirm() JROOT/libraries/src/MVC/Controller/BaseController.php:702
12 Joomla\CMS\MVC\Controller\BaseController-&gt;execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2408
13 hikashopController-&gt;execute() JROOT/components/com_hikashop/hikashop.php:88
14 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
15 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
16 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:194
17 Joomla\CMS\Application\SiteApplication-&gt;dispatch() JROOT/libraries/src/Application/SiteApplication.php:233
18 Joomla\CMS\Application\SiteApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:225
19 Joomla\CMS\Application\CMSApplication-&gt;execute() JROOT/index.php:49

---

Kind regards,
Lumiga

Last edit: 3 years 10 months ago by [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vOTA0NTExLWVycm9yLWF0LXZpZXctZWRpdC13aXRoLXBocC04P3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

3 years 10 months ago [\#347070](#347070) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#347070 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")*

Hi,

Per your callstack, the issue comes from the translation key used on line 16 of the "text" version of the "order admin notification" email.
On my end, I've got this line: Code:

echo "\r\n".str_replace('&lt;br/&gt;',"\r\n",JText::sprintf('ACCESS_ORDER_WITH_LINK',$url));

So, as you can see, there is one parameter for the translation which is $url.

However, if I check the nl-NL translation file of HikaShop, I can see this: Code:

ACCESS_ORDER_WITH_LINK="De besteldetails zijn rechtstreeks te bereiken door op de onderstaande link te klikken na het inloggen op de back-end:"

while in English, I see this: Code:

ACCESS_ORDER_WITH_LINK="You can access the order details directly by clicking on the link below after logging in your back end:&lt;br/&gt;&lt;a href='%1$s'&gt;%1$s&lt;/a&gt;"

So for some reason, it seems one person who provided translations for the nl-NL language removed the part Code:

&lt;br/&gt;&lt;a href='%1$s'&gt;%1$s&lt;/a&gt;

that's probably why you're getting that error.
I've updated the nl-NL language file. You can directly modify the language file on your end and it should fix the problem.

The following user(s) said Thank You: [Lumiga](/forum/user/31479-lumiga "View Lumiga's Profile")

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

- **[martin.petras](/forum/user/63209-martin-petras "View martin.petras's Profile")**
- [![martin.petras's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/63209-martin-petras "View martin.petras's Profile")
- [ Offline](/forum/user/63209-martin-petras)
- Martin

Less More

- Posts: 9
- Thank you received: 1
-
-
-

3 years 8 months ago [\#349103](#349103) by [martin.petras](/forum/user/63209-martin-petras "View martin.petras's Profile")  Replied by *[martin.petras](/forum/user/63209-martin-petras "View martin.petras's Profile")* on topic *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#349103 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")*

Hi

I have a very similar problem. Can you also help me?

[ ![HikaShop-Error&#95;Message.jpg](/forum/attachment/56467) ](/forum/attachment/56467 "...or&#95;Message.jpg")

- [ ![HikaShop-Email&#95;order&#95;creation&#95;notification&#95;2023-02-08.jpg](/forum/attachment/56468) ](/forum/attachment/56468 "...2023-02-08.jpg") [ ](/forum/attachment/56468?download=1 "...2023-02-08.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vOTA0NTExLWVycm9yLWF0LXZpZXctZWRpdC13aXRoLXBocC04P3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

3 years 8 months ago [\#349104](#349104) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#349104 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")*

Hi,

The error "You do not have permissions to access this page." indicates that you have a security mechanism which is prehentively blocking the request (I suppose you're trying to save modifications to a view or an email). It's either a security extension like RS Firewall, or something installed on the server.
The best would be to check with the support of that security extension, or your hosting (if it's something on the server) on how to authorize what you're trying to do while still keeping the security extension/software enabled.

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

- **[martin.petras](/forum/user/63209-martin-petras "View martin.petras's Profile")**
- [![martin.petras's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/63209-martin-petras "View martin.petras's Profile")
- [ Offline](/forum/user/63209-martin-petras)
- Martin

Less More

- Posts: 9
- Thank you received: 1
-
-
-

3 years 8 months ago -  3 years 8 months ago [\#349122](#349122) by [martin.petras](/forum/user/63209-martin-petras "View martin.petras's Profile")  Replied by *[martin.petras](/forum/user/63209-martin-petras "View martin.petras's Profile")* on topic *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#349122 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")*

Hi Nicolas,

Oh sorry, the phrase "You do not have permissions to access this page" was automatically inserted because I wasn't logged in :whistle: . For me, it's about the two attachments.

[ ![HikaShop-Email&#95;order&#95;creation&#95;notification&#95;2023-02-08-2.jpg](/forum/attachment/56474) ](/forum/attachment/56474 "...23-02-08-2.jpg")

[ ![HikaShop-Error&#95;Message&#95;2023-02-08.jpg](/forum/attachment/56475) ](/forum/attachment/56475 "...2023-02-08.jpg")

- [ ![HikaShop-Email&#95;order&#95;creation&#95;notification&#95;2023-02-08-2.jpg](/forum/attachment/56474) ](/forum/attachment/56474 "...23-02-08-2.jpg") [ ](/forum/attachment/56474?download=1 "...23-02-08-2.jpg")
- [ ![HikaShop-Error&#95;Message&#95;2023-02-08.jpg](/forum/attachment/56475) ](/forum/attachment/56475 "...2023-02-08.jpg") [ ](/forum/attachment/56475?download=1 "...2023-02-08.jpg")

Last edit: 3 years 8 months ago by [martin.petras](/forum/user/63209-martin-petras "View martin.petras's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vOTA0NTExLWVycm9yLWF0LXZpZXctZWRpdC13aXRoLXBocC04P3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

3 years 8 months ago [\#349124](#349124) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#349124 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")*

Hi,

That's better with the real error message ![:)](/media/kunena/emoticons/8.png ":)")
As you found out, it's pointing at the line 494 of the preload of an email. And as with the other reports on this thread, it points at an invalid translation for either the translation key PLEASE_TRANSFERT_MONEY or INCLUDE_ORDER_NUMBER_TO_TRANSFER which are used on that line.
The error "3 arguments are required, 2 given" basically means that there are two %s in the translation key but HikaShop's code only provide one variable.
I can also see that your website is in German.
So I checked the translation keys of the de-DE language file of HikaShop and found these: Code:

PLEASE_TRANSFERT_MONEY="Sie können mit Hilfe der folgenden Angaben, den Betrag von %s überweisen." INCLUDE_ORDER_NUMBER_TO_TRANSFER="Bitte vergessen Sie nicht, Ihre Bestellnummer ( %s ) bei Verwendungszweck der Überweisung anzugeben, um diese Ihrer Bestellung zuordnen zu können."

As you can see, for each translation key, there is only one %s in the default language file of HikaShop.
So this means that the problem is not on end, only on your website, and you must have a translation override for either translation key with two %s instead of one.
So please check your translation overrides under the Languages tab of the HikaShop configuration and look for these two translation keys.

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

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

Less More

- Posts: 2
- Thank you received: 1
-
-

3 years 6 months ago [\#350869](#350869) by [Larry3460](/forum/user/74805-larry3460 "View Larry3460's Profile")  Replied by *[Larry3460](/forum/user/74805-larry3460 "View Larry3460's Profile")* on topic *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#350869 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")*

Hi,

I'm facing the same issue too.
in my case it's when some registered user try to edit one article.
So I reproduce the call stack right here, as it comes :

> 3 arguments are required, 2 given
>
> Call stack
> \# Function Location
> 1 () JROOT/libraries/src/Language/Text.php:283
> 2 sprintf() JROOT/libraries/src/Language/Text.php:283
> 3 Joomla\\CMS\\Language\\Text::sprintf() JROOT/plugins/editors/codemirror/layouts/editors/codemirror/element.php:67
> 4 include() JROOT/libraries/src/Layout/FileLayout.php:128
> 5 Joomla\\CMS\\Layout\\FileLayout-&gt;render() JROOT/libraries/src/Layout/LayoutHelper.php:76
> 6 Joomla\\CMS\\Layout\\LayoutHelper::render() JROOT/plugins/editors/codemirror/codemirror.php:268
> 7 PlgEditorCodemirror-&gt;onDisplay() JROOT/libraries/src/Editor/Editor.php:194
> 8 Joomla\\CMS\\Editor\\Editor-&gt;display() JROOT/libraries/src/Form/Field/EditorField.php:251
> 9 Joomla\\CMS\\Form\\Field\\EditorField-&gt;getInput() JROOT/libraries/src/Form/FormField.php:1029
> 10 Joomla\\CMS\\Form\\FormField-&gt;renderField() JROOT/libraries/src/Form/Form.php:536
> 11 Joomla\\CMS\\Form\\Form-&gt;renderField() JROOT/components/com\_content/tmpl/form/edit.php:57
> 12 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
> 13 Joomla\\CMS\\MVC\\View\\HtmlView-&gt;loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
> 14 Joomla\\CMS\\MVC\\View\\HtmlView-&gt;display() JROOT/components/com\_content/src/View/Form/HtmlView.php:197
> 15 Joomla\\Component\\Content\\Site\\View\\Form\\HtmlView-&gt;display() JROOT/libraries/src/MVC/Controller/BaseController.php:639
> 16 Joomla\\CMS\\MVC\\Controller\\BaseController-&gt;display() JROOT/components/com\_content/src/Controller/DisplayController.php:121
> 17 Joomla\\Component\\Content\\Site\\Controller\\DisplayController-&gt;display() JROOT/libraries/src/MVC/Controller/BaseController.php:672
> 18 Joomla\\CMS\\MVC\\Controller\\BaseController-&gt;execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
> 19 Joomla\\CMS\\Dispatcher\\ComponentDispatcher-&gt;dispatch() JROOT/components/com\_content/src/Dispatcher/Dispatcher.php:56
> 20 Joomla\\Component\\Content\\Site\\Dispatcher\\Dispatcher-&gt;dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
> 21 Joomla\\CMS\\Component\\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
> 22 Joomla\\CMS\\Application\\SiteApplication-&gt;dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
> 23 Joomla\\CMS\\Application\\SiteApplication-&gt;doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
> 24 Joomla\\CMS\\Application\\CMSApplication-&gt;execute() JROOT/includes/app.php:61
> 25 require\_once() JROOT/index.php:32

I tried already to comment the line Code:

&lt;?php echo Text::sprintf('PLG_CODEMIRROR_TOGGLE_FULL_SCREEN', $fullScreenCombo); ?&gt;

without success.

One precision more : I'm using the French language pack fr-FR 3.10.11.1

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NvbnRlbnQtY3JlYXRpb24vOTA0NTExLWVycm9yLWF0LXZpZXctZWRpdC13aXRoLXBocC04P3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

3 years 6 months ago [\#350870](#350870) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#350870 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")*

Hi,

You have the same error as the person in the first message of this thread.
So my answer [ www.hikashop.com/forum/content-creation/...th-php-8.html#342146](https://www.hikashop.com/forum/content-creation/904511-error-at-view-edit-with-php-8.html#342146) is the correct one for you.
Instead of commenting the line, please remove it. And as I said, the error is in the translations of your website for PLG_CODEMIRROR_TOGGLE_FULL_SCREEN so you could search for that text in all the ini files of your website and you should find one with 2 %s instead of 1. Fixing the translation would also fix the error.

The following user(s) said Thank You: [Larry3460](/forum/user/74805-larry3460 "View Larry3460's Profile")

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

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

Less More

- Posts: 2
- Thank you received: 1
-
-

3 years 6 months ago [\#350884](#350884) by [Larry3460](/forum/user/74805-larry3460 "View Larry3460's Profile")  Replied by *[Larry3460](/forum/user/74805-larry3460 "View Larry3460's Profile")* on topic *[error at view edit with php 8](/forum/32-content-creation/904511-error-at-view-edit-with-php-8#350884 "-- HikaShop version -- : 4.6.0 -- Joomla version -- : 4.1.4 -- PHP version -- : 8.0 -- Error-message(debug-mod must be tuned on) -- : 3 arguments are required, 2 given  Hi,  When editing any view there's an error on my testsite in Joomla 4 with php 8.0: 3 arguments are required, 2 given. Seen screenshot and error pdf.  When changing the php to version 7.4 the error doesn't occur.")*

Hello,
I finally found the said text in : public_html/administrator/language/fr-FR/fr-FR.plg.editors.codemirror.ini
It was written : Code:

PLG_CODEMIRROR_TOGGLE_FULL_SCREEN="Appuyer sur %1$s %2$s pour activer/désactiver le mode d'édition plein écran. "

and I corrected it as : Code:

PLG_CODEMIRROR_TOGGLE_FULL_SCREEN="Appuyer sur %1$s pour activer/désactiver le mode d'édition plein écran. "

Now I've no more this error. Yous solved magisterially that issue.

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

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

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

[](#top)
