WordPress.org

Ready to get started?Download WordPress

Forums

Sociable
Fix for Sociable on https (7 posts)

  1. Ryan Hellyer
    Member
    Posted 2 years ago #

    The Sociable plugin does not implement it's URLs correctly for https.

    You can fix this by changing the definition of SOCIABLE_HTTP_PATH in the plugin as follows:

    define( 'SOCIABLE_HTTP_PATH', plugins_url( '/', __FILE__ ) ); // Plugin folder URL

    Using WP_PLUGIN_URL will cause it to always serve files as http, no matter what the settings in WordPress are. Using plugins_url() ensures that a filter is applied when https is in use, and it will dynamically change the URLs accordingly.

    http://wordpress.org/extend/plugins/sociable/

  2. pmagony
    Member
    Posted 2 years ago #

    Where/What page do you make this change on?

  3. Ryan Hellyer
    Member
    Posted 2 years ago #

    I usually load definitions before init has fired.

  4. pmagony
    Member
    Posted 2 years ago #

    Thanks Ryan, that worked a charm.

    /plugins/sociable/sociable.php

    Comment out line 30, add Ryan's definition.

  5. Ryan Hellyer
    Member
    Posted 2 years ago #

    Oops, I forgot about having to delete the existing definition. I was replying in between tasks at work and didn't pay enough attention to your question sorry. Sounds like you figured it out thankfully :)

  6. Dan Collis-Puro
    Member
    Posted 2 years ago #

    I pointed this a month back and the devs haven't fixed it yet. Sigh.

  7. Ryan Hellyer
    Member
    Posted 2 years ago #

    Yeah, after posting this I realised there were other threads outlining this problem too.

    Do you know how to get hold of the developer? I'd be happy to commit the change myself if they'd give me admin access to it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic