modxcms / fred

The friendly front-end editor for visual, drag-and-drop content building in MODX CMS
https://fred.modx.com
MIT License
59 stars 25 forks source link

"rank" in MySQL 8 is a reserved keyword and causes empty elements and blueprint sections if used. #387

Closed muzzwood closed 4 months ago

muzzwood commented 3 years ago

Just moved a client's website to a new server with MySQL 8. Found that on the front end both elements and blueprint lists were not populating.

Turns out it's because rank is the value for these system settings:

Adding backticks around the value in the system setting fixes it. `rank` However it would be great if the queries themselves could account for this.