Answers.Body: <p>The bug was fixed by Yashodha of the core team in 4.6.9:<br>
  <a href="https://issues.civicrm.org/jira/browse/CRM-17015" rel="nofollow">https://issues.civicrm.org/jira/browse/CRM-17015</a></p>
  
  <p>In the mean time, there is a 3 line patch that you can apply:<br>
  <a href="https://github.com/civicrm/civicrm-core/pull/6720/files" rel="nofollow">https://github.com/civicrm/civicrm-core/pull/6720/files</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-14T13:49:00.370Z
Answers.LastActivityDate: 2015-09-14T13:49:00.370Z
Answers.UserDisplayName: bgm
Answers.Body: <p>The error is because the max participant limit is reached for the price option.</p>
  
  <p>You probably need to check the Max Participant limit in your Price set/field</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-16T01:18:22.173Z
Answers.Text: thank you for your suggestion; the Max Participant limit for this field is null; also, folks can register just fine when paying with a credit card (via the PayPal Pro payment processor) but get this error message when paying with PayPal (also via the PayPal Pro payment processor)
Answers.UserDisplayName: MtnPavlas
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-22T02:04:25.770Z
Answers.Text: I have tried leaving the Max Participant Limit field null as well as 999 and I am experiencing the same problem as MtnPavlas. I am on CiviCRM 4.6.2 on Joomla 3.4.1.
  
  Unfortunately some of your options have now sold out for one or more participants. You have been returned to the start of the registration process and any sold out events have been removed from your selections. You will not be able to continue until you review your booking and select different events if you wish.
  
  Sold out: Please note that the options which are marked or selected are sold out for participant being viewed.
Answers.UserDisplayName: KLDavenport
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-15T04:16:47.383Z
Answers.Text: Looking through the code it looks like it might be failing on the formRule. The form is not saving variables (possibly $form->_feeBlock) in such a way as to make them accessible when the browser returns. https://github.com/civicrm/civicrm-core/blob/master/CRM/Event/Form/Registration/Confirm.php
Answers.UserDisplayName: KLDavenport
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-15T21:59:14.690Z
Answers.Text: Just hit this issue too. null participants.
Answers.UserDisplayName: Sonicthoughts
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-15T22:06:21.663Z
Answers.Text: @KLDavenport - you should make your comment an answer.  The OP says that this is not sold out.  This is a bug I think.
Answers.UserDisplayName: Sonicthoughts
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-16T13:55:20.533Z
Answers.Text: I ran into this issue as well. I have both a credit card payment gateway, and we offer PayPal Express as a secondary gateway. When using a credit card (form post), it works fine. When using PayPal Express, it gives the sold out error (civi 4.6.4).
Answers.UserDisplayName: bgm
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-16T22:28:34.963Z
Answers.Text: My comment is not an answer it's just a though, either way I have no way of playing around or implementing this in the CiviCRM.
Answers.UserDisplayName: KLDavenport
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-12T07:20:26.253Z
Answers.Text: Issue submitted here: https://issues.civicrm.org/jira/browse/CRM-17015
Answers.UserDisplayName: KLDavenport
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-15T10:55:04.510Z
Answers.LastActivityDate: 2015-05-15T17:02:55.307Z
Answers.LastEditDate: 2015-05-15T17:02:55.307Z
Answers.UserDisplayName: Ghost
Body: <p>I'd be grateful for any pointers regarding an issue with event registration, using PayPal Pro, when paying with a PayPal account (paying with a credit card, also using PayPal Pro processor works just fine).</p>
  
  <p>The <strong>user experience</strong>: fill out event registration info, click the PayPal button, log into PayPal and submit the payment, back on the confirmation page click on Continue.</p>
  
  <p>The <strong>result</strong>: user gets the following error messages (which are incorrect as the event is not sold out):</p>
  
  <blockquote>
    <p>Unfortunately some of your options have now sold out for one or more
    participants. You have been returned to the start of the registration
    process and any sold out events have been removed from your
    selections. You will not be able to continue until you review your
    booking and select different events if you wish. Sold out: Please note
    that the options which are marked or selected are sold out for
    participant being viewed.</p>
  </blockquote>
  
  <p>System:
  Joomla 3.4.1
  CiviCRM 4.6.2</p>
  
  <p>Any ideas on what I could check on? Thanks a million, P</p>
  
Tags: <civievent><civimember><payment-processor><paypal>
Title: "Sold out" error message when registering event with PayPal payment (event is not full though)
ThreadText: # "Sold out" error message when registering event with PayPal payment (event is not full though)
  
  (Asked by: username_0 on 2015-05-15)
  
  I'd be grateful for any pointers regarding an issue with event registration, using PayPal Pro, when paying with a PayPal account (paying with a credit card, also using PayPal Pro processor works just fine).
  
  The **user experience**: fill out event registration info, click the PayPal button, log into PayPal and submit the payment, back on the confirmation page click on Continue.
  
  The **result**: user gets the following error messages (which are incorrect as the event is not sold out):
  
  > Unfortunately some of your options have now sold out for one or more
  > participants. You have been returned to the start of the registration
  > process and any sold out events have been removed from your
  > selections. You will not be able to continue until you review your
  > booking and select different events if you wish. Sold out: Please note
  > that the options which are marked or selected are sold out for
  > participant being viewed.
  
  System:
  Joomla 3.4.1
  CiviCRM 4.6.2
  
  Any ideas on what I could check on? Thanks a million, P
  
  **Tags:** civievent, civimember, payment-processor, paypal
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-09-14. Score: 2
  
  The bug was fixed by Yashodha of the core team in 4.6.9:  
  <https://issues.civicrm.org/jira/browse/CRM-17015>
  
  In the mean time, there is a 3 line patch that you can apply:  
  <https://github.com/civicrm/civicrm-core/pull/6720/files>
  
  
  ---
  
  ### Answer by username_2 on 2015-05-15. Score: 2
  
  The error is because the max participant limit is reached for the price option.
  
  You probably need to check the Max Participant limit in your Price set/field
  
  > **Comments:**
  > **username_0**: thank you for your suggestion; the Max Participant limit for this field is null; also, folks can register just fine when paying with a credit card (via the PayPal Pro payment processor) but get this error message when paying with PayPal (also via the PayPal Pro payment processor)  
  > **username_3**: I have tried leaving the Max Participant Limit field null as well as 999 and I am experiencing the same problem as username_0. I am on CiviCRM 4.6.2 on Joomla 3.4.1.  Unfortunately some of your options have now sold out for one or more participants. You have been returned to the start of the registration process and any sold out events have been removed from your selections. You will not be able to continue until you review your booking and select different events if you wish.  Sold out: Please note that the options which are marked or selected are sold out for participant being viewed.  
  > **username_3**: Looking through the code it looks like it might be failing on the formRule. The form is not saving variables (possibly $form->_feeBlock) in such a way as to make them accessible when the browser returns. https://github.com/civicrm/civicrm-core/blob/master/CRM/Event/Form/Registration/Confirm.php  
  > **username_4**: Just hit this issue too. null participants.  
  > **username_4**: @username_3 - you should make your comment an answer.  The OP says that this is not sold out.  This is a bug I think.  
  > **username_1**: I ran into this issue as well. I have both a credit card payment gateway, and we offer PayPal Express as a secondary gateway. When using a credit card (form post), it works fine. When using PayPal Express, it gives the sold out error (civi 4.6.4).  
  > **username_3**: My comment is not an answer it's just a though, either way I have no way of playing around or implementing this in the CiviCRM.  
  > **username_3**: Issue submitted here: https://issues.civicrm.org/jira/browse/CRM-17015  
  
  ---
  
  