[SOLVED] Bug in PG Search Plugin

Phoca Gallery plugins - plugins for Phoca Gallery extension
ruster1969
Phoca Member
Phoca Member
Posts: 36
Joined: 28 Aug 2015, 09:36

[SOLVED] Bug in PG Search Plugin

Post 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
Last edited by ruster1969 on 15 Mar 2016, 10:57, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Bug in PG Search Plugin

Post by Jan »

Hi, which version of Phoca Gallery you are using? Which version of the Phoca Gallery Search plugin you are using?
If you find Phoca extensions useful, please support the project
ruster1969
Phoca Member
Phoca Member
Posts: 36
Joined: 28 Aug 2015, 09:36

Re: Bug in PG Search Plugin

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

Re: Bug in PG Search Plugin

Post 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
If you find Phoca extensions useful, please support the project
ruster1969
Phoca Member
Phoca Member
Posts: 36
Joined: 28 Aug 2015, 09:36

Re: Bug in PG Search Plugin

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

Re: Bug in PG Search Plugin

Post by Jan »

Hi, the plugin search for images and categories, the plugin was based on Joomla! search plugins.

Jan
If you find Phoca extensions useful, please support the project
Post Reply