Hi Jan,
I have migrated a site from J.3 to J.4.2. It had Phoca Gallery installed (version 4.4.3). The migration went fine. I then went on to install Phoca Gallery 4.5.3. First through uploading and installing the package. That went fine as well. But when I moved to Component -> Phoca Gallery -> Styles and clicked a style, I got the error "3 arguments are required, 2 given".
I figured: maybe the install method I used was not good. So I started over and followed all the steps you describe here: https://www.phoca.cz/documents/50-jooml ... o-joomla-4 -> same result.
I then checked what happens when I create a new style -> same result.
I tried uninstalling Phoca Gallery and doing a fresh install -> same result.
I installed Phoca Gallery on another website and there it all works fine.
Could you help me fix this?
Thanks!
Anja
Error "3 arguments are required, 2 given" upon editing / creating Phoca Gallery style
-
- Phoca Newbie
- Posts: 4
- Joined: 20 Apr 2023, 15:22
-
- Phoca Newbie
- Posts: 4
- Joined: 20 Apr 2023, 15:22
Re: Error "3 arguments are required, 2 given" upon editing / creating Phoca Gallery style
Extra info: the error only occurs with PHP 8. With 7.4 everything works fine.
- Jan
- Phoca Hero
- Posts: 48689
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error "3 arguments are required, 2 given" upon editing / creating Phoca Gallery style
Hi, can you enable debug mode and paste here whole error message including the file and the line where this occurs (including the trace)?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 20 Apr 2023, 15:22
Re: Error "3 arguments are required, 2 given" upon editing / creating Phoca Gallery style
This is the Phocagallery style, link to the file goes to administrator/index.php?option=com_phocagallery&task=phocagalleryef.edit&id=1
It happens in all the style files.
Er heeft zich een fout voorgedaan.
0 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->render() JROOT/libraries/src/Layout/LayoutHelper.php:76
6 Joomla\CMS\Layout\LayoutHelper::render() JROOT/plugins/editors/codemirror/codemirror.php:268
7 PlgEditorCodemirror->onDisplay() JROOT/libraries/src/Editor/Editor.php:194
8 Joomla\CMS\Editor\Editor->display() JROOT/libraries/src/Form/Field/EditorField.php:251
9 Joomla\CMS\Form\Field\EditorField->getInput() JROOT/libraries/src/Form/FormField.php:471
10 Joomla\CMS\Form\FormField->__get() JROOT/libraries/src/Form/Field/TextareaField.php:94
11 Joomla\CMS\Form\Field\TextareaField->__get() JROOT/libraries/src/Form/Field/EditorField.php:138
12 Joomla\CMS\Form\Field\EditorField->__get() JROOT/libraries/src/Form/Form.php:458
13 Joomla\CMS\Form\Form->getInput() JROOT/administrator/components/com_phocagallery/views/phocagalleryef/tmpl/edit.php:71
14 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
15 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
16 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_phocagallery/views/phocagalleryef/view.html.php:78
17 PhocaGalleryCpViewPhocaGalleryEf->display() JROOT/libraries/src/MVC/Controller/BaseController.php:639
18 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_phocagallery/controller.php:64
19 PhocaGalleryCpController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:672
20 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_phocagallery/phocagallery.php:50
21 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
22 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
23 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
24 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
25 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
26 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
27 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
28 require_once() JROOT/administrator/index.php:32
It happens in all the style files.
Er heeft zich een fout voorgedaan.
0 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->render() JROOT/libraries/src/Layout/LayoutHelper.php:76
6 Joomla\CMS\Layout\LayoutHelper::render() JROOT/plugins/editors/codemirror/codemirror.php:268
7 PlgEditorCodemirror->onDisplay() JROOT/libraries/src/Editor/Editor.php:194
8 Joomla\CMS\Editor\Editor->display() JROOT/libraries/src/Form/Field/EditorField.php:251
9 Joomla\CMS\Form\Field\EditorField->getInput() JROOT/libraries/src/Form/FormField.php:471
10 Joomla\CMS\Form\FormField->__get() JROOT/libraries/src/Form/Field/TextareaField.php:94
11 Joomla\CMS\Form\Field\TextareaField->__get() JROOT/libraries/src/Form/Field/EditorField.php:138
12 Joomla\CMS\Form\Field\EditorField->__get() JROOT/libraries/src/Form/Form.php:458
13 Joomla\CMS\Form\Form->getInput() JROOT/administrator/components/com_phocagallery/views/phocagalleryef/tmpl/edit.php:71
14 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
15 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
16 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_phocagallery/views/phocagalleryef/view.html.php:78
17 PhocaGalleryCpViewPhocaGalleryEf->display() JROOT/libraries/src/MVC/Controller/BaseController.php:639
18 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_phocagallery/controller.php:64
19 PhocaGalleryCpController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:672
20 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_phocagallery/phocagallery.php:50
21 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
22 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
23 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
24 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
25 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
26 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
27 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
28 require_once() JROOT/administrator/index.php:32
-
- Phoca Hero
- Posts: 2886
- Joined: 28 Nov 2010, 17:20
Re: Error "3 arguments are required, 2 given" upon editing / creating Phoca Gallery style
Hi,
In some other cases the plugin: /editors/codemirror/had to be deactivated.
Check also, if you have installed the correct en-GB language.
Kind regards
Christine
In some other cases the plugin: /editors/codemirror/had to be deactivated.
Check also, if you have installed the correct en-GB language.
Kind regards
Christine
-
- Phoca Newbie
- Posts: 4
- Joined: 20 Apr 2023, 15:22
Re: Error "3 arguments are required, 2 given" upon editing / creating Phoca Gallery style
Deactivating codemirror did the trick. Thanks! This is solved :)
-
- Phoca Hero
- Posts: 2886
- Joined: 28 Nov 2010, 17:20
Re: Error "3 arguments are required, 2 given" upon editing / creating Phoca Gallery style
Hi Anja,
Bedankt voor je feedback.
Groetjes, Christine
Bedankt voor je feedback.
Groetjes, Christine