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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Enabling SSL causes admin tabs to not work
Pages: [1]

Author Topic: Enabling SSL causes admin tabs to not work  (Read 569 times)

hotsauce

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Drupal
  • MySQL version: 5.5.35
  • PHP version: 5.4
Enabling SSL causes admin tabs to not work
March 02, 2014, 10:01:28 am
Hello.

Running Drupal 7.26 (all core modules up to date)
CiviCRM 4.4.2
MySQL 5.5.35
PHP 5.4

I recently enabled SSL sitewide for my site and now in the backend pages of CiviCRM, the ajax/jquery tabs aren't loading correctly. I have civicrm theme enabled and when I go to say, edit an event, the previous tab interface no longer functions. It was working fine until I enabled through Apache for the whole site to use SSL. Now when I go in to edit something, things don't load in tabs like before and if I actually click on one of the previous tab headings, I get taken out of the Civicrm theme interface and to a page with basically no styling at all. The functionality of everything is still there and everything works if I save something but I feel like some sort of cache or setting needs to be cleared to fix the issue.

I've run Drupal's clear cache functions multiple times, went in and delete the stuff in templates_c and in the ConfigAndLog folder. I've run "Cleanup caches and paths" under System Settings and under Resource URLs I enabled "Force Secure URLs" (this was not set before). Nothing seems to solve the issue.

I feel I'm missing something easy here but would appreciate any help. Screenshots attached.

Thanks.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Enabling SSL causes admin tabs to not work
March 03, 2014, 07:01:52 am
Step 1: update to CiviCRM 4.4.4.  The larger the last number of CiviCRM, the more reliable and fewer bugs that version has. 

Step 2: Check that your base URL in civicrm.settings.php either contains the www or does not.  Set the resource URL accordingly.

Step 3: The login as https:.  For instance if base URL does NOT contain the www, login to https://mysite.org/user

Hopefully that workds.

Try CiviTeacher: the online video tutorial CiviCRM learning library.

hotsauce

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Drupal
  • MySQL version: 5.5.35
  • PHP version: 5.4
Re: Enabling SSL causes admin tabs to not work
March 03, 2014, 11:52:40 am
Hi CiviTeacher,

Thanks for the suggestions. I haven't tried the full upgrade yet (I'm at 4.4.2 and I doubt that 4.4.4 will be much different but I will do the upgrade if I need to). I think the issue is actually related to the jquery items not loading. Attached is a copy of the console log in chrome, it looks like it can't find some of the JS needed. This matches up with the rest of the backend, as the helper popup boxes have gone away too.

Is there that big of a difference re: jquery between the 2 versions? The changelog doesn't lead me to think so...



Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Enabling SSL causes admin tabs to not work
March 03, 2014, 01:32:05 pm
No, there's no big jQuery difference between versions.

If you haven't already, check civicrm/admin/setting/url?reset=1 and make sure your resource URLs are using the same protocol (http or https) that your page is. Browsers may not load resources from an insecure protocol, which would leave you with missing jQuery.
@xurizaemon ● www.fuzion.co.nz

hotsauce

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Drupal
  • MySQL version: 5.5.35
  • PHP version: 5.4
Re: Enabling SSL causes admin tabs to not work
March 03, 2014, 02:11:20 pm
Thanks Chris. I did check that and they are using the https protocol. I also changed the Base URL in Drupal's settings.php file (optional but never hurts) but still no luck.

Would it be better to make just the civicrm directory (meaning http://www.example.com/CIVICRM/event?...) protected under SSL instead of the entire domain? Does that matter?

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Enabling SSL causes admin tabs to not work
March 03, 2014, 02:14:22 pm
IMO every CiviCRM site should be entirely SSL, because your contact's data deserves protection in transit. There's really little reason not to be 100% SSL.

When you visit a page which is misbehaving, check your browser's debug console - look for errors in the JS console and network resources tabs. Missing resources may show a reason why, and JS debug info (which is what it sounds like you'll see) will probably be illuminating.
@xurizaemon ● www.fuzion.co.nz

hotsauce

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Drupal
  • MySQL version: 5.5.35
  • PHP version: 5.4
[RESOLVED] Enabling SSL causes admin tabs to not work
March 04, 2014, 05:31:32 am
I figured out the issue. Based on the javascript console, I was getting a 404 error for a missing file in sites/all/modules/civicrm/packages/jquery/jquery-ui-1.9.0/js - I was missing the jquery-ui-1.9.0.custom.min.js file somehow. I downloaded a fresh copy of 4.4.2 and then uploaded the missing file and everything is working fine again.

What's odd is that while I did move this site from dev to live, everything was working fine BEFORE SSL was enabled but after enabling it is when everything broke. Still not sure why that is but the lesson here is to make sure you have every file you need. Oops.

Thanks to everyone for the help.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Enabling SSL causes admin tabs to not work

This forum was archived on 2017-11-26.