I am using Ajax scroller on my new theme thats why i had to include some codes in my index page as well as wp-blog-header.php page. After few changes this is how my wp-blog-header pge looks like
if ( !isset($wp_did_header) ) {
$wp_did_header = true;
require_once( dirname(__FILE__) . '/wp-load.php' );
wp();
require_once( ABSPATH . WPINC . '/template-loader.php' );
header("HTTP/1.1 200 OK");}
this code was really helpfull and saved my time specially last line of the code ( header("HTTP/1.1 200 OK"); ). But when i use this code it gives error on footer side as:
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/xxxx/blog/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php:221) in /home/xxxx/public_html/xxxx/blog/wp-blog-header.php on line 11
also if i disable that plugin it gives this error :
Warning: Cannot modify header information - headers already sent by (output started at /home/xxxx/public_html/xxx/blog/wp-content/themes/z/header.php:5) in /home/xxxx/public_html/xxxx/blog/wp-blog-header.php on line 11
When i remove it or change its line number error goes but theme doesnt work as expected.
And i am using this code in my theme to call that function
<?php require('/home/xxx/public_html/xxx/blog/wp-blog-header.php'); ?>
Is there any way to fix this issue? Thanks