WordPress.org

Ready to get started?Download WordPress

Forums

Share Center Pro
Facebook badge shows red "error" message (6 posts)

  1. stevied
    Member
    Posted 1 year ago #

    This Facebook share icon has stopped working suddenly.

    Clicking on the "error" link goes to this page on Facebook:

    http://www.facebook.com/plugins/error/api?code=100&message=The+href+URL+must+be+absolute&hash=AQDm-w4e65mLeH7w

    http://wordpress.org/extend/plugins/share-center-pro/

  2. stevied
    Member
    Posted 1 year ago #

    I can reproduce this error on two different macs using Google's Chrome browser. Firefox and Safari are fine, though. It's also working fine in Chrome on my Windows XP and Window 7 virtual machines

    I'm running version Version 24.0.1312.52 of Chrome on my macs.

    On Windows XP, I'm running Chrome Version "24.0.1212.52 m". Works fine.

    On Windows 7, I'm running Chrome Version "24.0.1312.52 m". Works fine.

    Chrome reports it is up to date on all computers.

  3. stevied
    Member
    Posted 1 year ago #

    More notes:

    1) I cannot reproduce this problem on another site. So it's something specific to my site. However, I haven't changed anything recently on the site that might cause this problem.
    2) Changing the theme does not fix the problem. So it's not theme related.

  4. stevied
    Member
    Posted 1 year ago #

    OK, I've tracked the problem down to this plugin: http://premium.wpmudev.org/project/ultimate-facebook/

    1) When the plugin is enabled, I get the error.
    2) When the plugin is disabled, no error.

    I will get in touch with the developer of that module to see what can be done.

  5. stevied
    Member
    Posted 1 year ago #

    More notes:

    1) The problem only occurs when the following fields are filled in and saved for the Ultimate Facebook plugin:

    App ID / API key
    Secret key

  6. stevied
    Member
    Posted 1 year ago #

    I was able to stop the error by changing line 367 in the share-center-pro.php module from:

    $buttons .= "<div class=\"scpFacebook\"><fb:like href=\"" . urlencode( $share_url ) . "\" send=\"false\" layout=\"box_count\" width=\"450\" show_faces=\"false\" font=\"arial\"></fb:like></div>\n";

    to:

    $buttons .= "<div class=\"scpFacebook\"><fb:like href=\"" . $share_url . "\" send=\"false\" layout=\"box_count\" width=\"450\" show_faces=\"false\" font=\"arial\"></fb:like></div>\n";

    This change simply drops the call to the urlencode() function. Perhaps the other module is re-encoding a url that is already encoded? But that wouldn't explain why this is only happening in Chrome. Very odd. Perhaps Chrome is adding in some code to its browser to track Facebook likes which is breaking things???

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.