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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • [SOLVED] Internet Explorer mixed content error on public event pages on SSL site
Pages: [1]

Author Topic: [SOLVED] Internet Explorer mixed content error on public event pages on SSL site  (Read 6563 times)

civiZEN

  • I’m new here
  • *
  • Posts: 5
  • Karma: 1
[SOLVED] Internet Explorer mixed content error on public event pages on SSL site
April 04, 2009, 01:14:50 am
If you open: https://joomla.demo.civicrm.org/index.php?option=com_civicrm&task=civicrm/event/register&id=3&action=preview&reset=1
in IE7 or 8, it gives the insecure/secure mixed content alert.

This also occurs on our server (running Joomla 1.5.9).
This does not seem to happen on the drupal demo.
Doesn't seem to be the template (I've tried 3 different ones).

I can't figure out what supposedly insecure content is tripping up IE.
Perhaps a misbehaving javascript?

Not seeing any errors or apparent calls to non-https:// content in my logs.

We had an online event registration that was supposed to go live today but now must wait for a solution to this.
Any clues would be greatly appreciated!



The solution:

In templates/CRM/common/joomla.tpl

Dojo gets loaded here, but does not maintain the 'https' in whatever it's loading afterwards, or at least IE sees it that way.

I've replaced the {} around $config->resourceBase with () so it would post here.

Code: [Select]
<script type="text/javascript" src="($config->resourceBase)packages/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true, usePlainJson: true"></script>

If you hard code your URL in there with https://, it eliminates the insecure/secure mixed content error:

Code: [Select]
<script type="text/javascript" src="https://yourjoomlaserver.com/administrator/components/com_civicrm/civicrm/packages/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true, usePlainJson: true"></script>
More info here: http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/dijit-1-1-wai-class-causing-ie-secure-nonsecure-mixed-content-er
« Last Edit: April 04, 2009, 01:35:47 pm by civiZEN »

johnp

  • Guest
Re: [SOLVED] Internet Explorer mixed content error on public event pages on SSL site
April 05, 2009, 07:34:09 am
You get this type of behavior in the Drupal demo whenever you try to print using IE. IMHO, the absolute coding is far from an ideal method of handling this error. I does seem alot worse in Joomla than in Drupal.

Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: [SOLVED] Internet Explorer mixed content error on public event pages on SSL site
April 14, 2009, 02:50:26 am
Hi
John Pruder will you plz changes the line according to following diff (CRM-4346)

Code: [Select]
-- templates/CRM/common/print.tpl (revision 20578)
+++ templates/CRM/common/print.tpl (working copy)
@@ -9,7 +9,7 @@
   <style type="text/css" media="screen, print">@import url({$config->resourceBase}css/civicrm.css);</style>
   <style type="text/css" media="print">@import url({$config->resourceBase}css/print.css);</style>
   <style type="text/css">@import url({$config->resourceBase}css/skins/aqua/theme.css);</style>
-  <script type="text/javascript" src="{$config->resourceBase}packages/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true " ></script>
+ <script type="text/javascript" src="{$config->userFrameworkResourceURL}packages/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true " ></script>
   <script type="text/javascript" src="{$config->resourceBase}packages/dojo/dojo/commonWidgets.js"></script>
   <style type="text/css" media="screen">@import url({$config->resourceBase}packages/dojo/dijit/themes/tundra/tundra.css);</style>
   <script type="text/javascript" src="{$config->resourceBase}js/Common.js"></script>

Let us know if it's work

Quote
Still there is error in dojo.js
Message: Member not found. Member not found.
Line: 20
Char: 48632
Code: 0
URI:
https://domainname.com/sites/all/modules/civicrm/packages/dojo/dojo/dojo.js

Sunil
The community around a product more important than the product itself?

johnp

  • Guest
Re: [SOLVED] Internet Explorer mixed content error on public event pages on SSL site
April 14, 2009, 03:33:47 pm
I'll make the change and let you know.

Thanks

johnp

  • Guest
Re: [SOLVED] Internet Explorer mixed content error on public event pages on SSL site
April 16, 2009, 07:58:07 am
Sunil,

From my testing, everything looks good regarding printing using ssl and IE in Drupal. Standalone still has this mixed content error showing up.

John

Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: [SOLVED] Internet Explorer mixed content error on public event pages on SSL site
April 16, 2009, 08:40:39 am
Hi

templates/CRM/common/print.tpl file is used both drupal and standalone print page

For standalone is pop up coming on normal page or after clicking on the print icon?

Sunil
The community around a product more important than the product itself?

johnp

  • Guest
Re: [SOLVED] Internet Explorer mixed content error on public event pages on SSL site
April 16, 2009, 09:17:00 am
I am using the same modified print.tpl in both Drupal and standalone. The popup only occurs in the standalone after clicking print. This only occurs when access is ssl
« Last Edit: April 16, 2009, 09:33:13 am by johnp »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • [SOLVED] Internet Explorer mixed content error on public event pages on SSL site

This forum was archived on 2017-11-26.