× Joomla Facebook Connect support forum

Topic-icon SSL

Active Subscriptions:

None
12 years 1 week ago #26403 by Glovebox
SSL was created by Glovebox
The javascript console in Chrome throws up this warning:

2[blocked] The page at https://*************.html ran insecure content from http://www.********/components/com_jfbconnect/assets/jfbconnect.css.

Please advise how to fix.

Thanks
Adam
The topic has been locked.
Support Specialist
12 years 1 week ago #26412 by alzander
Replied by alzander on topic SSL
Adam,
JFBConnect should be using the https version for the file, but it doesn't seem to be working right. If you're ok with making a quick change to a file, we should be able to get you fixed up. In the /plugins/system/jfbcsystem.php file around line 370, you'll see:
$newText = '<link rel="stylesheet" href="' . JURI::base() . 'components/com_jfbconnect/assets/jfbconnect.css" type="text/css" />' . $newText;
Change the JURI::base() call to JURI::base(false), like:
$newText = '<link rel="stylesheet" href="' . JURI::base(false) . 'components/com_jfbconnect/assets/jfbconnect.css" type="text/css" />' . $newText;
That should fix your issue. Either way, let us know so that we can either include that change in the next release, or come up with a better solution.

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

None
11 years 11 months ago #26905 by Glovebox
Replied by Glovebox on topic SSL
Hi,
Im afraid that did not work.

www.parkgatemobility.co.uk/news/latest.html

Thanks
Adam
The topic has been locked.
Support Specialist
11 years 11 months ago #26916 by alzander
Replied by alzander on topic SSL
Adam,
That should have definitely worked based on how Joomla functions. Do you have something on your site that tries to 'force' all files to load over SSL either in the .htaccess or plugin for Joomla? If so, that may be causing some issues.

In general, the JURI::base function asks Joomla what the 'root' URL for your site is, and it should include the https. It's not on yours. You can, if you want, simply remove the JURI::base() line and just make it look like:
$newText = '<link rel="stylesheet" href="/components/com_jfbconnect/assets/jfbconnect.css" type="text/css" />' . $newText;
Unfortunately though, you'll need to make that change with each new release as that shouldn't be necessary (and isn't the right way to do it).

Keep us posted, and good luck,
Alex
The topic has been locked.