Page 1 of 1

Call to undefined method Joomla\Component\Finder\Administrator\Indexer\Helper::getContentPath()

Posted: 12 Aug 2023, 14:34
by LaurentR2D2
Hello,

Joomla! 4.3.3 Stable [ Bora ] 11-July-2023 16:00 GMT
PhocaGallery 4.5.4
PHP Version 8.0.30

Since today I get this error message when I try to save a new picture.

Code: Select all

 Call to undefined method Joomla\Component\Finder\Administrator\Indexer\Helper::getContentPath()
Call stack
#	Function	Location
1	()	JROOT/plugins/finder/phocagallery/phocagallery.php:161
2	PlgFinderPhocagallery->index()	JROOT/administrator/components/com_finder/src/Indexer/Adapter.php:357
3	Joomla\Component\Finder\Administrator\Indexer\Adapter->reindex()	JROOT/plugins/finder/phocagallery/phocagallery.php:67
4	PlgFinderPhocagallery->onFinderAfterSave()	JROOT/libraries/src/Plugin/CMSPlugin.php:284
5	Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}()	JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
6	Joomla\Event\Dispatcher->dispatch()	JROOT/libraries/src/Application/EventAware.php:111
7	Joomla\CMS\Application\WebApplication->triggerEvent()	JROOT/plugins/content/finder/finder.php:46
8	PlgContentFinder->onContentAfterSave()	JROOT/libraries/src/Plugin/CMSPlugin.php:284
9	Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}()	JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
10	Joomla\Event\Dispatcher->dispatch()	JROOT/libraries/src/Application/EventAware.php:111
11	Joomla\CMS\Application\WebApplication->triggerEvent()	JROOT/administrator/components/com_phocagallery/models/phocagalleryimg.php:360
12	PhocaGalleryCpModelPhocaGalleryImg->save()	JROOT/libraries/src/MVC/Controller/FormController.php:675
13	Joomla\CMS\MVC\Controller\FormController->save()	JROOT/libraries/src/MVC/Controller/BaseController.php:678
14	Joomla\CMS\MVC\Controller\BaseController->execute()	JROOT/administrator/components/com_phocagallery/phocagallery.php:50
15	require_once()	JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
16	Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()	JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
17	Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()	JROOT/libraries/src/Component/ComponentHelper.php:361
18	Joomla\CMS\Component\ComponentHelper::renderComponent()	JROOT/libraries/src/Application/AdministratorApplication.php:143
19	Joomla\CMS\Application\AdministratorApplication->dispatch()	JROOT/libraries/src/Application/AdministratorApplication.php:186
20	Joomla\CMS\Application\AdministratorApplication->doExecute()	JROOT/libraries/src/Application/CMSApplication.php:293
21	Joomla\CMS\Application\CMSApplication->execute()	JROOT/administrator/includes/app.php:61
22	require_once()	JROOT/administrator/index.php:32

Re: Call to undefined method Joomla\Component\Finder\Administrator\Indexer\Helper::getContentPath()

Posted: 14 Aug 2023, 14:52
by Jan
Hi, which version of Phoca Gallery Finder plugin (category, image) do you use?

Jan

Re: Call to undefined method Joomla\Component\Finder\Administrator\Indexer\Helper::getContentPath()

Posted: 15 Aug 2023, 13:49
by LaurentR2D2
I don't know where to find the plugins version in Joomla, so I've downloaded the plugins from your website and have reinstalled them (plg_finder_phocagallerycategory_v4.5.2.zip, plg_finder_phocagalleryimage_v4.5.2.zip). I still get the error message.

Re: Call to undefined method Joomla\Component\Finder\Administrator\Indexer\Helper::getContentPath()

Posted: 15 Aug 2023, 15:54
by Jan
Hi, the error says:
JROOT/plugins/finder/phocagallery/phocagallery.php

but there is no more such file, so seems like some obsolete plugin is there

1) Uninstall all Phoca Gallery Finder plugins
2) with FTP delete the folder: /plugins/finder/phocagallery/
3) Install the Phoca Gallery Finder plugins again (the best is to install latest 4.5.3 version: https://www.phoca.cz/download/66-phoca- ... der-plugin )

and let me know if this is OK.

Jan

Re: Call to undefined method Joomla\Component\Finder\Administrator\Indexer\Helper::getContentPath()

Posted: 15 Aug 2023, 17:05
by LaurentR2D2
I've done what you tell, and now it works, and I know where I should look to get the version of a plugin. I've also noticed two things :
There was an older version of the Phoca Gallery Finder plugin Images, like you can see on the screenshot. It's disabled because I've disable the plugins before uninstalling them : https://www.dropbox.com/scl/fi/klqj99re ... x94vg&dl=0.

Despite the error message, Phoca Gallery have registered my picture, and I have found several copies of it in the gallery. I didn't check the gallery thinking that the error message meant it had failed.

Thank you for your help

Re: Call to undefined method Joomla\Component\Finder\Administrator\Indexer\Helper::getContentPath()

Posted: 15 Aug 2023, 18:04
by Benno
Hi,
Image
the Phoca Gallery Menu Module v4.1.0 is also outdated (Mar 5, 2015). Don't use it in Joomla! 4 and uninstall it, otherwise it will also cause troubles.

Kind regards,
Benno

Re: Call to undefined method Joomla\Component\Finder\Administrator\Indexer\Helper::getContentPath()

Posted: 16 Aug 2023, 10:55
by LaurentR2D2
Benno wrote: 15 Aug 2023, 18:04 Hi,
the Phoca Gallery Menu Module v4.1.0 is also outdated (Mar 5, 2015). Don't use it in Joomla! 4 and uninstall it, otherwise it will also cause troubles.

Kind regards,
Benno
Ok, thank you. Should I install v 4.40 released in 2021 ?

Re: Call to undefined method Joomla\Component\Finder\Administrator\Indexer\Helper::getContentPath()

Posted: 16 Aug 2023, 11:05
by Benno
Hi,
no, it's also a Phoca Gallery 3 Module. The Phoca Gallery versioning is different from all other Phoca extensions. Only versions from 4.5 and higher are made for Joomla! 4.

Kind regards,
Benno

Re: Call to undefined method Joomla\Component\Finder\Administrator\Indexer\Helper::getContentPath()

Posted: 16 Aug 2023, 23:35
by Jan
Yes, this is because unification with Joomla. As of Joomla 5, Phoca Gallery will have unified numbering, so will version 5.