• Resolved stevenash

    (@stevenash)


    Hello,

    My team uses the plugin Siteimprove. Last week it detected several thousand broken links on our website. This seemed to be caused because Facebook sdk.js was malformed and being appended to all URLs. For example: https://www.mywebsite.com/https/connect.facebook.net/en_US/sdk.js

    I was able to track this down to the Social Media and Share Icons (Ultimate Social Media) plugin. On line 502 of the sfsiocns_OnPosts.php file is where the error was present. It was:
    js.src = “https//connect.facebook.net/<?php echo $icons_language; ?>/sdk.js#xfbml=1&version=v3.2”;

    Updating this to the following seemed to fix the problem:
    js.src = “https://connect.facebook.net/&lt;?php echo $icons_language; ?>/sdk.js#xfbml=1&version=v3.2”;

    It seemed the src was missing the “:”. Just wanted to log this in case it is an error with the plugin itself and not just our instance so the issue doesn’t arise again in the future.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.