Support » Plugin: Share Center Pro » Facebook badge shows red "error" message

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    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.

    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.

    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

    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???

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Facebook badge shows red "error" message’ is closed to new replies.