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 expiration
Pages: [1]

Author Topic: Event expiration  (Read 1487 times)

hp3kman

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 4
Event expiration
September 13, 2008, 06:50:01 pm
Perhaps this is a silly question, but I can't seem to find an answer anywhere...and I'm a little confused.

My assumption was that, because there is a registration end date, that as of that date and time, if the event were selected from the front end, that Civi would indicate that registration time for the event had passed...it doesn't.

Also, what is the enable/disable in Manage Events...it doesn't change the allow online registration flag in the event record...what, exactly, does it do...

I disabled the event, and then unpublished the menu item, but there really must be a better way...I shouldn't have to babysit the system, when I've already told it when to stop taking registrations...

Has no one else come across this?


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 expiration
September 13, 2008, 08:30:08 pm

can you reproduce this on our demo machine. i.e. set the online registration date to yesterday etc and see what happens. The code is the same for drupal / joomla (frontend/backend) so that should not matter

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

hp3kman

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 4
Re: Event expiration
September 14, 2008, 09:21:11 am
will try...thanks, lobo...

where do I go to do this...went to the joomla demo site, but don't see how to get into the administrator section...
« Last Edit: September 14, 2008, 09:29:31 am by hp3kman »

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 expiration
September 14, 2008, 10:51:23 am

you should try it on the drupal demo (http://drupal.demo.civicrm.org/) the behavior should be the same for both drupal and joomla

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

hp3kman

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 4
Re: Event expiration
September 14, 2008, 03:58:00 pm
Hmmm, lobo...had another look at this; it's probably working as designed, but it doesn't really make sense for the Joomla way of doing things...perhaps it has more to do w/ how the front-end is displayed in Joomla as opposed to Drupal, or perhaps I just don't know what I'm doing (a distinct possibility)...

In the drupal demo, everything seems to work as intended; if you put a registration stop date in, it no longer displays the verbiage to "Register", but it still displays the event. If you disable the event, it doesn't show up in the front listing at all, which is desireable.

However, with joomla, I'm displaying each event as a menu item; is there a way to do a listing of all events as in drupal example (www.drupal.demo.civicrm/event/reset=1)??? If I display it in a menu, and put in a stop registration date, it no longer displays the link to register. If, however, I disable it, I get the following error:backTrace


/home/content/g/f/s/gfsoadmin/html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 258
/home/content/g/f/s/gfsoadmin/html/administrator/components/com_civicrm/civicrm/CRM/Event/Page/EventInfo.php, fatal, 82
/home/content/g/f/s/gfsoadmin/html/administrator/components/com_civicrm/civicrm/CRM/Event/Invoke.php, run, 107
/home/content/g/f/s/gfsoadmin/html/administrator/components/com_civicrm/civicrm/CRM/Core/Component.php, main, 130
/home/content/g/f/s/gfsoadmin/html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, invoke, 158
/home/content/g/f/s/gfsoadmin/html/components/com_civicrm/civicrm.php, invoke, 82
/home/content/g/f/s/gfsoadmin/html/components/com_civicrm/civicrm.php, civicrm_invoke, 26
/home/content/g/f/s/gfsoadmin/html/index.php, require_once, 238


 Sorry. A non-recoverable error has occurred.
The page you requested is currently unavailable.

Return to home page.

This makes sense, since the menu system in joomla is simply calling for an event that is disabled, and doesn't quite know how to handle it; that's why I'll need to manually take the expired events out of the menu...not really sure if you can do anything about this, since, really, it's the menu system in Joomla that's displaying the Civi component, and there is no way to 'expire' a menu item.

A possible workaround might be in Civi's front-end menu component...to display "Event has passed" or some such when an item is disabled...This will take some more input from other users to figure out what is the best way of handling it.

Thanks for pointing me in the right direction to do the testing; this seems it is another area in which Drupal works fine, but Joomla is lacking.




Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event expiration

This forum was archived on 2017-11-26.