My SSL pages are giving an error because of the following script:

http://platform.twitter.com/widgets.js

I assumed this script is generated by Service Links. How can I make sure it will run from an SSL website?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TheCrow’s picture

if you open the file services/widget_services.module at the row n.32 you find the url to this javascript

try to replace it with https://..., then clean the cache or save the list of services again.

remkovdz’s picture

Thanks, it works. Just too bad I have to hack it, should really be an option in the module itsself?

TheCrow’s picture

There is a discussion here: #1400724: Facebook Like popup window doesn't show up, i want evaluate the proposals before change something :)

mh86’s picture

Status: Active » Needs review
FileSize
838 bytes

Here is another approach that ensures external js libs on https sites are always embedded via https.
The discussion about facebook like counts is actually independent of this issue, as far as I see.

RoySegall’s picture

Re rolling the patch; The last patch contains a white space:

<?php
$js = str_replace('http://', 'https://', $js);
?>

When i try to apply it i got a error from git. After removing the white space i manged to apply the patch without any problems.

grasmash’s picture

Status: Needs review » Reviewed & tested by the community

Looks pretty straightforward. I've patched, tested, and everything seems good!

TheCrow’s picture

Status: Reviewed & tested by the community » Fixed

Pushed #4!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.