Joomla 4 - Call to undefined method Joomla\CMS\Factory::getURI()
2 years 5 months ago #64547
by amityit
We have old Modules setup in a Joomla 4 which receive the message
A migration is needed ! We have detected that you are editing a module that has been created with Slideshow CK V1.
and subsequently a
An error has occurred.
0 Call to undefined method Joomla\CMS\Factory::getURI()
Call stack
# Function Location
1 () JROOT/administrator/components/com_slideshowck/helpers/ckfof.php:76
2 Slideshowck\CKFof::getCurrentUri() JROOT/administrator/components/com_slideshowck/elements/ckmigrate.php:66
3 JFormFieldCkmigrate->getInput() JROOT/libraries/src/Form/FormField.php:1078
4 Joomla\CMS\Form\FormField->renderField() JROOT/layouts/joomla/edit/fieldset.php:49
5 include() JROOT/libraries/src/Layout/FileLayout.php:128
6 Joomla\CMS\Layout\FileLayout->render() JROOT/libraries/src/Layout/LayoutHelper.php:73
7 Joomla\CMS\Layout\LayoutHelper::render() JROOT/administrator/components/com_modules/tmpl/module/edit.php:129
8 include() JROOT/libraries/src/MVC/View/HtmlView.php:436
9 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:220
10 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_modules/src/View/Module/HtmlView.php:79
11 Joomla\Component\Modules\Administrator\View\Module\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:697
12 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_modules/src/Controller/DisplayController.php:122
13 Joomla\Component\Modules\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:735
14 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:146
15 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
16 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
17 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
18 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
19 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:63
20 require_once() JROOT/administrator/index.php:32
I have resolved the issue replacing line 76 of /administrator/components/com_slideshowck/helpers/ckfof.php with the following
$uri = \Joomla\CMS\Uri\Uri::getInstance();
Please look to include in future updates.
A migration is needed ! We have detected that you are editing a module that has been created with Slideshow CK V1.
and subsequently a
An error has occurred.
0 Call to undefined method Joomla\CMS\Factory::getURI()
Call stack
# Function Location
1 () JROOT/administrator/components/com_slideshowck/helpers/ckfof.php:76
2 Slideshowck\CKFof::getCurrentUri() JROOT/administrator/components/com_slideshowck/elements/ckmigrate.php:66
3 JFormFieldCkmigrate->getInput() JROOT/libraries/src/Form/FormField.php:1078
4 Joomla\CMS\Form\FormField->renderField() JROOT/layouts/joomla/edit/fieldset.php:49
5 include() JROOT/libraries/src/Layout/FileLayout.php:128
6 Joomla\CMS\Layout\FileLayout->render() JROOT/libraries/src/Layout/LayoutHelper.php:73
7 Joomla\CMS\Layout\LayoutHelper::render() JROOT/administrator/components/com_modules/tmpl/module/edit.php:129
8 include() JROOT/libraries/src/MVC/View/HtmlView.php:436
9 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:220
10 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_modules/src/View/Module/HtmlView.php:79
11 Joomla\Component\Modules\Administrator\View\Module\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:697
12 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_modules/src/Controller/DisplayController.php:122
13 Joomla\Component\Modules\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:735
14 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:146
15 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
16 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
17 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
18 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
19 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:63
20 require_once() JROOT/administrator/index.php:32
I have resolved the issue replacing line 76 of /administrator/components/com_slideshowck/helpers/ckfof.php with the following
$uri = \Joomla\CMS\Uri\Uri::getInstance();
Please look to include in future updates.
Please Log in or Create an account to join the conversation.
2 years 5 months ago #64548
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Joomla 4 - Call to undefined method Joomla\CMS\Factory::getURI()
Hi
thank you for the info, I will check that and let you know
CEd
thank you for the info, I will check that and let you know
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
2 years 5 months ago #64609
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Joomla 4 - Call to undefined method Joomla\CMS\Factory::getURI()
for info this has been fixed in the 2.3.12 version
thanks
thanks
Joomlack Webmaster and Developer
The following user(s) said Thank You: amityit
Please Log in or Create an account to join the conversation.
Time to create page: 0.210 seconds