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) »
  • Error message when event is full
Pages: [1]

Author Topic: Error message when event is full  (Read 2362 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Error message when event is full
November 08, 2007, 09:08:52 pm
I created a Joomla menu item that points to the CiviCRM component, with the parameter for "Online Event Registration".  The menu item works fine as long as the event is not full.  After the maximum number of particpants is reached, I get the following error message:

Fatal error: Call to undefined method CRM_Utils_System::fatal() in /home/spuccorg/public_html/test/administrator/components/com_civicrm/civicrm/CRM/Event/Form/Registration.php on line 159

I am using Joomla 1.0.13 and CiviCRM 1.8.11536.

Thanks,
Sarah
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

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: Error message when event is full
November 08, 2007, 10:45:09 pm

This is a typo in the code and will be fixed in the next 1.9 release. The fix is quite easy, change line 159 to:

Code: [Select]
                CRM_Core_Error::fatal( $eventFull );

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

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error message when event is full
November 10, 2007, 09:17:51 am
I changed the code to match your suggestion, but the result was not user friendly. So I changed 159 to
Code: [Select]
   CRM_Core_Error::statusBounce( '' );
Which in my opinion is much more user friendly.  Could this be used in version 1.9 instead ?
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

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: Error message when event is full
November 10, 2007, 09:53:42 am

We've moved away from using statusBounce since it does not work for joomla, and i dont know a decent workaround for this issue.

In 2.0, we'll switch to using statusBounce for Drupal and fatal for Joomla and make the change at the lower level

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

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: Error message when event is full
November 10, 2007, 11:09:43 am

This is now fixed in 2.0. thanx for the nudge on that and i think the solution of using statusBounce for drupal and fatal for joomla works well and is more reasonable.

We only make critical bug fixes in a release version and hence pushed this to 2.0

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

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error message when event is full
November 10, 2007, 01:36:43 pm
Just curious- I am using Joomla 1.0.13 and the "statusBounce" function works for me. What issue did you see with Joomla?

Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

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: Error message when event is full
November 10, 2007, 06:52:52 pm

argh, my mistake :( I confused two functions (statusBounce and setMessage)). This will work nicely when you direct the user to a registration page from the event info page

i've rolled back my 2.0 change and used statusBounce in 1.9 per your earlier suggestion :)

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 CiviEvent (Moderator: Yashodha Chaku) »
  • Error message when event is full

This forum was archived on 2017-11-26.