Mixed content Plugin conflicts Seo

Compatibility fix for Social Warfare share counts recovery

*  EDIT *

This fix is not needed anymore, as Warfare plugins has integrated this fix in their plugin. 

If you are using the Social Warfare share counts recovery plugin to recover the social shares and likes for Facebook,  Twitter etc, you might run into the problem that there is a slight incompatibility between the plugins. As Really Simple SSL fixes all http links, it also fixes a link that the Warfare plugin needs to stay http.

There is a solution for this. Really Simple SSL uses a filter which can be used to change a specific url back to http. This is how it would look like for the Social Warfare share counts recovery plugin. Or download it for free as small plugin

function rsssl_fix_warfare_compat_issue($html) { 
    //replace the https back to http 
    $html = str_replace(
         "swp_post_recovery_url = 'https://",
         "swp_post_recovery_url = 'http://", 
         $html); 
    return $html; 
} 

add_filter("rsssl_fixer_output","rsssl_fix_warfare_compat_issue");
You can paste this code into your functions.php. If you do this, the plugin should be able to recover the Facebook likes.

Related Articles

  • How to track down mixed content or insecure content

    If you do not see the green lock in your browser address bar, you still have mixed content. It is very important that this is fixed, because browsers will throw...
  • Parts of my site not loading

    Did you install Really Simple SSL on your site, and now some images, stylesheets, or external servcies are not loading? When a site is requested over the SSL protocol, the...
  • Using safe mode

    Migrating to SSL can cause unexpected side effects. When caching is causing redirects, or a plugin redirects back to http, or other such issues, it can be helpfull to activate...
  • Plugin conflict force rewrite title Yoast

    * Update* This issue should be resolved in the 2.4 version. I left the Yoast check for now, but this warning will be removed in future versions. If you have...

2 Comments

  • ruffo

    Hello,

    I have the plugin installed but is not see the modification. I can’t see my Facebook Comments. I use Social Warfare and have the follow code in my theme:

    <div class="fb-comments" data-href="” data-width=”100%” data-numposts=”5″ data-colorscheme=”light”>

    you say that is not necessary add a code, but it’s not working.

    Can you help me please?

    Thank you very much!

    • Mark Wolters

      Hi,

      the data-href property seems to be missing from the theme. Without the data-href property, the theme doesn’t know for which url it should retrieve the Facebook comments. You can try adding the site_url to the data-href property like this: data-href=””

      Mark

Leave a Comment