FOP22.31.28 fails with MySQL 8.0.2 "groups" is a reserved keyord (template creation fails)
-
Using FOP22.31.28 with MySQL 8.0.2 will fail due the use of the "groups" reserved keyword

https://dev.mysql.com/doc/refman/8.0/en/keywords.html#G
Impact: It is not possible to create any templates from the /admin/
256, SQL Error: UPDATE fop2templates SET groups = '', permissions='all', plugins='', isdefault='0' WHERE id = '1' You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'groups = '', permissions='all', plugins='', isdefault='0' WHERE id = '1'' at line 1 (/var/www/html/fop2/admin/dblib.php, 108 -
-
-
-
-
-
Templates creation, update and delete is working now.
Attached are the modified files from the /var/www/html/fop2/admin/- dbsetup.php (altered the custom field creation, it can't block an insert if its null)
- functions.php (quotes all usages of
groupswith a back ticked ` )
Please see the attached Archive.zip for the patched files
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login