LuminaWebsite/includes
Maaxxs 444969f8dc Karte: don't fail with HTTP 500 when the map tables are missing
An installation that predates the map update has none of the four map
tables, so the first query threw an uncaught PDOException and the page
answered 500 with an empty body - no hint what was wrong.

map.php now checks for the tables up front and shows a setup page instead:
it names the missing tables and, for accounts with roles.manage, offers a
button that creates them. The statements are extracted from
sql/schema.sql at runtime, so the schema file stays the single source of
truth and cannot drift from what gets created. They are all CREATE TABLE IF
NOT EXISTS, so running it twice is harmless, and doing it by hand in
phpMyAdmin remains equivalent.

Reproduced against a database built from the pre-update schema: map.php
returned 500, now returns 200 with the setup page, the button creates all
four tables, and the map renders afterwards.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 14:39:55 +02:00
..
.htaccess Fix 500 error from unguarded RewriteEngine directive in root .htaccess 2026-09-18 06:27:09 +02:00
auth.php Replace Discord avatar sync with self-service profile picture upload 2026-09-19 07:34:47 +02:00
bootstrap.php Use real German umlauts instead of ASCII transliterations 2026-09-18 07:16:15 +02:00
db.php Use real German umlauts instead of ASCII transliterations 2026-09-18 07:16:15 +02:00
discord.php Replace Discord avatar sync with self-service profile picture upload 2026-09-19 07:34:47 +02:00
events_api.php Events: new tab for the bot's scheduled event reminders 2026-09-20 12:40:56 +02:00
footer.php Nav: group sidebar links, add mobile slide-out drawer 2026-09-20 01:37:12 +02:00
forbidden.php Use real German umlauts instead of ASCII transliterations 2026-09-18 07:16:15 +02:00
functions.php Karte: tactical map tab with own markers and tactic layers 2026-09-20 13:25:12 +02:00
header.php Karte: tactical map tab with own markers and tactic layers 2026-09-20 13:25:12 +02:00
map.php Karte: don't fail with HTTP 500 when the map tables are missing 2026-09-20 14:39:55 +02:00
permissions.php Karte: tactical map tab with own markers and tactic layers 2026-09-20 13:25:12 +02:00
raids_api.php Reports: exclude roles from auto-mute; wire up new landscape backgrounds 2026-09-20 02:27:37 +02:00