[solved] Warning: Cannot modify header information

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

[solved] Warning: Cannot modify header information

Post 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");
Last edited by Anonymous on Tue Jun 24, 2008 4:12 pm, edited 1 time in total.
alby

Re: Warning: Cannot modify header information

Post 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
Zack
Forum Members
Forum Members
Posts: 24
Joined: Fri Nov 16, 2007 2:31 pm

Re: Warning: Cannot modify header information

Post 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
alby

Re: Warning: Cannot modify header information

Post by alby »

Zack wrote: I'm using cms 1.2.2.
UPGRADE first your version!

Alby
Zack
Forum Members
Forum Members
Posts: 24
Joined: Fri Nov 16, 2007 2:31 pm

Re: Warning: Cannot modify header information

Post 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.
alby

Re: Warning: Cannot modify header information

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Warning: Cannot modify header information

Post 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 );
Zack
Forum Members
Forum Members
Posts: 24
Joined: Fri Nov 16, 2007 2:31 pm

Re: [solved] Warning: Cannot modify header information

Post 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
Zack
Forum Members
Forum Members
Posts: 24
Joined: Fri Nov 16, 2007 2:31 pm

Re: [solved] Warning: Cannot modify header information

Post 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.
Zack
Forum Members
Forum Members
Posts: 24
Joined: Fri Nov 16, 2007 2:31 pm

Re: [solved] Warning: Cannot modify header information

Post 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?
alby

Re: [solved] Warning: Cannot modify header information

Post 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
Locked

Return to “[locked] CMSMS MLE fork”