Author |
Message |
Countryman98
Hangin' Around
Joined: Feb 24, 2005
Posts: 30
|
Posted:
Thu Sep 29, 2005 7:06 pm |
|
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 |
|
|
|
|
djmaze
Subject Matter Expert
Joined: May 15, 2004
Posts: 727
Location: http://tinyurl.com/5z8dmv
|
Posted:
Thu Sep 29, 2005 7:33 pm |
|
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() |
|
|
|
|
Countryman98
|
Posted:
Thu Sep 29, 2005 7:42 pm |
|
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
|
Posted:
Thu Sep 29, 2005 7:44 pm |
|
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: 17088
|
Posted:
Thu Sep 29, 2005 10:51 pm |
|
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 |
|
|
|
Countryman98
|
Posted:
Thu Sep 29, 2005 11:33 pm |
|
thanks Raven seems to have worked a treat with the errors |
|
|
|
|
Raven
|
Posted:
Fri Sep 30, 2005 12:19 am |
|
|
|
|
Countryman98
|
Posted:
Fri Sep 30, 2005 2:03 am |
|
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
|
Posted:
Fri Sep 30, 2005 2:24 am |
|
Verify that you have GD Library 2 installed. Run phpinfo() and search for gd |
|
|
|
|
|