Page 1 of 1

Phoca Gallery Search Plugin HTTP-Error: 500 and no results

Posted: 17 May 2011, 15:39
by Ron
Hello Jan,

I just installed the new Gallery Search Plugin on my site in development, but have some problems with it.

At first it doesn’t seem to give me any results from categories or image comments.
Second when on the search page I check only one of phoca, content, weblinks etc. the search results in a Server-error:500.

I’ve tried to:
Reinstall the plugin
Remove the HTACCESS file
But both end up with the same results

The errormsg gives me: Fatal error: Call to undefined function onContentSearchAreas() in /volume1/web/site/plugins/search/phocagallery/phocagallery.php on line 56 Fatal error: Class 'JLoader' not found in /volume1/web/site/libraries/loader.php on line 130

Can you give me a hint on the solution for this.

Thnx,

Re: Phoca Gallery Search Plugin HTTP-Error: 500 and no resul

Posted: 18 May 2011, 09:19
by Ron
Ron wrote:Hello Jan,

I just installed the new Gallery Search Plugin on my site in development, but have some problems with it.

At first it doesn’t seem to give me any results from categories or image comments.
Second when on the search page I check only one of phoca, content, weblinks etc. the search results in a Server-error:500.

I’ve tried to:
Reinstall the plugin
Remove the HTACCESS file
But both end up with the same results

The errormsg gives me: Fatal error: Call to undefined function onContentSearchAreas() in /volume1/web/site/plugins/search/phocagallery/phocagallery.php on line 56 Fatal error: Class 'JLoader' not found in /volume1/web/site/libraries/loader.php on line 130

Can you give me a hint on the solution for this.

Thnx,
The first problem seems to have somting to do with the languagfilter, if i disable the filter in the phocagallery.php by disabling lines 205 and 206 its works fine.

Code: Select all

// Filter by language
			if ($app->isSite() && $app->getLanguageFilter()) {
				$tag = JFactory::getLanguage()->getTag();
				//$query->where('a.language in (' . $db->Quote($tag) . ',' . $db->Quote('*') . ')');
				//$query->where('c.language in (' . $db->Quote($tag) . ',' . $db->Quote('*') . ')');
			}
The second problem i solved by adding this before onContentSearchAreas() on line 56 of phocagallery.php

Code: Select all

if (!array_intersect($areas, array_keys($this->onContentSearchAreas() ) ))
The only thing that confuses me at this moment is the language problem. I realy don't know what I'm doing wrong.
The images and categories both use all languages, so the resultpage should show them by default.

Re: Phoca Gallery Search Plugin HTTP-Error: 500 and no resul

Posted: 19 May 2011, 23:04
by Jan
Hi, thank you for the info, the second problem I have changed (this) for info about the first problem, try to enable debug mode, so you will get info from the database.

Try to test version 3.0.1

Jan

Re: Phoca Gallery Search Plugin HTTP-Error: 500 and no resul

Posted: 20 May 2011, 09:59
by Ron
Thnx Jan,

You've pointed me the way, it seems that the language field in the category table contained empty values.
So the

Code: Select all

AND a.language in ('nl-NL','*') 
in the SQL SELECT CASE statement from the search plugin returned no data.
After changing the Language field values inide the Category table to '*' the search worked great.

Again thanks for your reply,

Re: Phoca Gallery Search Plugin HTTP-Error: 500 and no resul

Posted: 23 May 2011, 14:40
by Jan
Ok