?
avatar brianteeman
brianteeman
3 Oct 2017

Steps to reproduce the issue

Do a NEW install of current 4.0 branch without the sample data

Expected result

Front end works

Actual result

500 Expression #1 of ORDER BY clause is not in SELECT list, references column 'nmmtest1.c.lft' which is not in SELECT list; this is incompatible with DISTINCT

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar brianteeman brianteeman - open - 3 Oct 2017
avatar joomla-cms-bot joomla-cms-bot - change - 3 Oct 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Oct 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Oct 2017
Category Front End
avatar C-Lodder
C-Lodder - comment - 3 Oct 2017

Also get the following when clicking on Archived Articles:

PHP Notice: Undefined property: Joomla\CMS\Object\CMSObject::$params in C:\XXX\components\com_content\Model\ArchiveModel.php on line 48

avatar brianteeman
brianteeman - comment - 3 Oct 2017

@C-Lodder try it without the sample data

(updated original issue

avatar brianteeman brianteeman - change - 3 Oct 2017
The description was changed
avatar brianteeman brianteeman - edited - 3 Oct 2017
avatar C-Lodder
C-Lodder - comment - 3 Oct 2017

I can also confirm the issue on a new installation with sample data. On the Featured Articles sub-page though.

@csthomas any thoughts on this?

avatar csthomas
csthomas - comment - 3 Oct 2017

If joomla use DISTINCT or GROUP BY in query then you can order by column that is included in SELECT statement.

You can go to home menu and set new order that column exists in select statement like:
obraz

or you can delete DISTINCT from https://github.com/joomla/joomla-cms/blob/4.0-dev/components/com_content/Model/ArticlesModel.php#L197

I do not know why someone add DISTINCT but this slow down very much this view.
The query has to be designed in a better way without using DISTINCT or GROUP BY.

IMO joomla 4.0 could try to find a better way to build query or I should say queries per model.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Oct 2017

closed as having Pull Request #18215


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18208.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Oct 2017

closed as having Pull Request #18215


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18208.

avatar joomla-cms-bot joomla-cms-bot - close - 3 Oct 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Oct 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-10-03 18:25:32
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 3 Oct 2017
avatar alikon
alikon - comment - 3 Oct 2017

no please reopeon, it fix only some of the archive bugs

avatar joomla-cms-bot joomla-cms-bot - change - 3 Oct 2017
Status Discussion New
Closed_Date 0000-00-00 00:00:00
avatar joomla-cms-bot joomla-cms-bot - reopen - 3 Oct 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Oct 2017
Status Closed Discussion
Closed_Date 2017-10-03 18:25:32
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 3 Oct 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Oct 2017

reopen as stated above.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18208.

avatar alikon
alikon - comment - 3 Oct 2017

@csthomas made the simple fix in #18215 for the DISTINCT clause

fully agree

joomla 4.0 could try to find a better way to build query

avatar alikon
alikon - comment - 3 Oct 2017

now should fix when installing without sample data too
@franz-wohlkoenig can be closed now

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Oct 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-10-03 19:36:38
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 3 Oct 2017
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 3 Oct 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 3 Oct 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Oct 2017

closed as stated above.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18208.

Add a Comment

Login with GitHub to post a comment