Recent Topics

1 Nov 24, 2010 16:38    

My b2evolution Version: 3.3.3

when I try to make a post as an unknown user
gives the following error:

Warning: Cannot modify header information - headers already sent by (output started at /home/dbsoftwa/public_html/_websites/victorcamon/blogs/skins/camoncss/index.main.php:2) in /home/dbsoftwa/public_html/_websites/victorcamon/blogs/inc/_core/_template.funcs.php on line 168

Warning: Cannot modify header information - headers already sent by (output started at /home/dbsoftwa/public_html/_websites/victorcamon/blogs/skins/camoncss/index.main.php:2) in /home/dbsoftwa/public_html/_websites/victorcamon/blogs/inc/_core/_template.funcs.php on line 182

switch( $status )
{
case 301:
// This should be a permanent move redirect!
#LINE 168 header( 'HTTP/1.1 301 Moved Permanently' );
break;

case 303:
// This should be a "follow up" redirect
// Note: Also see http://de3.php.net/manual/en/function.header.php#50588 and the other comments around
header( 'HTTP/1.1 303 See Other' );
break;

case 302:
default:
header( 'HTTP/1.1 302 Found' );
}

LINE #182 header( 'Location: '.$redirect_to, true, $status ); // explictly setting the status is required for (fast)cgi

How can i resolve this warning? How can i disable warning and error reporting?

Thanks

2 Nov 24, 2010 19:13

See if there's a whitespace in the top of this file
/home/dbsoftwa/public_html/_websites/victorcamon/blogs/skins/camoncss/index.main.php

File content must start with <?php

3 Nov 02, 2014 03:46

he reads on a bit in _advanced.php:

PHP may be crashing because it doesn't have enough memory.
// The default is 8 MB (in PHP < 5.2) and 128 MB (in PHP > 5.2)
// Try uncommmenting the following line:
//ini_set( 'memory_limit', '32M' );

which I did, and all seems well. Is that a permanent fix?

4 Nov 02, 2014 16:00

It's an ok fix. If you want to do things by the book you should increase php's memory in the php.ini file though.


Form is loading...