Uploads and indexation

Phoca Download - download manager
grangilles
Phoca Member
Phoca Member
Posts: 15
Joined: 04 May 2022, 09:35

Uploads and indexation

Post 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

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Uploads and indexation

Post 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
If you find Phoca extensions useful, please support the project
grangilles
Phoca Member
Phoca Member
Posts: 15
Joined: 04 May 2022, 09:35

Re: Uploads and indexation

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Uploads and indexation

Post by Jan »

Hi, can you enable debug mode to get the error message including the file and row where this happens?

Thank you, Jan
If you find Phoca extensions useful, please support the project
grangilles
Phoca Member
Phoca Member
Posts: 15
Joined: 04 May 2022, 09:35

Re: Uploads and indexation

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Uploads and indexation

Post by Jan »

Hi, do you get the same result with Phoca Download 4.0.3?
https://www.phoca.cz/download/category/ ... -component

Jan
If you find Phoca extensions useful, please support the project
grangilles
Phoca Member
Phoca Member
Posts: 15
Joined: 04 May 2022, 09:35

Re: Uploads and indexation

Post by grangilles »

Hi Jan,

same issue.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Uploads and indexation

Post by Jan »

Hi, do you get the same result with 4.0.3?
If you find Phoca extensions useful, please support the project
grangilles
Phoca Member
Phoca Member
Posts: 15
Joined: 04 May 2022, 09:35

Re: Uploads and indexation

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48398
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Uploads and indexation

Post by Jan »

Hi, where exactly it happens?
If you find Phoca extensions useful, please support the project
Post Reply