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 »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • SSL giving error on donation page only
Pages: [1]

Author Topic: SSL giving error on donation page only  (Read 2536 times)

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
SSL giving error on donation page only
March 03, 2010, 03:26:21 pm
I've just installed SSL, forced secure URLs, and set up a donation page. When I load it with https, for a split second it looks good (blue domain name in browser URL box, padlock below) ... but then the blue domain name disappears and my padlock gets an error that says there is unauthenticated content. My web host says the SSL is properly installed (and I can open other pages such as CHANGELOG.txt on https without errors). I am told there must be unencrypted content on the page, and that I need to find and fix it -- but everything on the page is generated either by Drupal or CiviCRM. I've removed a ShareThis widget, just in case, but no luck. Any ideas?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: SSL giving error on donation page only
March 03, 2010, 04:09:25 pm

we've seen this happen and have not made much progress on it. if you can investigate and figure it out that would be great. please keep us informed

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: SSL giving error on donation page only
March 03, 2010, 05:36:31 pm
Not a clue where to begin. Any ideas? I've disabled just about everything I can think of (text resize, google analytics, etc.) for CiviCRM pages. There's a lot of jquery/jscript in the source code ... no idea if SSL cares about that or how to test without breaking everything. FWIW I am finding non-CiviCRM pages in my Drupal site that also break when I open them in https - contact form, bio pages, etc. Something about the theme or other modules?

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: SSL giving error on donation page only
March 04, 2010, 05:35:07 am
Can you try removing the packages/ckeditor/ckeditor.js file from your install?

Loading this JavaScript seems to trigger this problem on our demo (and removing that file fixes it).

(My gut feeling is that there’s an unencrypted call in there to a spellchecker…)
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: SSL giving error on donation page only
March 04, 2010, 07:15:38 am
My install doesn't have a packages/ckeditor directory. It does have packages/fckeditor - would it be worth trying one of those js files? If so, which? I appreciate the help here.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: SSL giving error on donation page only
March 04, 2010, 08:16:23 am
We've nailed down the problem a bit.
http://issues.civicrm.org/jira/browse/CRM-5911

If you are using 3.1 (as noted in your profile), your install should have ckeditor rather than fckeditor (since we upgraded to ckeditor from fckeditor - the old version of that tool - in 3.1).

In any case, if you're ok with using TinyMCE as your editor in CiviCRM (for forms that have rich text fields) - you can try the workaround of changing your Site Preferences (Administer >> Configure >> Global Settings >> Site Preferences) : WYSIWYG Editor to TinyMCE. That change fixed the error on our public demo page - so hopefully fixes it for your site as well. Let us know.
Protect your investment in CiviCRM by  becoming a Member!

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: SSL giving error on donation page only
March 04, 2010, 09:05:38 am
My profile is correct for one site and incorrect for another.  ;)  This site is 3.0.3.  However, I had already set site preferences to "textarea." Your issues.civicrm post says textarea can also be a problem, and to switch to TinyMCE. I've done that, but still have the problematic SSL behavior.

A friend has asked if it might be the images on the page, which are stored on http, not https...?
« Last Edit: March 04, 2010, 10:02:58 am by m.e. »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: SSL giving error on donation page only
March 04, 2010, 11:35:48 am
I've only tested in 3.1.3. Are you saying that switching the CiviCRM Site Preferences for your 3.1 site does NOT fix the problem?

AND yes, if your theme are images you've added to your contribution page config are not referenced via https, that will cause this problem. You should click the broken lock in firefox and then review the Media listed in the pop-up dialog.
Protect your investment in CiviCRM by  becoming a Member!

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: SSL giving error on donation page only
March 04, 2010, 01:09:39 pm
That's correct. Changing the Site Preferences did not fix it. But again, this site is 3.0.3, not 3.1.

Going into the stylesheet and changing all image references to https fixed the problem. Since many of these images were straight out of the box for my Drupal theme, this seems like an odd kludge that shouldn't be necessary, but I'm not sure whether the problem belongs to CiviCRM or Drupal or the theme or ....

Also, it seems odd to me that images referenced in blocks on my page were not a problem. Only images referenced in .css caused SSL to hang up.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: SSL giving error on donation page only
March 05, 2010, 09:15:01 am
Quote from: m.e. on March 04, 2010, 01:09:39 pm
Going into the stylesheet and changing all image references to https fixed the problem. Since many of these images were straight out of the box for my Drupal theme, this seems like an odd kludge that shouldn't be necessary, but I'm not sure whether the problem belongs to CiviCRM or Drupal or the theme or ....

Why do you need to have absolute (ones with the protocol and domain) URLs for your images? Are they under a different domain?

Quote
Also, it seems odd to me that images referenced in blocks on my page were not a problem. Only images referenced in .css caused SSL to hang up.

Maybe these images are referenced without the protocol and domain part?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: SSL giving error on donation page only
March 05, 2010, 09:44:47 am
The images causing problems were referenced in .css like "http://www.domain.com/files/image.jpg" or "http://www.domain.com/themes/customthemes/themename/images/image.jpg".

It's very possible I created the problem during site development when I was testing with images stored in another domain's directories (so then when the site was launched, I simply switched domain names rather than use relative paths).


jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
Re: SSL giving error on donation page only
March 13, 2010, 02:47:13 am
using 3.1.3

changing the preferences to tinymce fixed my https errors
« Last Edit: March 13, 2010, 02:56:02 am by jday »

akasman

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal
Re: SSL giving error on donation page only
April 11, 2010, 07:41:43 pm
That fixed our site (3.1.2) - thanks, Dave!
I was having a lot of trouble nailing down the source of the mixed content.

Quote from: Dave Greenberg on March 04, 2010, 08:16:23 am
We've nailed down the problem a bit.
http://issues.civicrm.org/jira/browse/CRM-5911

If you are using 3.1 (as noted in your profile), your install should have ckeditor rather than fckeditor (since we upgraded to ckeditor from fckeditor - the old version of that tool - in 3.1).

In any case, if you're ok with using TinyMCE as your editor in CiviCRM (for forms that have rich text fields) - you can try the workaround of changing your Site Preferences (Administer >> Configure >> Global Settings >> Site Preferences) : WYSIWYG Editor to TinyMCE. That change fixed the error on our public demo page - so hopefully fixes it for your site as well. Let us know.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • SSL giving error on donation page only

This forum was archived on 2017-11-26.