Page 1 of 1

[SOLVED] Bug in PG Search Plugin

Posted: 10 Mar 2016, 16:21
by ruster1969
If I choose ordering search results by "Oldest first" or by "Category" I get this error:

Code: Select all

1054
Unknown column 'a.created' in 'order clause' SQL=SELECT a.id, a.title AS title, a.alias, a.date AS created, a.access, a.accessuserid, t.id as tagid, t.title as tagtitle, t.alias as tagalias, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END as slug, a.description AS text, CONCAT_WS( " / ", 'Phoca Gallery', a.title ) AS section, "2" AS browsernav FROM bsgq4_phocagallery_categories AS a LEFT JOIN bsgq4_phocagallery_tags_ref AS tr ON tr.imgid = a.id LEFT JOIN bsgq4_phocagallery_tags AS t ON t.id = tr.tagid WHERE ((a.title LIKE '%ragazza%' OR a.alias LIKE '%ragazza%' OR a.metakey LIKE '%ragazza%' OR a.metadesc LIKE '%ragazza%' OR a.description LIKE '%ragazza%' OR t.title LIKE '%ragazza%' OR t.alias LIKE '%ragazza%')) AND a.published = 1 AND a.approved = 1 AND a.access IN (1,1,5) GROUP BY a.id ORDER BY a.created ASC LIMIT 0, 200

Re: Bug in PG Search Plugin

Posted: 10 Mar 2016, 18:24
by Jan
Hi, which version of Phoca Gallery you are using? Which version of the Phoca Gallery Search plugin you are using?

Re: Bug in PG Search Plugin

Posted: 10 Mar 2016, 18:58
by ruster1969
Jan wrote:Hi, which version of Phoca Gallery you are using? Which version of the Phoca Gallery Search plugin you are using?
Hi Jan,
Phoca Gallery version: 4.2.1
Phoca Gallery Search plugin version: I don't know (filename is plg_search_phocagallery_v4.2.1.zip)

Joomla!: 3.4.8

Re: Bug in PG Search Plugin

Posted: 11 Mar 2016, 01:47
by Jan
Hi, I have changed the code, should be OK now, try to download the latest version now (4.2.2) and please test it and let me know.
https://www.phoca.cz/download/category/1 ... rch-plugin
Thank you, Jan

Re: Bug in PG Search Plugin

Posted: 11 Mar 2016, 13:14
by ruster1969
Jan wrote:Hi, I have changed the code, should be OK now, try to download the latest version now (4.2.2) and please test it and let me know.
https://www.phoca.cz/download/category/1 ... rch-plugin
Thank you, Jan
OK, it works! :twisted:
Thank you!

P.S.
Why do you include categories in search results? IMHO it's not so useful...

Re: Bug in PG Search Plugin

Posted: 12 Mar 2016, 15:00
by Jan
Hi, the plugin search for images and categories, the plugin was based on Joomla! search plugins.

Jan