Forum
Perch content custom and Invalid query: SQLSTATE[42000]
Hi,
Im trying to list content from subpages with perch content custom. This is my code:
<?php perch_content_custom('Intro', array(
'page'=>'/kundereferanser-oversikt.php/*',
'template'=>'kundereferanse-liste.html',
));
?>
It wont list any content from those subpages. I have enabled debug message and get this error: Invalid query: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'tbl.regionID' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
What's the query you get before that error? I think this is something we already have fixed in dev, but it would be good to confirm.
Debug Message
Thanks!
Did you figure out the error? We are trying to list content from several under-pages.
Yes, we figured it out.
And? How do we fix this so we can list content from the pages?
The fix will be in v3.0.1
And when will this version release? We need this function to work this week. Its an essential function in our project.
It's most likely to be today.
Is the Runway v3.0.1 update coming soon?
Yes, it should be today.
This is now available.
Thanks!
Let us know if that's fixed it for you.
It fixed the listing problem, thanks! Looking good as well the new Runway version!