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) »
  • 3.3.1: Force Security URLs will not set
Pages: [1]

Author Topic: 3.3.1: Force Security URLs will not set  (Read 1090 times)

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
3.3.1: Force Security URLs will not set
December 14, 2010, 05:04:35 pm
I am having trouble getting Force Security URLs to set in the CiviAdmin UI. When I tick the box, it just hangs. In what file is this setting? Cannot find it in civicrm.settings.php.

Thank you.
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: 3.3.1: Force Security URLs will not set
December 15, 2010, 10:45:43 am
Bruce - First guess is that the SSL certificate might not be installed properly or as expected. Are you getting an error message when you try to save the Resource URLs form? On 3.3., I get this error when I try to save on a site that doesn't have a certificate installed:

"You need to set up a secure server before you can use the Force Secure URLs option"

Have you verified that you can load the page (or any in your civi install) by just swapping https for http in the URL?

FYI, the flag is stored in civicrm_domain.config_backend as part of a serialized array.
Protect your investment in CiviCRM by  becoming a Member!

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Re: 3.3.1: Force Security URLs will not set
December 17, 2010, 12:30:09 am
Nope. All that is good. The SSL cert works. Tested it with other pages and just adding https to the donation form.
We just finished with some serious payment processor issues on a 3.2.4 to 3.3.1 upgrade. I want to let it rest a bit and I'll try it again.

Thanx
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Re: 3.3.1: Force Security URLs will not set
January 17, 2011, 07:02:57 am
Dave,
The SSL cert is working fine. The form comes along with all the elements under SSL except for a few images, ie, banner and menu images. It's throwing an unsecured site error message in browsers. I downgraded to 3.2.5 and still getting the same results.

Additionally, the Force Secure URLs (SSL) is still not working and I can access the Admin console under HTTPS.

Thanx
Bruce
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: 3.3.1: Force Security URLs will not set
January 17, 2011, 07:58:09 am
Not sure what's going on - maybe .htaccess related ?? Regarding unsecured site error messages, I recall some forum posts on this a while back which I think were related to some issues with a javascript widget (might have been tinyMce or ??). Have you tried disabling other plugins / components?
Protect your investment in CiviCRM by  becoming a Member!

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Re: 3.3.1: Force Security URLs will not set
January 17, 2011, 08:00:05 pm
Will try it.
I plan to upgrade the whole instance to Joomla 1.6 with CiviCRM 3.3.x this month as it is. I might just suffer through it until I can get that stable. It just drives the Internet Explorer users on my board of directors nuts as they think that many people are skipping over making a donation because of the IE stupid error popup.
Thanx.
Bruce
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

bmw

  • I post occasionally
  • **
  • Posts: 103
  • Karma: 4
    • Alcohol Justice - The Industry Watchdog
  • CiviCRM version: 4.5.8
  • CMS version: Joomla! 3.4.0
  • MySQL version: 5.5.42-cli
  • PHP version: 5.3.27
Re: 3.3.1: Force Security URLs will not set
January 18, 2011, 09:18:44 am
Dave,
I have purchased a new SSL cert with EV last night. I'll let you know if that solves the problem but the current cert is install properly according to both GeoTrust, Apache, Joomla and CiviCRM documentation.

One other thing about this that is driving me nuts, not all the template elements are being pushed under SSL just for the CiviCRM webforms. What is the usual culprit for images and other files? I already know about using relative versus absolute URLs. Is the "Force Secure URLs" flag the reason? Can I force the flag from directly in the file you reference?

But, it seems that php code that refers to the base URL is not being picked up by CiviCRM.
As follows, this example code is in the main template. When the CiviCRM webform is called upon, it is not converted to HTTPS and remains HTTP in the resulting HTML:
Code: [Select]
<script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.cssmenu.js"></script>
I have had to put the relative URLs in for these lines in order to make it work.
Bruce Wolfe, M.S.W., CIO
Alcohol Justice, 501(c)3

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: 3.3.1: Force Security URLs will not set
January 20, 2011, 02:36:22 pm
Bruce - the <script .../> line you included is not a CiviCRM file afaik.
Protect your investment in CiviCRM by  becoming a Member!

SIRKGM14vg

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.3.3
  • CMS version: Jooma! 1.5.9
  • MySQL version: 5
  • PHP version: 5.2
Re: 3.3.1: Force Security URLs will not set
January 23, 2011, 10:27:50 am
I am having the same issue with 3.3.3 - Although you can set this setting in Joomla 1.5.9 in the Global Configuration menu.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • 3.3.1: Force Security URLs will not set

This forum was archived on 2017-11-26.