Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)
Author Message
Chadley
New Member
New Member



Joined: Dec 31, 2004
Posts: 2

PostPosted: Fri Dec 31, 2004 3:04 pm Reply with quote

Warning: Cannot modify header information - headers already sent by (output started at /home2/arwic/public_html/chadley/config.php:123) in /home2/arwic/public_html/chadley/admin/modules/sentinel/ABMainSave.php on line 62

Can anyone say this has been a problem while trying to save settings?
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Fri Dec 31, 2004 3:43 pm Reply with quote

[ Only registered users can see links on this board! Get registered or login! ]

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
Chadley







PostPosted: Fri Dec 31, 2004 4:16 pm Reply with quote

I tried each method, and still get the same error?
 
sixonetonoffun







PostPosted: Fri Dec 31, 2004 4:23 pm Reply with quote

Try this open mainfile.php:
Find:
Code:


if ($phpver >= '4.0.4pl1' && strstr($_SERVER["HTTP_USER_AGENT"],'compatible')) {
    if (extension_loaded('zlib')) {
   ob_end_clean();
   ob_start('ob_gzhandler');
    }
} else if ($phpver > '4.0') {
    if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
   if (extension_loaded('zlib')) {
       $do_gzip_compress = TRUE;
       ob_start();
       ob_implicit_flush(0);
       //header('Content-Encoding: gzip');
   }
    }
}


Replace:
Code:


ini_set("output_buffering","1");
$phpver = phpversion();
if ($phpver >= '4.0.4pl1') {
   ob_start('ob_gzhandler');
} else if ($phpver > '4.0') {
    if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
   if (extension_loaded('zlib')) {
       $do_gzip_compress = TRUE;
       ob_start();
       ob_implicit_flush(0);
       //header('Content-Encoding: gzip');
   }
    }
}
 
blackplague
Hangin' Around



Joined: Oct 23, 2004
Posts: 25

PostPosted: Sat Jan 01, 2005 4:13 am Reply with quote

i also get this error
Warning: Cannot modify header information - headers already sent by (output started at /home/thebakm/public_html/nuken/config.php:121) in /home/thebakm/public_html/nuken/admin/modules/blocks.php on line 404
and i tried the troubleshooting and put in that code in the mainfile.php but i still get the header problem.is there anything else i could do?
 
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
crypto
Worker
Worker



Joined: Aug 02, 2004
Posts: 165

PostPosted: Sat Jan 01, 2005 9:37 am Reply with quote

blackplague wrote:
i also get this error
Warning: Cannot modify header information - headers already sent by (output started at?

I'm not sure that does this help but you may try to add following text to .htaccess -file.
Code:
PHP_FLAG output_buffering on

You can also modify these settings in php.ini file.
Quote:
; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit. You can enable output buffering during runtime by calling the output
; buffering functions. You can also enable output buffering for all files $
; setting this directive to On. If you wish to limit the size of the buffer
; to a certain size - you can use a maximum number of bytes instead of 'On'$
; a value for this directive (e.g., output_buffering=4096).
 
View user's profile Send private message
sixonetonoffun







PostPosted: Sat Jan 01, 2005 10:06 am Reply with quote

If all else fails contact your host they probably need to set a value for the size of the buffer as crypto points out. Sometimes I think you can do that in .htaccess but that would depend on the server permissions and in some cases may not be allowed.

In .htaccess you could also try
PHP_VALUE output_buffering On
or
PHP_VALUE output_buffering=4096
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel(tm)

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©