Joomla finder error "undefined null" (Phoca Gallery Plugin)

Phoca Gallery plugins - plugins for Phoca Gallery extension
Commander
Phoca Member
Phoca Member
Posts: 17
Joined: 25 Jul 2015, 15:46
Location: Austria

Joomla finder error "undefined null" (Phoca Gallery Plugin)

Post by Commander »

Hi,

I am having troubles with enabled "Phoca Gallery Plugin" with Joomla's Finder component. Finder indexing is cancelled after some time with the "error": "Undefined null" in the finder indexing status window.
Firefox network analysis shows a HTTP 500 error (no details) and PHP log is empty.

As stated here (github.com/joomlaworks/k2/issues/5) it helps to unpublish "Phoca Gallery Plugin" (other Phoca (Gallery) related plugins may remain published).

It does not matter, if "Phoca Gallery Finder Plugins" are installed or not.
It's just "Phoca Gallery Plugin" that causes the problem.

Version details:
Joomla 3.4.3
PHP 5.6.11

Phoca Gallery Component 4.2.0
Phoca Gallery Plugin 4.1.2
Phoca Gallery Finder Plugin (Files and Categories) 3.0.1
Phoca Galerie Slideshow Plugin 4.1.2
German language files for Joomla and all Phoca extensions, resp. are installed.

Any help on this would be greatly appreciated! Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla finder error "undefined null" (Phoca Gallery Plug

Post by Jan »

Hi, which plugin did you disabled (or user has disabled) exactly?

Phoca Gallery Content Plugin does not run in backend, so no idea how it can influence another extension - in case it is a frontend plugin and is not active in backend?

Jan
If you find Phoca extensions useful, please support the project
Commander
Phoca Member
Phoca Member
Posts: 17
Joined: 25 Jul 2015, 15:46
Location: Austria

Re: Joomla finder error "undefined null" (Phoca Gallery Plug

Post by Commander »

Hi Jan,

yes, it is the Phoca Gallery Content Plugin. This issue is reproduceable at any time: If it's published, manual indexing is cancelled with above message. If it's unpublished, indexing is working until it's finished.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla finder error "undefined null" (Phoca Gallery Plug

Post by Jan »

Hmm, can you describe the steps you do so I can test it.

Jan
If you find Phoca extensions useful, please support the project
Commander
Phoca Member
Phoca Member
Posts: 17
Joined: 25 Jul 2015, 15:46
Location: Austria

Re: Joomla finder error "undefined null" (Phoca Gallery Plug

Post by Commander »

I just click "Indexieren" in Joomla's finder component to recreate the index. It's indexing for some time, but then it cancels.
Most of the articles are already indexed then. Others are not.
If Joomla's own content finder plugin is unpublished, it's working of course. After reporting this in Joomla.de forum I could hunt it down to Phoca Gallery Content Plugin.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla finder error "undefined null" (Phoca Gallery Plug

Post by Jan »

Hi, this seems to be similar issue like this:
viewtopic.php?f=1&t=24600&p=92275#p92275

Please, try to edit the plugin code like described in the post and let me know. If this will be Ok, I will set it in plugin.

Jan
If you find Phoca extensions useful, please support the project
Commander
Phoca Member
Phoca Member
Posts: 17
Joined: 25 Jul 2015, 15:46
Location: Austria

Re: Joomla finder error "undefined null" (Phoca Gallery Plug

Post by Commander »

Hi Jan,

thank you for this fix. I can confirm that finder is running well after hacking the file.
Steps I did:
  1. In /plugins/content/phocagallery/phocagallery.php I added your code right after onPrePareContent:

    Code: Select all

    public function onContentPrepare($context, &$article, &$params, $page = 0) {
    	// Don't run this plugin when the content is being indexed
          if ($context == 'com_finder.indexer')
          {
             return true;
          }
  2. I published Phoca Gallery Content Plugin again.
  3. I manually triggered indexing in Joomla's finder: It successfully created the index.
Great!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla finder error "undefined null" (Phoca Gallery Plug

Post by Jan »

Ok, thank you very much for the info, will be set in next version of the plugin.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Joomla finder error "undefined null" (Phoca Gallery Plug

Post by Jan »

Added to 4.2.1

Jan
If you find Phoca extensions useful, please support the project
Commander
Phoca Member
Phoca Member
Posts: 17
Joined: 25 Jul 2015, 15:46
Location: Austria

Re: Joomla finder error "undefined null" (Phoca Gallery Plug

Post by Commander »

Hi Jan,

thank you very much. Which extension did you update?
I see Phoca Gallery Component on version 4.2.0 that is close to 4.2.1 and Phoca Gallery Plugin on version 4.1.2 (the latter was affected by this issue) on the download pages.
Post Reply