Mambohacks had headers sent error??
Welcome, Guest . Please login or register .
January 07, 2009, 11:49:04 PM
Pages: [1 ]
Author
Topic: Mambohacks had headers sent error?? (Read 3620 times)
Scott
Newbie
Karma: +0/-0
Offline
Posts: 13
Cowboy, Tried to access the forum this morning to find that the site was displaying headers already sent errors. Looked a lot like the problem I was having. Can you share how you fixed it?? Thanks Scott
Logged
cowboy
My hosting provider upgraded PHP to 4.4.0.
You need to upgrade your SMF.
http://www.simplemachines.org/community/index.php?topic=41955.0 It's just simple... edit Subs.php and look for
= &mysql_query
remove &
= mysql_query
Also....
edit mambo's index.php, look fot header(... and add the condition "if (!headers_sent())"
if (!headers_sent()) {
header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' );
}
« Last Edit: July 25, 2005, 10:50:34 AM by cowboy »
Logged
Scott
Newbie
Karma: +0/-0
Offline
Posts: 13
Cowboy, I've done the upgrade. I'll give the fix another try. Fingers crossed!! Thanks Scott
Logged
Scott
Newbie
Karma: +0/-0
Offline
Posts: 13
Nope, no good... back to the drawing board. This time a whole heap of different login errors and one headers sent error from SMF
Scott
Logged
Pages: [1 ]