Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Countryman98
Hangin' Around


Joined: Feb 24, 2005
Posts: 30

PostPosted: Thu Sep 29, 2005 7:06 pm Reply with quote

Hi all,

Can anyone tell me whats causing these errors to show in my website errorlog. Ive hunted and cant seem to find the problem?

This error is occuring over and over and has only started in the last couple of days.. GRRRRHHHH

[30-Sep-2005 05:57:53] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 239
[30-Sep-2005 05:57:53] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 240
[30-Sep-2005 05:57:53] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 491
[30-Sep-2005 05:57:53] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 493
[30-Sep-2005 05:57:53] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 494
[30-Sep-2005 06:12:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 239
[30-Sep-2005 06:12:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 240
[30-Sep-2005 06:12:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/modules/Forums/profile.php on line 109
[30-Sep-2005 06:13:07] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 239
[30-Sep-2005 06:13:07] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 240
[30-Sep-2005 06:13:07] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 491
[30-Sep-2005 06:13:07] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 493
[30-Sep-2005 06:13:07] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 494
[30-Sep-2005 06:13:19] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 239
[30-Sep-2005 06:13:19] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 240
[30-Sep-2005 06:13:19] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 491
[30-Sep-2005 06:13:19] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 493
[30-Sep-2005 06:13:19] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 494
[30-Sep-2005 06:13:41] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 239
[30-Sep-2005 06:13:41] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 240
[30-Sep-2005 06:13:41] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 491
[30-Sep-2005 06:13:41] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 493
[30-Sep-2005 06:13:41] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 494
[30-Sep-2005 06:13:53] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 239
[30-Sep-2005 06:13:53] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 240
[30-Sep-2005 06:13:53] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 491
[30-Sep-2005 06:13:53] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 493
[30-Sep-2005 06:13:53] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/page_header.php on line 494
[30-Sep-2005 06:14:04] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/country/public_html/header.php:33) in /home/country/public_html/includes/sessions.php on line 239
 
View user's profile Send private message
djmaze
Subject Matter Expert


Joined: May 15, 2004
Posts: 719
Location: http://tinyurl.com/5z8dmv

PostPosted: Thu Sep 29, 2005 7:33 pm Reply with quote

I'm sorry but this is an issue with PHP-Nuke and how some modules are used/called like phpBB which uses sessions.php

The issue is caused by non-gzipped pages. These kind of pages occure due to several things:
- client doesn't accept gzip
- gzip/zlib is turned off on the server

There are several ways to solve this:

- add ob_start() in mainfile.php
- fix the code instead of getting around it with a ob_start()
 
View user's profile Send private message Visit poster's website
Countryman98
PostPosted: Thu Sep 29, 2005 7:42 pm Reply with quote

Thanks for your help and fast help at that!

1 more question. Where in mainfile.php do i add ob_start()?

I tried adding it at the top and got an error?
 
Countryman98
PostPosted: Thu Sep 29, 2005 7:44 pm Reply with quote

another quick note. I found this in mainfile is this something to do with it :

$phpver = phpversion();
if ($phpver < '4.1.0') {
$_GET = $HTTP_GET_VARS;
$_POST = $HTTP_POST_VARS;
$_SERVER = $HTTP_SERVER_VARS;
$_FILES = $HTTP_POST_FILES;
$_SESSION = $HTTP_SESSION_VARS;
$_COOKIE = $HTTP_COOKIE_VARS;
$_REQUEST = $_GET || $_POST;
}
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($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) {
if (extension_loaded('zlib')) {
$do_gzip_compress = TRUE;
ob_start(array('ob_gzhandler',5));
ob_implicit_flush(0);
header('Content-Encoding: gzip');
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Thu Sep 29, 2005 10:51 pm Reply with quote

RTM A simple search of the forums will reveal a plethora of posts on this subject. It is handled here also Only registered users can see links on this board! Get registered or login!


Last edited by Raven on Fri Sep 30, 2005 12:18 am; edited 1 time in total 
View user's profile Send private message
Countryman98
PostPosted: Thu Sep 29, 2005 11:33 pm Reply with quote

thanks Raven seems to have worked a treat with the errors Smile
 
Raven
PostPosted: Fri Sep 30, 2005 12:19 am Reply with quote

Cheers RavensScripts
 
Countryman98
PostPosted: Fri Sep 30, 2005 2:03 am Reply with quote

Another one for you Raven, Any ideas whats causing this one?

[30-Sep-2005 19:01:56] PHP Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/country/public_html/mainfile.php on line 1364
 
Raven
PostPosted: Fri Sep 30, 2005 2:24 am Reply with quote

Verify that you have GD Library 2 installed. Run phpinfo() and search for gd
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©