Page 1 of 2

PG Joomla 4 upgrade Unknown named parameter $params

Posted: 04 Mar 2022, 18:42
by thierrycv
Hi
After a joomla 4 upgrade it's not possible to use Phoca Gallery anymore, even after the beta update

I got this error message when i want to change PG parameters "Unknown named parameter $params "

Any idea ?

Thanks

Re: PG Joomla 4 upgrade Unknown named parameter $params

Posted: 04 Mar 2022, 23:24
by Jan
Hi, try to enable debug mode in your Joomla global configuration so you will get whole error message including file and line where this error occurs?

Which Joomla version do you use? Which Phoca Gallery version?

Jan

Re: PG Joomla 4 upgrade Unknown named parameter $params

Posted: 03 Jul 2022, 10:52
by thierrycv
Hi Jan
Sorry, no time to return check this till now
Joomla 4.1.5, Phocagallery 4.5.0
i tried to uninstall and reinstall Phocagallery
i got this error when i click on phocagallery parameters or when i try to create a new category

logs below

Function Location
1 () JROOT/libraries/src/Editor/Editor.php:198
2 Joomla\CMS\Editor\Editor->display() JROOT/libraries/src/Form/Field/EditorField.php:261
3 Joomla\CMS\Form\Field\EditorField->getInput() JROOT/libraries/src/Form/FormField.php:1082
4 Joomla\CMS\Form\FormField->renderField() JROOT/libraries/src/Form/Form.php:606
5 Joomla\CMS\Form\Form->renderFieldset() JROOT/administrator/components/com_config/tmpl/component/default.php:111
6 include() JROOT/libraries/src/MVC/View/HtmlView.php:436
7 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:220
8 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_config/src/View/Component/HtmlView.php:102
9 Joomla\Component\Config\Administrator\View\Component\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:697
10 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_config/src/Controller/DisplayController.php:59
11 Joomla\Component\Config\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:735
12 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:146
13 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
15 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
16 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
17 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:63
18 require_once() JROOT/administrator/index.php:32

after a new "category" request

Call stack
# Function Location
1 () JROOT/libraries/src/Editor/Editor.php:198
2 Joomla\CMS\Editor\Editor->display() JROOT/libraries/src/Form/Field/EditorField.php:261
3 Joomla\CMS\Form\Field\EditorField->getInput() JROOT/libraries/src/Form/FormField.php:468
4 Joomla\CMS\Form\FormField->__get() JROOT/libraries/src/Form/Field/TextareaField.php:92
5 Joomla\CMS\Form\Field\TextareaField->__get() JROOT/libraries/src/Form/Field/EditorField.php:136
6 Joomla\CMS\Form\Field\EditorField->__get() JROOT/libraries/src/Form/Form.php:500
7 Joomla\CMS\Form\Form->getInput() JROOT/administrator/components/com_phocagallery/libraries/Phoca/Render/Adminview.php:228
8 Phoca\Render\Adminview->group() JROOT/administrator/components/com_phocagallery/views/phocagalleryc/tmpl/edit.php:77
9 include() JROOT/libraries/src/MVC/View/HtmlView.php:436
10 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:220
11 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_phocagallery/views/phocagalleryc/view.html.php:90
12 PhocaGalleryCpViewPhocaGalleryC->display() JROOT/libraries/src/MVC/Controller/BaseController.php:697
13 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_phocagallery/controller.php:64
14 PhocaGalleryCpController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:735
15 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_phocagallery/phocagallery.php:50
16 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
17 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
18 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
19 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
20 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
21 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
22 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:63
23 require_once() JROOT/administrator/index.php:32




Thanks for your help

Re: PG Joomla 4 upgrade Unknown named parameter $params

Posted: 03 Jul 2022, 11:41
by christine
Hi,

are you using PHP 8.1? If Yes, try with PHP 7.4 or 8.0

Kind regards
Christine

Re: PG Joomla 4 upgrade Unknown named parameter $params

Posted: 04 Jul 2022, 15:52
by Jan
Hi, the listed code is only call stack but what is the exact errror message? (including file and row of the error)

Jan

Re: PG Joomla 4 upgrade Unknown named parameter $params

Posted: 19 Jul 2022, 20:32
by thierrycv
Hi Jan
I use Php 8.0

The issue occurs when I want to enter in parameters to change category view

Then I got


Call stack
# Function Location
1 () JROOT/libraries/src/Editor/Editor.php:198
2 Joomla\CMS\Editor\Editor->display() JROOT/libraries/src/Form/Field/EditorField.php:261
3 Joomla\CMS\Form\Field\EditorField->getInput() JROOT/libraries/src/Form/FormField.php:1082
4 Joomla\CMS\Form\FormField->renderField() JROOT/libraries/src/Form/Form.php:606
5 Joomla\CMS\Form\Form->renderFieldset() JROOT/administrator/components/com_config/tmpl/component/default.php:111
6 include() JROOT/libraries/src/MVC/View/HtmlView.php:436
7 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:220
8 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_config/src/View/Component/HtmlView.php:102
9 Joomla\Component\Config\Administrator\View\Component\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:697
10 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_config/src/Controller/DisplayController.php:59
11 Joomla\Component\Config\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:735
12 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:146
13 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
15 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
16 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
17 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:63
18 require_once() JROOT/administrator/index.php:32

Thanks for your help

Re: PG Joomla 4 upgrade Unknown named parameter $params

Posted: 19 Jul 2022, 20:42
by thierrycv
Hi again

Seems to be the je editor. With tiny editor everything works now

I will check it

Cheers

Re: PG Joomla 4 upgrade Unknown named parameter $params

Posted: 20 Jul 2022, 13:50
by Jan
OK

Re: PG Joomla 4 upgrade Unknown named parameter $params

Posted: 20 Jan 2023, 20:27
by Angelo.pe
Hi Jan,
I have the same problem.
In Phoca, If I try to open any link related to articles, categories, shipments, orders.... I always get the same error
:-(
Si รจ verificato un errore.
0 Unknown named parameter $params


I'm using the php 8
I changed the JCE editor with Tiny.. nothing good

This is the debug message:
1 () JROOT/libraries/src/Editor/Editor.php:196
2 Joomla\CMS\Editor\Editor->display() JROOT/libraries/src/Form/Field/EditorField.php:251
3 Joomla\CMS\Form\Field\EditorField->getInput() JROOT/libraries/src/Form/FormField.php:471
4 Joomla\CMS\Form\FormField->__get() JROOT/libraries/src/Form/Field/TextareaField.php:94
5 Joomla\CMS\Form\Field\TextareaField->__get() JROOT/libraries/src/Form/Field/EditorField.php:138
6 Joomla\CMS\Form\Field\EditorField->__get() JROOT/libraries/src/Form/Form.php:458
7 Joomla\CMS\Form\Form->getInput() JROOT/administrator/components/com_phocacart/libraries/Phoca/Render/Adminview.php:280
8 Phoca\Render\Adminview->group() JROOT/administrator/components/com_phocacart/views/phocacartitem/tmpl/edit.php:180
9 include() JROOT/libraries/src/MVC/View/HtmlView.php:410
10 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
11 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_phocacart/views/phocacartitem/view.html.php:82
12 PhocaCartCpViewPhocaCartItem->display() JROOT/libraries/src/MVC/Controller/BaseController.php:639
13 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_phocacart/controller.php:91
14 phocaCartCpController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:672
15 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_phocacart/phocacart.php:25
16 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
17 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
18 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
19 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
20 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
21 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
22 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
23 require_once() JROOT/administrator/index.php:32

Thank you so much

Re: PG Joomla 4 upgrade Unknown named parameter $params

Posted: 21 Jan 2023, 19:38
by Jan
Hi, what is exactly the error message? I see the trace but not the full message: "Unknown named parameter $params ..."

Hard to say what is wrong there but seems like this is some Joomla core issue :idea:

Jan