Topic-icon Problem with 4.1 and JA S3 component plugin

Active Subscriptions:

None
14 years 5 months ago #17654 by activha
Hello
We had no problem with JFB connect 4.0 and JA S3 component until today when we upgraded to JFBConnect 4.1
Suddenly JFBConnect stopped to work and we noticed that the file connect.facebook.net/fr_FR/all.js was translated by JA S3 to activ-ha.com/connect.facebook.net/fr_FR/all.js and then gave a 404 error

Could you tell me where this file is called and change the call so that JFBC is compatible again with JA S3 ??

Thanks
The topic has been locked.
Support Specialist
14 years 5 months ago #17662 by alzander
The way we include the Facebook Javascript API was updated in JFBConnect 4.1 to be inline with Facebook's current recommendations. The new format is uses a schemeless approach (no http or https). If you you have a optimizer or minification type extension running on your site that tries to always include the domain name, and it's not properly working with schemeless links, you'd get this error.

You can fix in JFBConnect by editing the /plugins/system/jfbcsystem/jfbcsystem.php file and searching for
//connect.facebook.net
And adding the https in front of that. However, that will always load the SSL version, which is slower than using the http version. If your site doesn't use SSL, you can just use http://

We'd definitely recommend you contact your template provider, or whichever extension developer is incorrectly working with schemeless links, and have them fix their extension.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17705 by activha
Alex
The component JA S3 is made by joomlart and I guess that everything is correct from this side.
The problem may come from the fact that the schemeless link is included is a script called by php ?? this way the S3 plugin would think that this is a link from the website
Is there any other way to include it ?
Jean Claude
The topic has been locked.
Support Specialist
14 years 5 months ago #17711 by alzander
The schemeless link is simply put into the HTML. While it's put there using PHP, like everything else that's rendered on the page, something else is then coming along and seeing the //connect.facebook.net, thinking that it's a relative link (not a schemeless link) and adding your domain to it. That's improper behavior. It could either be your SEF extension (if it's not Joomla's core SEF), your template, or some other optimization extension.

If you could try undoing the change above and switching templates or turning off SEF temporarily to see if it's modified, that will help narrow down what extension is mis-behaving.

Alex
The topic has been locked.