File Browser - 500 Server Error

Permalink
For certain ajax requests, the server is producing 500 errors with this additional error:
<b>Error:</b> HTTPd: malformed header from script /index.php

I discovered this while trying to troubleshoot the file browser, which would not allow me to search or navigate pages. I didn't make any changes to the concrete code and I'm using 3.1.1.

Any ideas what sort of server configuration might cause this? I believe it's affecting a lot of other functionality as well.

Also, concrete does not fail gracefully in this situation but will appear to perpetually be loading (ie it never gets past the ajax loader). Refreshing the page and trying again just results in the same.

Here's the concrete url I have been testing with:
index.php/tools/required/files/search_results

 
walkerfx replied on at Permalink Reply
I isolated the problem and as far as I can tell it appears to be some obscure bug with the output buffer in PHP running as CGI.

If I insert an echo statement that outputs a non-whitespace character at the beginning of search_results.php, the 500 error goes away. To be sure this doesn't interfere with the script, I added this statement:
echo "<!-- -->";

Very bizarre.

I searched everywhere for any mention of this bug online and found nothing. It's so obscure, I'm not even sure how to report it.

Unfortunately this a horrible hack and I'm still hoping to find a real solution.