Page 1 of 1

[solved] Warning: Cannot modify header information

Posted: Thu Jun 19, 2008 5:03 am
by Dr.CSS
Installed MLE 1.2.5 and everything work ok, well flag is looking for wrong home page in second lang., trying traditional chinese...

Read and followed all the instructions/video and the downloadable Doc...

Current PHP Version: 4.4.4
Maximum Post Size: 64M
Maximum Upload Size: 64M
PHP Memory Limit: 64M
MySQL Server Version: 4.1.22-standard
Server Software: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b


But the back end is throwing this in the head,

Warning: Cannot modify header information - headers already sent by (output started at /home/isp223/public_html/config_lang.php:87) in /home/isp223/public_html/include.php on line 222

= $mlelocale_cms = get_preference($gCms->variables['user_id'],'default_cms_language');

Warning: Cannot modify header information - headers already sent by (output started at /home/isp223/public_html/config_lang.php:87) in /home/isp223/public_html/lib/classes/class.admintheme.inc.php on line 161

= header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

Warning: Cannot modify header information - headers already sent by (output started at /home/isp223/public_html/config_lang.php:87) in /home/isp223/public_html/lib/classes/class.admintheme.inc.php on line 164

= header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

Warning: Cannot modify header information - headers already sent by (output started at /home/isp223/public_html/config_lang.php:87) in /home/isp223/public_html/lib/classes/class.admintheme.inc.php on line 167

= header("Cache-Control: no-store, no-cache, must-revalidate");

Warning: Cannot modify header information - headers already sent by (output started at /home/isp223/public_html/config_lang.php:87) in /home/isp223/public_html/lib/classes/class.admintheme.inc.php on line 168

= header("Cache-Control: post-check=0, pre-check=0", false);

Warning: Cannot modify header information - headers already sent by (output started at /home/isp223/public_html/config_lang.php:87) in /home/isp223/public_html/lib/classes/class.admintheme.inc.php on line 171

= header("Pragma: no-cache");

Warning: Cannot modify header information - headers already sent by (output started at /home/isp223/public_html/config_lang.php:87) in /home/isp223/public_html/lib/classes/class.admintheme.inc.php on line 176

= header("Content-Type: text/html; charset=$encoding");

Re: Warning: Cannot modify header information

Posted: Thu Jun 19, 2008 8:25 am
by alby
mark wrote: Installed MLE 1.2.5 and everything work ok, well flag is looking for wrong home page in second lang., trying traditional chinese...
Mark, check your config_lang.php to row 87 (probably here born your error), strange that you don't have error in frontpage

Alby

Re: Warning: Cannot modify header information

Posted: Tue Jun 24, 2008 1:23 pm
by Zack
Mark, did you find a solution to your problem. I've having the same issue when I log into Admin. But it seems to be inconsistent. On some days it is fine and other days I get these warnings. When this happens, some of the styles on my site go a little wonky. I'm using cms 1.2.2.

thanks

Re: Warning: Cannot modify header information

Posted: Tue Jun 24, 2008 1:50 pm
by alby
Zack wrote: I'm using cms 1.2.2.
UPGRADE first your version!

Alby

Re: Warning: Cannot modify header information

Posted: Tue Jun 24, 2008 3:24 pm
by Zack
Thanks alby,

I've another site running on 1.2.2 but it doesn't seem to have the same problem. There must be something other than the version itself.

Re: Warning: Cannot modify header information

Posted: Tue Jun 24, 2008 3:41 pm
by alby
Zack wrote: I've another site running on 1.2.2 but it doesn't seem to have the same problem. There must be something other than the version itself.
In case of Mark probably a not "clean" config_lang.php (strange chars, empty line after end of ?>, ...)
you must upgrade for security concern not for this error

Alby

Re: Warning: Cannot modify header information

Posted: Tue Jun 24, 2008 4:11 pm
by Dr.CSS
I'm sorry I should have come back and [solved] this, hmmm thought I did, but yes my problem was too many spaces after the last lang array the last );

Re: [solved] Warning: Cannot modify header information

Posted: Tue Jun 24, 2008 4:21 pm
by Zack
Thanks alby, I'll upgrade as soon as i get some free time.  In the meantime can you or anyone else tell me why should I be getting this error in Admin:

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c01/h03/mnt/5622/domains/html/include.php:246) in /nfs/c01/h03/mnt/5622/domains/html/lib/classes/class.admintheme.inc.php on line 161

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c01/h03/mnt/5622/domains/html/include.php:246) in /nfs/c01/h03/mnt/5622/domains/html/lib/classes/class.admintheme.inc.php on line 164

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c01/h03/mnt/5622/domains/html/include.php:246) in /nfs/c01/h03/mnt/5622/domains/html/lib/classes/class.admintheme.inc.php on line 167

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c01/h03/mnt/5622/domains/html/include.php:246) in /nfs/c01/h03/mnt/5622/domains/html/lib/classes/class.admintheme.inc.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c01/h03/mnt/5622/domains/html/include.php:246) in /nfs/c01/h03/mnt/5622/domains/html/lib/classes/class.admintheme.inc.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c01/h03/mnt/5622/domains/html/include.php:246) in /nfs/c01/h03/mnt/5622/domains/html/lib/classes/class.admintheme.inc.php on line 176

Re: [solved] Warning: Cannot modify header information

Posted: Tue Jun 24, 2008 4:26 pm
by Zack
Hi Mark, Can you pls be more specific which file to modify and where. Php code is all Greek to me!!

thanks for you help.

Re: [solved] Warning: Cannot modify header information

Posted: Tue Jun 24, 2008 4:40 pm
by Dr.CSS

Re: [solved] Warning: Cannot modify header information

Posted: Tue Jun 24, 2008 5:36 pm
by Zack
Thanks Mark, I'm assuming that only multilingual sites have the config_lang file. If not then where can i find this file?

Re: [solved] Warning: Cannot modify header information

Posted: Tue Jun 24, 2008 7:37 pm
by alby
Zack wrote: Thanks Mark, I'm assuming that only multilingual sites have the config_lang file. If not then where can i find this file?
No MLE only has config_lang file.
Try to reupload admin folder and include.php but, maybe, you are hacked

Alby