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.
Tags: ,

About author

Vittorio Pavesi

4comments

  1. Anonymous
    10:19 AM

    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!

  2. Anonymous
    3:26 AM

    Works great. Thanks.

  3. 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.

  4. 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.

Post a Comment