Answers.Body: <p>Its a known <a href="https://issues.civicrm.org/jira/browse/CRM-4449" rel="nofollow noreferrer">bug</a>, and there is a patch to fix it. You can follow the following steps to fix it:</p>
  
  <p>Open file: civicrm/CRM/Core/Payment/PayPalImpl.php 
  Search for:</p>
  
  <p><code>$sub = empty( $params['is_recur'] ) ? 'xclick' : 'subscriptions';</code></p>
  
  <p>Replace with:</p>
  
  <p><code>$sub = empty( $params['is_recur'] ) ? 'cgi-bin/webscr' : 'subscriptions';</code></p>
  
  <p>It should be around line number 404</p>
  
  <p>Hope it helps.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-12T21:00:46.127Z
Answers.LastActivityDate: 2018-01-12T21:00:46.127Z
Answers.UserDisplayName: Hassan Farooq
Body: <p>I struggle a lot with this issue, and couldn't find anything to help me so I hope here could: <br/><br/>
  I did set up an event, with different fees, and one of them is free. When people check not free, everything is going fine, but when they check free, they are not redirected correctly after "confirm your choice": the page is bugged and they do not receive any confirmation email. They are redirected on an error page (HTTP ERROR 500)
  So, even though they are registered, they cannot see it and try again and again, registering each time. <br/>
  The payment method is Paypal. <br/><br/>
  The CMS I am on is Joomla, and I use version 4.7.25 of CiviCRM.<br/><br/>
  This is a big problem and I don't see any way out, so thank you for your help.
  <br/><br/>
  Some screens :
  <br/><br/>
  <a href="https://i.sstatic.net/ltgh3.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ltgh3.png" alt="fees"></a></p>
  
  <p><a href="https://i.sstatic.net/6Xbe6.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6Xbe6.png" alt="confirm"></a></p>
  
  <p><a href="https://i.sstatic.net/3RxPn.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/3RxPn.png" alt="error"></a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-11T17:10:35.053Z
Comments.Text: If Free - Then why to use Payment processor in the first place? - correct me if I am wrong
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-11T21:34:37.177Z
Comments.Text: @INTA, welcome to CiviCRM SE! Can you please edit your question to include your version of CiviCRM and what CMS you are using. Thanks
Comments.UserDisplayName: KilakwaBT
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-12T04:17:51.990Z
Comments.Text: Posting screenshot of error message and/or price fees will be very helpful to trace your problem.
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-12T15:13:51.630Z
Comments.Text: @Ramesh actually there is different fees, and the other needs to be paid
Comments.UserDisplayName: INTA
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-12T16:44:12.523Z
Comments.Text: @INTA - Please try to post some screen shot that should help
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-13T21:57:26.047Z
Comments.Text: Sounds similar to https://civicrm.stackexchange.com/questions/22049/fatal-error-using-paypal-in-version-4-7-29
Comments.UserDisplayName: William Mortada
Tags: <civievent><paypal><error-page><online-registration>
Title: Bad redirection after registration for free event
ThreadText: # Bad redirection after registration for free event
  
  (Asked by: username_0 on 2018-01-11)
  
  I struggle a lot with this issue, and couldn't find anything to help me so I hope here could:   
    
  I did set up an event, with different fees, and one of them is free. When people check not free, everything is going fine, but when they check free, they are not redirected correctly after "confirm your choice": the page is bugged and they do not receive any confirmation email. They are redirected on an error page (HTTP ERROR 500)
  So, even though they are registered, they cannot see it and try again and again, registering each time.   
  The payment method is Paypal.   
    
  The CMS I am on is Joomla, and I use version 4.7.25 of CiviCRM.  
    
  This is a big problem and I don't see any way out, so thank you for your help.
    
    
  Some screens :
    
    
  [![fees](https://i.sstatic.net/ltgh3.png)](https://i.sstatic.net/ltgh3.png)
  
  [![confirm](https://i.sstatic.net/6Xbe6.png)](https://i.sstatic.net/6Xbe6.png)
  
  [![error](https://i.sstatic.net/3RxPn.png)](https://i.sstatic.net/3RxPn.png)
  
  **Tags:** civievent, paypal, error-page, online-registration
  
  > **Comments:**
  > **username_1**: If Free - Then why to use Payment processor in the first place? - correct me if I am wrong  
  > **username_2**: @username_0, welcome to CiviCRM SE! Can you please edit your question to include your version of CiviCRM and what CMS you are using. Thanks  
  > **username_3**: Posting screenshot of error message and/or price fees will be very helpful to trace your problem.  
  > **username_0**: @Ramesh actually there is different fees, and the other needs to be paid  
  > **username_1**: @username_0 - Please try to post some screen shot that should help  
  > **username_4**: Sounds similar to https://civicrm.stackexchange.com/questions/22049/fatal-error-using-paypal-in-version-4-7-29  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_5 on 2018-01-12. Score: 1
  
  Its a known [bug](https://issues.civicrm.org/jira/browse/CRM-4449), and there is a patch to fix it. You can follow the following steps to fix it:
  
  Open file: civicrm/CRM/Core/Payment/PayPalImpl.php
  Search for:
  
  `$sub = empty( $params['is_recur'] ) ? 'xclick' : 'subscriptions';`
  
  Replace with:
  
  `$sub = empty( $params['is_recur'] ) ? 'cgi-bin/webscr' : 'subscriptions';`
  
  It should be around line number 404
  
  Hope it helps.
  
  
  ---
  
  