basically brand-new install , with sample content, is borked on Blog page....
Permalink
index.php/blog
gives:
An exception occurred while executing 'SELECT date_format(cv.cvDatePublic, "%Y") as navYear, date_format(cv.cvDatePublic, "%m") as navMonth FROM Pages p LEFT JOIN PagePaths pp ON (p.cID = pp.cID and pp.ppIsCanonical = true) LEFT JOIN PageSearchIndex psi ON p.cID = psi.cID LEFT JOIN PageTypes pt ON p.ptID = pt.ptID INNER JOIN Collections c ON p.cID = c.cID INNER JOIN CollectionVersions cv ON p.cID = cv.cID LEFT JOIN CollectionSearchIndexAttributes csi ON c.cID = csi.cID WHERE (pt.ptID = ?) AND (p.cParentID = ?) AND (p.cPointerID < 1) AND (p.cIsTemplate = 0) AND (cvIsApproved = 1) AND (p.cIsActive = ?) AND (p.cIsSystemPage = ?) GROUP BY navYear, navMonth ORDER BY cvDatePublic desc' with params [7, 159, true, false]: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'concrete5.cv.cvDatePublic' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
gives:
An exception occurred while executing 'SELECT date_format(cv.cvDatePublic, "%Y") as navYear, date_format(cv.cvDatePublic, "%m") as navMonth FROM Pages p LEFT JOIN PagePaths pp ON (p.cID = pp.cID and pp.ppIsCanonical = true) LEFT JOIN PageSearchIndex psi ON p.cID = psi.cID LEFT JOIN PageTypes pt ON p.ptID = pt.ptID INNER JOIN Collections c ON p.cID = c.cID INNER JOIN CollectionVersions cv ON p.cID = cv.cID LEFT JOIN CollectionSearchIndexAttributes csi ON c.cID = csi.cID WHERE (pt.ptID = ?) AND (p.cParentID = ?) AND (p.cPointerID < 1) AND (p.cIsTemplate = 0) AND (cvIsApproved = 1) AND (p.cIsActive = ?) AND (p.cIsSystemPage = ?) GROUP BY navYear, navMonth ORDER BY cvDatePublic desc' with params [7, 159, true, false]: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'concrete5.cv.cvDatePublic' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
I think the last bit of this may be the clue. It sounds like your installation of mySQL (or equivalent) is configured with an sql_mode setting that is incompatible with concrete5. It may be possible to get that setting changed, depending on your hosting environment.
ok, so the correct answer is that concrete5 is not compatible with a stock version of mysql that is 5.7.5 or above, as they ( mysql) changed it so it's SQL99 compliant by default.
so, either use mysql version lower than 5.7.5, or tweak the mysql config by adding this line:
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
to
/etc/mysql/mysql.conf.d/mysqld.cnf
( or /etc/mysql.cnf or wherever your hosting server puts it )
more details here:
http://craftcms.stackexchange.com/questions/12084/getting-this-sql-...
so, either use mysql version lower than 5.7.5, or tweak the mysql config by adding this line:
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
to
/etc/mysql/mysql.conf.d/mysqld.cnf
( or /etc/mysql.cnf or wherever your hosting server puts it )
more details here:
http://craftcms.stackexchange.com/questions/12084/getting-this-sql-...
Not that it helps you, but
https://www.concrete5.org/community/forums/installation/issue-when-i...
https://www.concrete5.org/community/forums/installation/issue-when-i...