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) »
  • SOLVED: Requiring SSL is forcing a redirect loop -
Pages: [1]

Author Topic: SOLVED: Requiring SSL is forcing a redirect loop -  (Read 2997 times)

tdav20

  • Guest
SOLVED: Requiring SSL is forcing a redirect loop -
September 02, 2008, 11:37:25 am
Ok, so I have inadvertently required SSL on my site, which does NOT currently have a certificate installed on it.  I am able to open all parts of the component, but it will NOT let me go to Administer CiviCRM - it knocks me into a redirect loop.  Where can i change the requirement manually in a php file so that i can get back to the admin functions?  Thanks!
« Last Edit: September 03, 2008, 09:23:04 am by tdav20 »

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: Requiring SSL is forcing a redirect loop -
September 02, 2008, 11:43:42 am

comment out line 585 in CRM/Core/Invoke.php

CRM_Utils_System::redirectToSSL( false );

alternatively you can fix that function in CRM/Utils/System.php to not do the redirection

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

tdav20

  • Guest
Re: Requiring SSL is forcing a redirect loop -
September 03, 2008, 09:22:22 am
Awesome!!!  THANK YOU!!!  Now, where do i find that for the donate page.  I'm on a temp server until I get this thing going!!

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: SOLVED: Requiring SSL is forcing a redirect loop -
September 03, 2008, 10:58:48 am

You should just hack the function redirectToSSL at CRM/Utils/System.php

all the code calls that function

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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • SOLVED: Requiring SSL is forcing a redirect loop -

This forum was archived on 2017-11-26.