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) »
  • HTTPS Not Enabled error
Pages: [1]

Author Topic: HTTPS Not Enabled error  (Read 1973 times)

Wonder95

  • Guest
HTTPS Not Enabled error
June 27, 2008, 08:16:04 am
I have two contribution pages that have been working just fine with 1.9.  Yesterday I upgraded to 2.4, and it seemed to go fine.  However, whenever I go to my membership signup page, I get an error saying that HTTPS is not enabled on this machine with the following backtrace:

Code: [Select]
/home/campus/public_html/members/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 258
/home/campus/public_html/members/sites/all/modules/civicrm/CRM/Utils/System.php, fatal, 720
/home/campus/public_html/members/sites/all/modules/civicrm/CRM/Contribute/Invoke.php, redirectToSSL, 97
/home/campus/public_html/members/sites/all/modules/civicrm/CRM/Core/Component.php, main, 130
/home/campus/public_html/members/sites/all/modules/civicrm/CRM/Core/Invoke.php, invoke, 158
/home/campus/public_html/members/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 329
, civicrm_invoke,
/home/campus/public_html/members/includes/menu.inc, call_user_func_array, 418
/home/campus/public_html/members/index.php, menu_execute_active_handler, 15

I have another contribution page that still works fine.  The only thing that has changed was the upgrade.  I checked with my host, and SSL is still installed and working fine.  How can I fix this error?

Thanks.

Wonder95

  • Guest
Re: HTTPS Not Enabled error
June 27, 2008, 10:20:47 am
A little additional info.  If I set the menu link for my membership signup page to https://, it works fine.  It appears that the problem is when CiviCRM tries to redirect an http:// page to https://.  For example, I'm working on a new event registration page, and when I try to view it, I get the error message above, and on the screen where you set the Force secure URL setting, the message there is displayed that I must enable SSL on the server.  So it seems that CiviCRM thinks HTTPS is not enabled on the server, but if you navigate directly to https://, it works fine.  As I mentioned above, nothing has changed on the server other than the CiviCRM upgrade.

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: HTTPS Not Enabled error
June 27, 2008, 12:34:19 pm

Can u check that the main drupal page can be retrieved by anonymous user via https. so for our demo server case this will be:

https://drupal.demo.civicrm.org/

I suspect this returns a non-200 code and hence we throw the error message

You might want to add some debugging code and/or tweak the code at:

CRM/Utils/System.php, line 617 (function checkURL)

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

Wonder95

  • Guest
Re: HTTPS Not Enabled error
June 27, 2008, 12:58:32 pm
It does not look like an anonymous user can access the main page via https.  When I enter that URL, it just goes to the http page.

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: HTTPS Not Enabled error
June 27, 2008, 06:17:20 pm

i've filed and fixed this issue for trunk: http://issues.civicrm.org/jira/browse/CRM-3246

So it basically tries to retrieve the page with the same cookies as the current user, which will work in more cases

You can try backporting the patch, the diff is here:

http://fisheye.civicrm.org/browse/CiviCRM/trunk/CRM/Utils/System.php?r1=14751&r2=15435&u=3&ignore=&k=

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

Wonder95

  • Guest
Re: HTTPS Not Enabled error
June 27, 2008, 09:20:39 pm
Well, I  applied to diff to System.php and uploaded it, but I see no difference.  I still can't get to the main page with https: as an anonymous user, and I still get the error message when I try to enable the Force Secure URLs setting.  I restarted my browser and cleared the cache just to make sure.  Is there something else I'm supposed to do?

Thanks.

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: HTTPS Not Enabled error
June 28, 2008, 03:11:22 pm

can u get to the main page via https as an authenticated user, i.e. the user who is trying to access the membership page

You might also want to add some debugging code and/or tweak the code at:

CRM/Utils/System.php, line 617 (function checkURL)

lobo

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • HTTPS Not Enabled error

This forum was archived on 2017-11-26.