phpmyadmin - Cannot modify header information


After installing PHPMyAdmin on a new IIS Server with PHP, I always got this error during authentication:
Warning: Cannot modify header information - headers already sent by...
Searching in Google produce many results related to blank lines or white spaces into PHP files but I dind't believe PHPMyAdmin developers made this stupid error... Infact the problem was related to PHP Configuration.
Open php.ini file and look for output_buffering configuration variable, it must be set to output_buffering = On.
Share on Google Plus

About Vittorio Pavesi

    Blogger Comment
    Facebook Comment

4 commenti:

Anonymous said...

I must thank you. Had the same problem. Googled around and scratched my head. Was just about to explore my apache- and php-config again when I read you post. It saved me a lot of time.

So again, thank you!

Anonymous said...

Works great. Thanks.

Unknown said...

Thanks for the info, this worked for me as well in a dev VM environment, one of my extensions set the buffer limit to 4096, setting to "on", to keep it unlimited corrected the phpMyAdmin header problem.

Unknown said...

This worked for me as well. One of my installations set the buffer limit to 4096 and caused the phpMyAdmin header issue. Restoring this setting to "ON" corrected it in my development VM.