CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Blocked loading mixed active content (HTTP / HTTPS) (OpenLayers)
Pages: [1]

Author Topic: Blocked loading mixed active content (HTTP / HTTPS) (OpenLayers)  (Read 1907 times)

Brylie Christopher Oxley

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 1
  • CiviCRM version: 4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.x
  • PHP version: 5.x
Blocked loading mixed active content (HTTP / HTTPS) (OpenLayers)
December 03, 2014, 12:24:35 am
I recently installed an SSL certificate on our domain. Most things seem to be working correctly across the site, but CiviCRM OpenLayers maps are not rendering.

Code: [Select]
Blocked loading mixed active content "http://openlayers.org/api/OpenLayers.js

How can I configure CiviCRM to load the OpenLayers plugin over HTTPS instead of HTTP?

Brylie Oxley
http://brylie.gnumedia.org

norris

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.6.0
  • CMS version: Joomla
  • MySQL version: 5.5.41-37.0-log
  • PHP version: 5.4.24
Re: Blocked loading mixed active content (HTTP / HTTPS) (OpenLayers)
March 03, 2015, 09:16:09 pm
I had the same problem, and downloaded a copy of the file to the server, then modified the templates/CRM/Contact/Form/Task/Map/OpenStreetMaps.tpl template to change the URL to point to the local copy instead, using https

Note that for proper template overrides you should set a custom template directory in Administrator->System Settings->Directories, then make a CRM/Contact/Form/Task/Map directory structure, and put the modified file in there.

I'm surprised I can't find an https version of the openlayers.js file officially hosted. Maybe I didn't look hard enough.

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Blocked loading mixed active content (HTTP / HTTPS) (OpenLayers)
March 15, 2015, 03:20:14 pm
If you've gone to the effort of SSL-protecting your site, you might want to consider whether you want to include JS libraries from sites outside your control. Self-hosting is the best option for your own security.

Probably a good suggestion to package openlayers.js along with the template so this doesn't affect other CiviCRM on SSL sites.
@xurizaemon ● www.fuzion.co.nz

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Blocked loading mixed active content (HTTP / HTTPS) (OpenLayers)
July 08, 2015, 12:12:15 pm
The fix for core (v4.7) is to switch to a different cdn which supports https.
https://issues.civicrm.org/jira/browse/CRM-16294

But if one of you has done the work to add a local version of the js, how about sharing that as a CiviCRM Extension?
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Blocked loading mixed active content (HTTP / HTTPS) (OpenLayers)

This forum was archived on 2017-11-26.