Support » Plugin: Official Bitly for WordPress » Conflict with Yoast SEO plugin

  • Resolved nr56

    (@nr56)


    This plugin is forcing certain elements of my site to use bitmarks when it would be better if it didn’t. Specifically:

    1) It was forcing my sitemap to use bitmarks, which broke Webmaster Tools (now fixed)
    2) Yoast SEO plugin is great because it adds <rel=cannonical> tags to my posts. But the Bitly plugin is forcing it to use the bitmark instead of the full URL. This needs to be fixed!

    In general, can you please check the plugin thoroughly for places where bitmarks should be forced, and where it should not be? I am unable to use the plugin until I am certain it’s not creating conflicts elsewhere.

    Thanks!

    http://wordpress.org/plugins/bitly/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author bit.ly

    (@bitly-1)

    The plugin overrides the get_permalink() function so that it can be used with a wide variety of social sharing tools. We will remove conflicts with other plugins as we push out new versions.

    alexblajan

    (@alexblajan)

    We need an update fast.

    nr56

    (@nr56)

    I’m not sure it’s fair to mark this issue as “Resolved” on the promise that a future update will fix the error…especially when updates to this plugin have been few and far between…

    Why on Earth has this been marked as resolved..? A promise to fix something is not the same as fixing it; as demonstrated by it having been three months since the Bitly staffer posted.

    If you look in the bitly.php file around line 90 there begins a series of checks to see if the call for get_permalink originates from certain plugins. You can simply add wordpress-seo to the list to fix the rel=cannonical issue.

    At line 118 (after the check for ‘sitemap’ in line 113) I added this code to check to see if the call originates from a directory with the phrase ‘seo’ in it (which would include yoast’s wordpress-seo):

    else if (strpos($b['file'],'seo') !== false) // Don't return custom links in yoast seo
                {
                    $plugin_call = false;
                    break;
                }

    This tells the bitly plugin to not override the get_permalink() function for wordpress-seo and makes the rel=canonical tag work properly again.

    Thanks bswen ! I’ll try this in the coming days. A bit sad that all my SEO efforts have been compromised and now Google only index my bit.ly custom domain….

    Got feedback from Bit.ly
    “Hi again,

    I wanted to let you know that I chatted with James and that’s a bug that we’re aware of with the plugin but it’s not on the immediate roadmap to be fixed in the near future. I’m sorry I couldn’t be more helpful! I really wish there was more I could do. Please let me know if you have any additional questions.

    Best,
    Samantha”

    So basically it’s “we know we offer a broken plugin, we have no intention of fixing it. We didn’t remove it from the repository cause we like to [removed] people’s websites up. Have a nice day.”

    The bit.ly plugin is not only conflicting with Yoast but also with Jetpack and Publicize. Best way to deal with that is to uninstall bit.ly.

    I tried this for ‘sociable’ (the sociable plugin) also because all of my likes for facebook and g+ disappeared now that the buttons are linked to the bitly shortlink.

    Any suggestions on how to correct this issue see its source is very similar?

    Got it. I had to deactivate both plugins then activate starting with bitly. Works great! Even works with my post navigation. Thanks bswen!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Conflict with Yoast SEO plugin’ is closed to new replies.