Subject: Re: Upgrade issues — fix available
Hi Jeff,
Thanks for the detailed error logs — that made this easy to diagnose. There are two issues, both caused by MySQL 8.0's strict mode which your Ubuntu 24.04 server uses by default.
"Expression #22 of SELECT list is not in GROUP BY clause" — MySQL 8.0 enables ONLY_FULL_GROUP_BY by default, which rejects the legacy query pattern used in the Situation, New, Units, Fac's, and Config pages. Older MySQL versions allowed this.
"Incorrect DATETIME value: ''" — MySQL 8.0 strict mode also rejects empty strings for date/time columns. The legacy code uses '' instead of NULL in some places.
Both of these break pages that work fine on MySQL 5.7.
I just pushed a fix that sets a compatible SQL mode at connection time. To apply it:
Pull the latest code:
cd /var/www/html/tickets
git pull origin main
Or download just the two fixed files:
cd /var/www/html/tickets
curl -L https://raw.githubusercontent.com/openises/tickets/main/incs/db.inc.php -o incs/db.inc.php
curl -L https://raw.githubusercontent.com/openises/tickets/main/incs/functions.inc.php -o incs/functions.inc.php
After that, refresh the page — Situation, New, Units, Fac's, Config, and Mobile should all work.
The "Unknown column 'key'" error in diagnose.php is also fixed in this update. The settings table uses name as the column name, not key. The updated diagnose.php handles both.
Your diagnostic shows regions, region_types, and road_info are missing. After applying the fix above, run the installer in Upgrade mode:
Select Upgrade and click Do It. This will create the missing tables without affecting your existing data.
Let me know if you hit any other issues!
Best,
Eric
--
You received this message because you are subscribed to the Google Groups "Open Source CAD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-source-c...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/open-source-cad/891bd540-87e5-48c7-bc89-e215b40bc227n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/open-source-cad/CAJLaYFVrCXVBw3Y%3DD7rhgz%3Dn-krppcZX85BezEZd6TKT_v9UMw%40mail.gmail.com.