- b2evolution CMS Support Forums
- b2evolution Support
- General Support
- 2.4.2 - header warning after modifying conf/_advanced.php
1 skoehn Aug 27, 2008 18:33
My b2evolution Version: Not Entered
I edited my /conf/_advanced.php file because I wanted to increase my file upload size. Then I changed the file size limit on my Global Settings in admin.
After doing so, I get these errors on the blog page:
Warning: Cannot modify header information - headers already sent by (output started at /home/slkra2/public_html/mrkoehn/preap/conf/_advanced.php:1211) in /home/slkra2/public_html/mrkoehn/preap/inc/sessions/model/_session.class.php on line 219
And on the admin side I get the following and it will not allow me to log in:
Warning: Cannot modify header information - headers already sent by (output started at /home/slkra2/public_html/mrkoehn/preap/conf/_advanced.php:1211) in /home/slkra2/public_html/mrkoehn/preap/inc/sessions/model/_session.class.php on line 219
Cannot modify header information - headers already sent by (output started at /home/slkra2/public_html/mrkoehn/preap/conf/_advanced.php:1211) in /home/slkra2/public_html/mrkoehn/preap/inc/_core/_template.funcs.php on line 146
Warning: Cannot modify header information - headers already sent by (output started at /home/slkra2/public_html/mrkoehn/preap/conf/_advanced.php:1211) in /home/slkra2/public_html/mrkoehn/preap/inc/_core/_template.funcs.php on line 147
Warning: Cannot modify header information - headers already sent by (output started at /home/slkra2/public_html/mrkoehn/preap/conf/_advanced.php:1211) in /home/slkra2/public_html/mrkoehn/preap/inc/_core/_template.funcs.php on line 148
Warning: Cannot modify header information - headers already sent by (output started at /home/slkra2/public_html/mrkoehn/preap/conf/_advanced.php:1211) in /home/slkra2/public_html/mrkoehn/preap/inc/_core/_template.funcs.php on line 149
Warning: Cannot modify header information - headers already sent by (output started at /home/slkra2/public_html/mrkoehn/preap/conf/_advanced.php:1211) in /home/slkra2/public_html/mrkoehn/preap/skins_adm/login/_html_header.inc.php on line 29I set the _advanced.php file back to it's original state, but I'm not sure what I've done or how to fix it since I can't get into admin.
3 skoehn Aug 28, 2008 15:23
Thank you thank you!
There were two extra lines after my closing php, and removing those did the trick!
Hi skoehn,
This can happen if you edit the php files with an HTML editor or an office program. Try a plain text editor like notepad, Notepad++, Crymson editor or an editor specific for PHP files.
The error occurs if there is whitespace (a space or a tab or a linefeed) before the first <?php or after the closing ?> in the file.
Good luck