Hello,
I had an old version of Modx running successfully for a while. All of a sudden I started getting the below error when trying to log in to the manager (www.koggull.com/manager). I decided it was time to upgrade (thought the error might be connected with that). The upgrade seems to have been successful, my website works, but when I try to log in to the manager it is the same error again
Warning: Cannot modify header information - headers already sent by (output started at /home/koggull/public_html/manager/includes/extenders/dbapi.mysql.class.inc.php:489) in /home/koggull/public_html/manager/index.php on line 144
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/koggull/public_html/manager/includes/extenders/dbapi.mysql.class.inc.php:489) in /home/koggull/public_html/manager/includes/config.inc.php on line 59
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/koggull/public_html/manager/includes/extenders/dbapi.mysql.class.inc.php:489) in /home/koggull/public_html/manager/includes/config.inc.php on line 59
Warning: Cannot modify header information - headers already sent by (output started at /home/koggull/public_html/manager/includes/extenders/dbapi.mysql.class.inc.php:489) in /home/koggull/public_html/manager/includes/config.inc.php on line 73
I hope someone can help me out here, any ideas? I haven’t made any modifications apart for an "aqua" manager skin. There had been no modifications prior to the error unless my service provider did it (Siteground). Here is the server info taken from Cpanel:
Apache version 1.3.37 (Unix)
PHP version 5.2.5
MySQL version 4.1.22-standard-log
Architecture i686
Operating system Linux (pretty sure it’s RedHat)
Here is something I found on the Siteground support site:
PHP Error: "Cannot modify header information"
This is a common PHP error which is usually caused by:
- White spaces before or after the PHP start "<?php" or end "?>" tags;
- Various problems with the header() statement. Check carefully the code before and at the line of this statement.
This error might be hard to troubleshoot in cases where different files are included and all of them have to be carefully expected. An easy workaround is to place a php.ini file containing the following directive:
output_buffering = On
This php.ini file has to be placed in the directory where the error occurs.
I created a php.ini file like is described and put it in the manager directory, then the errors no longer appear when the page first loads, but the error comes as a javascript prompt when I hit the login button. If I close the error window and hit reload, I’m logged in to the manager with this workaround. However I’m not able to do that unless I use the php.ini file in the manager folder.
Regards,
- Bjarki