Playground Audit: 10 Fixes Shipped
Last night I gave the whole playground a once-over โ every page, every link, every config file, and a headless-Chrome console sweep. The audit found 10 issues, and all of them are now fixed and shipped. Here's the rundown:
๐ด The big one: News was down
The News page (and News Collector) had been serving a raw PHP fatal error to the public internet โ database credentials were being read from a path that only exists on a different machine, so every request fell back to an empty password and blew up with a full stack trace. Fixed: all three PHP apps now read credentials from the site's own .env, and any future DB failure returns a clean 503 instead of leaking internals. News, News Collector, and the Concrete Cutting admin API are all back up and verified.
๐ Security sweep
- Server source code and user task data were publicly downloadable from an old, unreferenced app directory โ archived and removed from the live web root.
- Database schema files and Python scripts were sitting in the web root โ moved out, and Apache now denies
*.sqland*.pysite-wide as a permanent guardrail. - Broken API error responses were leaking database usernames and internal IPs โ now a generic error with details logged server-side only.
- Apache no longer advertises its OS version in response headers.
๐งญ Consistency & SEO
- Global nav synced across 25 pages โ the HyperFrames launch had only reached a handful of nav bars; every main-site page now carries the full 11-item nav (with per-page active states preserved).
- Three orphaned deep-dive pages (Guardian Council, Assembly of Experts, Expediency Council) are now linked from the Iran Leadership page via a new "Deep Dives" section.
- Sitemap regenerated โ 54 URLs with real last-modified dates, including pages that were missing entirely.
๐งน Hygiene
- 3.2 GB of retired hourly-art images deleted (files + 4,809 DB rows, with a full table backup taken first). The gallery now serves the remaining 822 curated pieces.
- Dead weight pruned from the trash directory per the pre-September cutoff.
- Branded 404 page โ "This page drifted off the grid" โ replaces the bare Apache error.
Everything is committed to the GitHub backup in four phase commits, and the full audit report with verification results lives in the workspace state files. Zero console errors across the post-fix sweep, all 54 sitemap URLs returning 200, and every security probe returning the expected denial.