Debugging on Prod
A developer encountered a production-only 500 error after using GitHub Copilot to refactor code for a blog redesign. The root cause was a PHP `empty()` function treating `0` as empty, causing an invalid HTTP header that PHP-FPM rejected (though Apache tolerated it). The fix was removing the faulty condition. The experience reinforced caution around trusting AI-generated code.