- thinelectrons.com - http://thinelectrons.com/blog -

Feedburner Plugin

Posted By Patricia Ritsema van Eck On 9th September 2006 @ 11:41 In Thin Electrons | 2 Comments

WP BLOG LOG on Sept. 9th 2006 by PRvE

[1] Use with my WP Blog Installation Action Sheets!

CONCERNS:

  • wp-content/plugins/feedburnerplugin.php
  • wp-includes/classes.php

PROBLEM:
After installing feedburnerplugin.php on thinelectrons.com/blog the RSS and Comment feeds displayed a 200 OK Apache error page. This included the link to the feedburner feed, but it should redirect instantly for the feed to work in a feed reader.

RESOURCES:
[2] http://flagrantdisregard.com/index.php/2006/02/18/feedburner-plugin-for-wordpress-20/
[3] http://wordpress.org/support/topic/75286

SOLUTION:
Change code in: wp-includes/classes.php

Find:
function handle_404() {
global $wp_query;
// Issue a 404 if a permalink request doesn’t match any posts. Don’t
// issue a 404 if one was already issued, if the request was a search,
// or if the request was a regular query string request rather than a
// permalink request.
if ( (0 == count($wp_query->posts)) && !is_404() && !is_search() && (

$this->did_permalink || (!empty($_SERVER[’QUERY_STRING’]) && (false === strpos

($_SERVER[’REQUEST_URI’], ‘?’))) ) ) {
$wp_query->set_404();
status_header( 404 );
} elseif( is_404() != true ) {
status_header( 200 );
}
}

Change to:
function handle_404() {
global $wp_query;
// Issue a 404 if a permalink request doesn’t match any posts. Don’t
// issue a 404 if one was already issued, if the request was a search,
// or if the request was a regular query string request rather than a
// permalink request.
if ( (0 == count($wp_query->posts)) && !is_404() && !is_search() && (

$this->did_permalink || (!empty($_SERVER[’QUERY_STRING’]) && (false === strpos

($_SERVER[’REQUEST_URI’], ‘?’))) ) ) {
$wp_query->set_404();
status_header( 404 );
}
}

Removed:
} elseif( is_404() != true ) {
status_header( 200 );

COMMENTS:
Changing the code in the classes.php file solves the redirect problem for the feedburnerplugin.php but I have no idea whatsoever how it affects the working of 404 error handling otherwise.

Apply this solution at your own risk!

Bookmark to:
[4]   [5]   [6]   [7]    


Article printed from thinelectrons.com: http://thinelectrons.com/blog

URL to article: http://thinelectrons.com/blog/wp-blog-installation-action-sheets/feedburner-plugin/

URLs in this post:
[1] Use with my WP Blog Installation Action Sheets!: http://thinelectrons.com/blog/wp-blog-installation-action-sheets/
[2] http://flagrantdisregard.com/index.php/2006/02/18/feedburner-plugin-for-wordpress-20/: http://flagrantdisregard.com/index.php/2006/02/18/feedburner-plugin-for-wordpres
s-20/

[3] http://wordpress.org/support/topic/75286: http://wordpress.org/support/topic/75286
[4]  : http://del.icio.us/post?url=http://thinelectrons.com/blog/wp-blog-installation-a
ction-sheets/feedburner-plugin/&title=Feedburner Plugin

[5]
 : http://furl.net/storeIt.jsp?t=Feedburner Plugin&u=http://thinelectrons.com/b
log/wp-blog-installation-action-sheets/feedburner-plugin/

[6]
 : http://user.my-tuts.com/tag-tutorial/?url=http://thinelectrons.com/blog/wp-blog-
installation-action-sheets/feedburner-plugin/&title=Feedburner Plugin

[7]
 : http://feedmelinks.com/categorize?from=toolbar&op=submit&name=Feedburner Plugin&
url=http://thinelectrons.com/blog/wp-blog-installation-action-sheets/feedburner-plugin/&version=0.7

Click here to print.