We had an issue, and have restored back to a working version. However now on any of the subpanels, if we click on any of the headers to sort by the column, it results in an unexpected error and all of the data on the UI within the subpanel disappears. Refresh - data’s back, but sorting results in error every time.
Only error I see is
MySQL error 1250: Table ‘svcs_servicenotes’ from one of the SELECTs cannot be used in global ORDER clause
Query seems to work if I strip it out and run it on my own though. Does seem to be wrapped in paranths which it doesn’t like?
I don’t think it has to do with your restore. This issue just popped up for myself and seems like a bunch of other people this morning without doing any upgrades or restores. I think MySQL version maybe got updated in Cpanel or something (my guess). The issue is the ORDERBY clause in the MySQL. for example ORDERBY contacts.firstname where contacts is the name of the table. The documentation for this error in MySQL says not to include the table name and only include ORDERBY firstname. There is another thread for this just opened and I also opened an issue on Github.
(SELECT table1.columna, table2.columnA, from table1 inner join table2 on blahblah)
ORDER BY table1.columna
if you run the query in MySQL workbench on a non 8.0.31 version - it errors… remove the parenths and it’s fine… Hoping to dig a bit into the optimization switches and see if I can shut if off… If anyone else gets there first - please advise!
Just a bump on this one. Did anyone have any luck finding a fix for this? PS - I did add a bug on github and someone from MySQL added this as a bug in there system too. Apparently, they made some changes in 8.0.31 to handle parenthesis in the query better, which unfortunately caused this issue.
Nothing I’ve seen yet, hoping to get some time to dig into it this week at some point and see. I was hoping someone would have a MySQL optimization Switch available to revert the changes they made to parenthesized query optimizations… but nothing yet.