?
Referenced as Pull Request for: # 6082
avatar vzenix
vzenix
11 Feb 2015

Steps to reproduce the issue

Go to: /index.php?searchword=tag&ordering=newest&searchphrase=all&option=com_search

Expected result

Search Results.

Actual result

[Microsoft][SQL Server Native Client 11.0][SQL Server] Column 'yawcx_contact_details.name' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause. SQL=SELECT * FROM ( SELECT a.name AS title, '' AS created, a.con_position, a.misc, CASE WHEN DATALENGTH(a.alias) != 0 THEN (CAST(a.id as NVARCHAR(10))+':'+a.alias) ELSE CAST(a.id as NVARCHAR(10)) END as slug, CASE WHEN DATALENGTH(c.alias) != 0 THEN (CAST(c.id as NVARCHAR(10))+':'+c.alias) ELSE CAST(c.id as NVARCHAR(10)) END as catslug, (a.name+','+a.con_position+','+a.misc) AS text,('Contacts'+' / '+c.title) AS section,'2' AS browsernav , ROW_NUMBER() OVER (ORDER BY a.name DESC) AS RowNumber FROM yawcx_contact_details AS a INNER JOIN yawcx_categories AS c ON c.id = a.catid WHERE (a.name LIKE '%tag%' OR a.misc LIKE '%tag%' OR a.con_position LIKE '%tag%' OR a.address LIKE '%tag%' OR a.suburb LIKE '%tag%' OR a.state LIKE '%tag%' OR a.country LIKE '%tag%' OR a.postcode LIKE '%tag%' OR a.telephone LIKE '%tag%' OR a.fax LIKE '%tag%') AND a.published IN (1,2) AND c.published=1 AND a.access IN (1,1,2) AND c.access IN (1,1,2) GROUP BY a.id, a.con_position, a.misc, c.alias, c.id ) _myResults WHERE RowNumber BETWEEN 1 AND 50

[Microsoft][SQL Server Native Client 11.0][SQL Server]The column 'note' was specified multiple times for '_myResults'. SQL=SELECT * FROM ( SELECT a.id, a.title, a.alias, a.note, a.published, a.access, a.checked_out, a.checked_out_time, a.created_user_id, a.path, a.parent_id, a.level, a.lft, a.rgt, a.language, a.created_time AS created, a.note, a.description, CASE WHEN DATALENGTH(a.alias) != 0 THEN (CAST(a.id as NVARCHAR(10))+':'+a.alias) ELSE CAST(a.id as NVARCHAR(10)) END as slug , ROW_NUMBER() OVER (ORDER BY a.created_time DESC) AS RowNumber FROM yawcx_tags AS a WHERE a.alias <> 'root' AND (a.title LIKE '%tag%' OR a.alias LIKE '%tag%') AND a.access IN (1,1,2) ) _myResults WHERE RowNumber BETWEEN 1 AND 50

System information (as much as possible)

IIS
MSSQL
Joomla 3.3.6

Additional comments

1º Error: Add in group clausule a.name, a.alias, c.title because GROUP BY is diferent in MySQL.
(/plugin/search/contacts/contacts.php)
2º Error: Delete 'a.note', because have 2 in "SELECT" and this can provoke a crash in MSSQL.
(/plugin/search/tags/tags.php)

avatar vzenix vzenix - open - 11 Feb 2015
avatar vzenix vzenix - change - 11 Feb 2015
The description was changed
avatar brianteeman brianteeman - change - 11 Feb 2015
Labels Added: ?
avatar waader
waader - comment - 12 Feb 2015

I can confirm that search is also broken in the current staging branch.

avatar alikon alikon - reference | - 13 Feb 15
avatar zero-24 zero-24 - change - 13 Feb 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-02-13 21:25:47
Closed_By zero-24
avatar joomla-cms-bot
joomla-cms-bot - comment - 13 Feb 2015

Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/6054

avatar joomla-cms-bot joomla-cms-bot - change - 13 Feb 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-02-13 21:25:54
avatar joomla-cms-bot joomla-cms-bot - close - 13 Feb 2015
avatar joomla-cms-bot joomla-cms-bot - close - 13 Feb 2015
avatar zero-24
zero-24 - comment - 13 Feb 2015

Closing here as we have a PR by @alikon Thanks: #6082


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6054.
avatar alikon
alikon - comment - 14 Feb 2015

@zero-24 the #6082 fix only the 2nd issue reported by @vzenix
i'm still looking for the 1st one

avatar zero-24 zero-24 - change - 14 Feb 2015
Status Closed Confirmed
Closed_Date 2015-02-13 21:25:54
Closed_By zero-24
avatar joomla-cms-bot
joomla-cms-bot - comment - 14 Feb 2015

Set to "open" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/6054

avatar joomla-cms-bot joomla-cms-bot - reopen - 14 Feb 2015
avatar joomla-cms-bot joomla-cms-bot - reopen - 14 Feb 2015
avatar zero-24
zero-24 - comment - 14 Feb 2015

Thanks @alikon I re-open here than.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6054.
avatar alikon
alikon - comment - 14 Feb 2015

@zero-24 sorry now the #6082 should solve both so this can be closed

avatar zero-24 zero-24 - change - 14 Feb 2015
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2015-02-14 23:18:20
Closed_By zero-24
avatar joomla-cms-bot joomla-cms-bot - change - 14 Feb 2015
Closed_Date 2015-02-14 23:18:20 2015-02-14 23:18:26
avatar joomla-cms-bot joomla-cms-bot - close - 14 Feb 2015
avatar joomla-cms-bot joomla-cms-bot - close - 14 Feb 2015
avatar zero-24
zero-24 - comment - 14 Feb 2015

So I closing here. Thanks for the patch and update here @alikon


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6054.
avatar joomla-cms-bot
joomla-cms-bot - comment - 14 Feb 2015

Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/6054

Add a Comment

Login with GitHub to post a comment