Recent Topics

a warning message after submit the commit.

Started by on Mar 09, 2005 – Contents updated: Mar 09, 2005

Mar 09, 2005 12:19    

Because recently my blog system is crash in Win2003+IIS.
I had migrated the b2 to Linux platform.

Linux:Fedora Core 3
Apache:2.0.53 + MySQL 4.1 + PHP 4.3.10
b2 evolution 0.9.11

I can read and write the blog content normally.
But, when I reply a comment, the blog appears a warning message:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/conf/_config.php:1) in /var/www/html/blogs/htsrv/comment_post.php on line 205

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/conf/_config.php:1) in /var/www/html/blogs/htsrv/comment_post.php on line 206

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/conf/_config.php:1) in /var/www/html/blogs/htsrv/comment_post.php on line 207

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/conf/_config.php:1) in /var/www/html/blogs/htsrv/comment_post.php on line 208

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/blogs/conf/_config.php:1) in /var/www/html/blogs/htsrv/comment_post.php on line 212

-----------------------------------------------------------
check the comment_post.php line 205~

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-cache, must-revalidate');
header('Pragma: no-cache');

param( 'redirect_to', 'string' );
$location = (!empty($redirect_to)) ? $redirect_to : $_SERVER['HTTP_REFERER']; header( 'Refresh:0;url='.str_replace('&', '&', $location) );

What's the problem?
how can I fix the problem?

Mar 09, 2005 12:51

Make sure there is no whitespace or blank lines before the opening <?php or after the closing ?> in those files.

John


Form is loading...

Open Source CMS – This forum is powered by b2evolution CMS, a complete engine for your website.