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) »
  • Force SSL setting troubles
Pages: [1]

Author Topic: Force SSL setting troubles  (Read 2684 times)

zutroyquixote

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.2.3
  • PHP version: 5.2.16
Force SSL setting troubles
July 28, 2010, 08:11:03 pm
I am in the process of configuring a relatively new install of civi and will be integrating with Moneris' payment processor.  Consequently, I would like to force enable SSL.

I have purchased and installed an SSL cert and have confirmed that I can access pages in Joomla and Civi front-end and admin with https no problem.

However, when I go to enable the flag under resource URLs and save, the page spins forever.  Looking at the domain table verifies that the setting takes effect.  When I look at the log, I see a long list of warnings including:

PHP Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /mnt/data/vhosts/<domain>/httpdocs/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Setting.php on line 130, referer: https://<domain>/administrator/index2.php?option=com_civicrm&task=civicrm/dashboard&reset=1 

PHP Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /mnt/data/vhosts/<domain>/httpdocs/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Setting.php on line 134, referer: https://<domain>/administrator/index2.php?option=com_civicrm&task=civicrm/dashboard&reset=1

PHP Warning: Invalid argument supplied for foreach() in /mnt/data/vhosts/<domain>/httpdocs/administrator/components/com_civicrm/civicrm/CRM/Core/Config.php on line 404, referer: https://<domain>/administrator/index2.php?option=com_civicrm&task=civicrm/dashboard&reset=1

PHP Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /mnt/data/vhosts/<domain>/httpdocs/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Setting.php on line 170, referer: https://<domain>/administrator/index2.php?option=com_civicrm&task=civicrm/dashboard&reset=1

File does not exist: /mnt/data/vhosts/<domain>/httpdocs/administrator/css, referer: https://<domain>/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/url&reset=1&

File does not exist: /mnt/data/vhosts/<domain>/httpdocs/administrator/packages, referer: https://<domain>/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/url&reset=1&

File does not exist: /mnt/data/vhosts/<domain>/httpdocs/administrator/i, referer: https://<domain>/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/url&reset=1&


When I reload the page, I get the following message:

"Your changes have been saved. HTTPS is not set up on this machine"

I have browsed past forums related to this message though they seem to only point to a bug fixed a few releases ago. 

Any ideas?

Current configuration:

Joomla 1.5.20
Civi 3.1.5
PHP 5.2.13

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Force SSL setting troubles
July 28, 2010, 11:39:15 pm
Can you try changing your UF Base Url in civicrm.settings.php to https://.. and then update your resource url.

HTh
Kurund
Found this reply helpful? Support CiviCRM

zutroyquixote

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.2.3
  • PHP version: 5.2.16
Re: Force SSL setting troubles
July 29, 2010, 08:15:04 pm
Hi Kurund

Thanks for the suggestion however when I do that a number of things break.  I no longer get the resource files (so css and js don't appear), I get a pile of PHP warnings presumably related to resource files and I still get the message that https is not set up.

Any other ideas?

zutroyquixote

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.2.3
  • PHP version: 5.2.16
Re: Force SSL setting troubles
August 03, 2010, 08:33:15 pm
Still no luck here.

The only thing I can think of perhaps now is that it is the certificate?  The flossmanual indicates it is prudent to get a cert that covers both www.domain.com and domain.com. Is this actually a requirement of Civi?  I belive my current cert is only for the www. version of the site.

Thoughts.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Force SSL setting troubles
August 04, 2010, 12:31:38 am
What your UF base url in civicrm.settings.php? CiviCRM won't work with both i.e http://sitename.com and http://www.sitename.com
So based on your configuration in civicrm.settings.php you should use one. So if you got with http://sitename.com then when people type in http://www.sitename.com you should redirect them to http://sitename.com. Also make sure your resource url is also http://sitename.com/......

HTh

Kurund
Found this reply helpful? Support CiviCRM

zutroyquixote

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.2.3
  • PHP version: 5.2.16
Re: Force SSL setting troubles
August 04, 2010, 08:27:01 am
Hi Kurund,

My UF base URL is the http://www.sitename.com version.  Also, the Joomla configuration has the http://www.sitename.com version as its base URL. 

I have a rule in the .htaccess file to redirect http://sitename.com to http://www.sitename.com.  So everything is configured correctly from what I have read on using SSL with Civi. 

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Force SSL setting troubles
August 04, 2010, 10:47:24 pm
Sorry can't think of any thing else. May be someone else in the community have better idea.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Force SSL setting troubles

This forum was archived on 2017-11-26.