Weird: response hdr 500 Internal error, but pages render anyway
-
I’ve never seen this before, but I’m running WP 3.1 with multi-site enabled. When I access the site, everything looks normal, but if I examine the response header of the initial page access, the response header is actually 500 Internal Server Error, even though the body of the response contains the correct page code!
Firefox 4 and Chrome both ignore the 500 response code and render the page without complaint! All the secondary requests triggered by the page (to load CSS, JS, images etc etc) all have correct response codes (200).
I can examine the headers with dev tools from within both Chrome and FF and they show the 500 code, even though they’re showing the page content. If I use curl, I also get the content and 500 response code header. When I attempt to use the W3C validator service, it complains (as I’d think all the clients should!).
Anyone else seen this behaviour? Any idea how I can go about tracking it down – there in WP the header is being set (so I can figure out why). Is it possible that is a default and it just isn’t getting updated to 200 before the page is output or something?
PHP 5.3.x, Apache 2, Ubuntu, pretty standard setup.
Thanks!
-David.
- The topic ‘Weird: response hdr 500 Internal error, but pages render anyway’ is closed to new replies.