Page 1 of 2
Uploads and indexation
Posted: 07 Sep 2022, 10:53
by grangilles
Hi everybody,
my issue is with is NO returned results, in the Joomla search module, while documents have been added in frontend via PD module.
If I re-index via the component :
> advanced search >indexed contents >>indexation
The last added docs via PD module in front end appears !!!
The same issue happens, while using the PD backend upload and editing tool;
Any idea ?
Thx to the community for answering.
Gil.
J 4.2.2
PHP 7.4.21
Re: Uploads and indexation
Posted: 09 Sep 2022, 00:48
by Jan
Hi, it is based on oncontent save events. Which are disabled in Phoca Download.
Try to edit this file:
administrator/components/com_phocadownload/models/phocadownloadfile.php
and try to de-comment following lines: 421, 446.
And let me know if this works for your for backend saving of the file.
If yes, I wll prepare new version with including the events (they were commented because of some core problems, so maybe it will be OK now)
Jan
Re: Uploads and indexation
Posted: 12 Sep 2022, 11:39
by grangilles
Hi Jan,
I'v try your tip and the lines looks now like that :
// Trigger the onContentBeforeSave event.
$result = $dispatcher->trigger($this->event_before_save, array($this->option.'.'.$this->name, $table, $isNew));
if (in_array(false, $result, true)) {
throw new Exception($table->getError(), 500);
return false;
}
// Trigger the onContentAfterSave event.
$dispatcher->trigger($this->event_after_save, array($this->option.'.'.$this->name, $table, $isNew));
Anyway there are still no results with files added via the backend in the Joomla frontend seach engine
I've noticed that when in return an edit a file in PD, this message is returning.
"Une erreur est survenue
0 Call to a member function trigger() on null"
Back to the root of PD component and return to the same doc, edition is then possible.
Thx for helping.
I hope this will help you.
Gil.
Re: Uploads and indexation
Posted: 12 Sep 2022, 22:04
by Jan
Hi, can you enable debug mode to get the error message including the file and row where this happens?
Thank you, Jan
Re: Uploads and indexation
Posted: 13 Sep 2022, 11:31
by grangilles
Hi Jan,
here's the result :
"0 Call to a member function trigger() on null
Call stack
# Function Location
1 () JROOT/administrator/components/com_phocadownload/models/phocadownloadfile.php:421
2 PhocaDownloadCpModelPhocaDownloadFile->save() JROOT/libraries/src/MVC/Controller/FormController.php:705
3 Joomla\CMS\MVC\Controller\FormController->save() JROOT/libraries/src/MVC/Controller/BaseController.php:735
4 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_phocadownload/phocadownload.php:47
5 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:69
6 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
7 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:389
8 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
9 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
10 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:278
11 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:63
12 require_once() JROOT/administrator/index.php:32 "
BR.
Gil
Re: Uploads and indexation
Posted: 15 Sep 2022, 15:59
by Jan
Hi, do you get the same result with Phoca Download 4.0.3?
https://www.phoca.cz/download/category/ ... -component
Jan
Re: Uploads and indexation
Posted: 26 Sep 2022, 17:11
by grangilles
Hi Jan,
same issue.
Re: Uploads and indexation
Posted: 26 Sep 2022, 20:20
by Jan
Hi, do you get the same result with 4.0.3?
Re: Uploads and indexation
Posted: 27 Sep 2022, 08:50
by grangilles
Hi jan,
Joomla 4.2.2
PD component 4.0.3
Phoca Download Finder Plugin 4.0.2
Phoca Download Plugin 4.0.2
Phoca Download Search Plugin 3.2.1
Phoca Download Tree 4.0.1
Re: Uploads and indexation
Posted: 27 Sep 2022, 23:08
by Jan
Hi, where exactly it happens?