Topic-icon Fix for JA Amazon S3 plugin + K2 + JFBConnect

Active Subscriptions:

None
11 years 11 months ago #22953 by paz
I have been in touch with Joomlart support regarding the fact that the JA Amazon S3 plugin rewrites certain FB js file src attributes. This was their response:

I have just done edit 2 file :
+> /public_html/plugins/system/jfbcsystem/jfbcsystem.php - line 230
+> /public_html/plugins/system/k2/k2.php line 52

Change "//connect.facebook.net/" to "connect.facebook.net/", and "//ajax.googleapis.com/ajax/libs/jquery/" to "ajax.googleapis.com/ajax/libs/jquery/", so i enable plugin s3, your site it running normal :)

Looks to me that the protocol should be explicit rather than implied.

Confirmed that my site is working now.
The topic has been locked.
Support Specialist
11 years 11 months ago #22967 by alzander
Paul,
While that workaround may work, it's not the correct fix for the problem. "Schemeless" links are completely valid to use for including external files. The reason for them is to ensure that the correct protocol (http or https) is used based on how the current page is loaded. Since https files are slower to load, those should only be loaded if the user is viewing the https version of the page. Conversely, if the user goes to the secure version of your site (if you have one), the Facebook Javascript library will now still be loaded insecurely. In all browsers, this will cause the 'padlock' icon to show a warning and in some browsers (IE specifically) a pop-up warning will appear saying that 'mixed content is being loaded'.

JoomlArt should fix their template compression to work with HTML standards.

Hope that explains. This will not be fixed in JFBConnect and I'm sure it won't be fixed in K2 (or other extensions that go by the standards), so you will have to make this change any time you upgrade JFBConnect or other extensions until JoomlArt fixes it.

Thanks for the input though, and glad it's working for you, for now,
Alex
The topic has been locked.