<![CDATA[ GROUP BY clause; this is incompatible with sql_mode=only_full_group_by - My Forums]]> https://forums.modx.com/thread/?thread=103334 <![CDATA[GROUP BY clause; this is incompatible with sql_mode=only_full_group_by]]> https://forums.modx.com/thread/103334/group-by-clause-this-is-incompatible-with-sql-mode-only-full-group-by#dis-post-556035
Since I updated mySQL to 5.7.20 I get this error:

[2017-12-12 23:23:23] (ERROR @ ......./core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement: 
Array
(
    [0] => 42000
    [1] => 1055
    [2] => Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'usr_web555_5.modManagerLog.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
)


I guess this issue is well known since mySQL version 5.7.5+ ?
e.g.: stackoverflow.com
and it worked by changing the sql mode:
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));


My question please: Does this command really solve the error and why is it not fixed in MODX?

jo
]]>
krischel Dec 21, 2017, 11:08 PM https://forums.modx.com/thread/103334/group-by-clause-this-is-incompatible-with-sql-mode-only-full-group-by#dis-post-556035
<![CDATA[Re: GROUP BY clause; this is incompatible with sql_mode=only_full_group_by]]> https://forums.modx.com/thread/103334/group-by-clause-this-is-incompatible-with-sql-mode-only-full-group-by#dis-post-556056 You are right: The widget "Who's Online" cause this error.

I report this error: issue 13730



]]>
krischel Dec 23, 2017, 01:24 PM https://forums.modx.com/thread/103334/group-by-clause-this-is-incompatible-with-sql-mode-only-full-group-by#dis-post-556056
<![CDATA[Re: GROUP BY clause; this is incompatible with sql_mode=only_full_group_by]]> https://forums.modx.com/thread/103334/group-by-clause-this-is-incompatible-with-sql-mode-only-full-group-by#dis-post-556049 markh Dec 23, 2017, 11:11 AM https://forums.modx.com/thread/103334/group-by-clause-this-is-incompatible-with-sql-mode-only-full-group-by#dis-post-556049 <![CDATA[Re: GROUP BY clause; this is incompatible with sql_mode=only_full_group_by]]> https://forums.modx.com/thread/103334/group-by-clause-this-is-incompatible-with-sql-mode-only-full-group-by#dis-post-556039
I guess the modManagerLog does not support the sql_mode ONLY_FULL_GROUP_BY?
Unfortunately, I cannot find the initiator by the error message.
Can anyone confirm this? Maybe it is a bug?
]]>
krischel Dec 22, 2017, 11:10 AM https://forums.modx.com/thread/103334/group-by-clause-this-is-incompatible-with-sql-mode-only-full-group-by#dis-post-556039