Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #19617

    An employee of mine accidentally deleted our Feedburner account when trying to fix a feed error.

    In doing so they forgot to select the redirect option upon cancellation so now our WordPress feed still redirects to the Feedburner URL.

    It seems as though there has to be a way to remove this redirect from our WordPress site, but I cannot seem to find where this would be. I have checked our .htaccess file and I have made sure that the theme settings are not using the Feedburner URL.

    Any help would be much appreciated. Thanks

    #104347

    Hi vinnylabarbera,

    Feedburner link is placed here: Propulsion > Theme Options > RSS feed url

    Try to remove the value.

    Regards,

    Ismael

    #104348

    Thanks for the response Ismael, but I’ve already tried that.

    The default feed continues to redirect to the feedburner feed URL.

    Is there anywhere else in the theme where this redirect could be triggering (besides the .htaccess file where it is not in there)?

    #104349

    Found where the redirect is at (in a plugin file).

    Now I just need to figure out how to disable the redirect

    Here is the code for the plugin file:

    <?php

    class WPHubspotSocial {

    function WPHubspotSocial() {

    // FeedBurner Integration Hooks

    add_filter(‘feed_link’, array(&$this, ‘hs_feedburner_feed_link’), 1, 2);

    if(is_admin()){

    //

    } else {

    add_action(‘template_redirect’, array(&$this, ‘hs_feed_redirect’));

    }

    }

    //=============================================

    // Replace RSS with Feedburner

    //=============================================

    function hs_feed_redirect() {

    global $feed;

    // Do nothing if not a feed

    if (!is_feed()) {

    return;

    }

    // Do nothing if feedburner is the user-agent

    if (preg_match(‘/feedburner/i’, $_SERVER)){

    return;

    }

    if (preg_match(‘/googlebot/i’, $_SERVER)){

    return;

    }

    $hs_settings=get_option(‘hs_settings’);

    if ($feed != ‘comments-rss2′ && trim($hs_settings) != ”) {

    if (function_exists(‘status_header’)) status_header( 302 );

    header(“Location:” . trim($hs_settings));

    header(“HTTP/1.1 302 Temporary Redirect”);

    exit();

    }

    }

    //=============================================

    // Feedburner filter URL

    //=============================================

    function hs_feedburner_feed_link($output, $feed){

    $hs_settings=get_option(‘hs_settings’);

    $feed_url=$hs_settings;

    //preg_match(“/rss2|atom|rdf/i”, $feed)

    if(trim($feed_url) != ” && $feed!=’comments-rss2′){

    $feed_array = array(‘rss’ => $feed_url, ‘rss2′ => $feed_url, ‘atom’ => $feed_url, ‘rdf’ => $feed_url, ‘comments_rss2′ => ”);

    $feed_array[$feed] = $feed_url;

    $output = $feed_array[$feed];

    }

    return $output;

    }

    }

    #104350

    Hi!

    You can try to delete (or comment out) following line:

    add_action('template_redirect', array(&$this, 'hs_feed_redirect'));

    Best regards,

    Peter

    #104351

    Thanks Dude!

    The redirect seems to be gone now.

    Now I am getting an error on my feed though that I need to fix to finish this up.

    Here is the error:

    This page contains the following errors:

    error on line 37 at column 493: EntityRef: expecting ‘;’

    #104352

    Hey!

    I couldn’t find such a symbol (or any code) on line 37. It points to:

    // Feedburner filter URL

    which is just a php comment and the php code interpreter will ignore it. Maybe contact the plugin author and ask him what causes the error.

    Regards,

    Peter

    #104353

    Thanks for looking Peter.

    I am going to close this out as everything seems to be an issue with the HubSpot plugin.

    I really appreciate the help.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘How to Remove the Feedburner Redirect’ is closed to new replies.