WP BLOG LOG on Sept. 9th 2006 by PRvE

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:
http://flagrantdisregard.com/index.php/2006/02/18/feedburner-plugin-for-wordpress-20/
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:
Add 'Feedburner Plugin' to Del.icio.us Add 'Feedburner Plugin' to digg Add 'Feedburner Plugin' to FURL Add 'Feedburner Plugin' to blinklist Add 'Feedburner Plugin' to My-Tuts Add 'Feedburner Plugin' to reddit Add 'Feedburner Plugin' to Feed Me Links! Add 'Feedburner Plugin' to Technorati Add 'Feedburner Plugin' to Socializer 

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading ...


2 Responses to “ Feedburner Plugin ”

Comments:

  1. Kade says:

    Hello,
    Just wondering if anyone could help. I did something stupid and started my blog using a numerical archive system, and now I'd like to change it so that the post title is part of the URL for SEO reasons. Is there any Wordpress plugins that anyone knows of that could switch it without sending Googlers to invalid pages? Maybe some sort of redirector to the correct page?

    Thanks.

  2. Patricia Rits says:

    Hi Kade,

    I had a look and found some links which might be useful to you. You can read the documentation on these plugin pages:

    http://blog.taragana.com/index.php/archive/wordpress-plugin-for-permanent-redirection-of-posts-angsumans-permanent-redirector-plugin


    http://www.dynamiccorestudios.com/archive/wordpress-plugin-custom-rewrite-rules

    http://fucoder.com/code/permalink-redirect

    If any of these work for your situation, let us know!

    Thanks,
    Patricia


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>