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 CiviEvent (Moderator: Yashodha Chaku) »
  • Event Registration Error when using Forced SSL
Pages: [1]

Author Topic: Event Registration Error when using Forced SSL  (Read 1944 times)

bsewall

  • Guest
Event Registration Error when using Forced SSL
October 24, 2007, 02:41:54 pm
I'm running into an error when I try to enable SSL with the CiviEvent module.

I have "Forced SSL" enabled in CiviCRM › Administer CiviCRM › Global Settings.  When I got to register for an event, I receive the error:
Parse error: parse error, unexpected ',', expecting '(' in /homepages/3/d184899930/htdocs/store/sites/all/modules/civicrm/drupal/civicrm.module on line 477

This error ONLY occurs when I enable the SSL connection.  Any ideas on how to get SSL working with the Event registration / payment?

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: Event Registration Error when using Forced SSL
October 24, 2007, 05:21:13 pm

1. what version and revision of civicrm

2. can u cut-n-paste lines 470-480 of: /homepages/3/d184899930/htdocs/store/sites/all/modules/civicrm/drupal/civicrm.module

3. can u upgrade to the latest 1.9 and see if the problem is still present

thanx

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

bsewall

  • Guest
Re: Event Registration Error when using Forced SSL
October 24, 2007, 05:36:41 pm
It happened in the previous version 1.8 and also in the new version 1.9.

Line 470-480:
Code: [Select]
        CRM_Core_BAO_UFMatch::synchronize( $user, true, 'Drupal', $ctype );
    }

    $userID = CRM_Core_BAO_UFMatch::getContactId( $user->uid );

    if ( $userID ) {
        $html = CRM_Core_BAO_UFGroup::getEditHTML( $userID, '',
                                                   CRM_Core_Action::UPDATE, true,
                                                   $reset, null,
                                                   $doNotProcess, $ctype );
    } else {


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: Event Registration Error when using Forced SSL
October 24, 2007, 05:39:39 pm

If i had to guess, your https server is using php4 rather than php5, hence u r getting the error when u turn on ssl

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

bsewall

  • Guest
Re: Event Registration Error when using Forced SSL
October 24, 2007, 05:53:38 pm
I believe you are correct.  I'm running through 1&1.  Their dedicated SSL uses PHP4.  I have to force PHP5 through a .htaccess file, but the SSL connection seems to be bypassing that.

Do you know if there's a way to get the SSL connection to read the .htaccess file?

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: Event Registration Error when using Forced SSL
October 24, 2007, 06:06:48 pm

sorry no idea. u'll have to ask them about it. Can u please post back the solution for other folks

thanx

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

bsewall

  • Guest
Re: Event Registration Error when using Forced SSL
October 24, 2007, 08:15:03 pm
Will do.  I have an ticket in with them now.  Hopefully I'll hear back from them soon.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event Registration Error when using Forced SSL

This forum was archived on 2017-11-26.