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 discount fees broken in 2.1.1?
Pages: [1]

Author Topic: Event discount fees broken in 2.1.1?  (Read 1212 times)

fearlsgroove

  • I’m new here
  • *
  • Posts: 25
  • Karma: 2
Event discount fees broken in 2.1.1?
October 27, 2008, 08:04:38 am
I'm trying to use event discount fees on a production site (drupal 6.6, civi 2.1.1) but they don't appear to take effect - the prices remain the same on the online registration page. Can anyone else confirm this is broken for 2.1.x?

On the demo site, which appears to be running a subversion build, things are even more broke. Prices don't show at all on the registration page, and when going back to configure event fees after the event has already been created, it craps out with the following:

Code: [Select]
    * warning: Invalid argument supplied for foreach() in /var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Event/Form/ManageEvent/Fee.php on line 132.
    * warning: array_combine() expects parameter 1 to be array, null given in /var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Event/Form/ManageEvent/Fee.php on line 142.
    * warning: Invalid argument supplied for foreach() in /var/www/drupal-6.civicrm.org/public/sites/drupal.demo.civicrm.org/modules/civicrm/CRM/Event/Form/ManageEvent/Fee.php on line 144.

Here's a link to an example event on the sandbox:
http://drupal.demo.civicrm.org/civicrm/event/manage?reset=1&action=update&id=83&subPage=Fee

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Event discount fees broken in 2.1.1?
October 28, 2008, 04:40:31 pm
I suspect demo had some erroneous data, which threw the errors  :(
Can you replicate it on demo now?
It works fine, check discounts are reflected https://drupal.demo.civicrm.org/civicrm/event/register?reset=1&action=preview&id=1
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

fearlsgroove

  • I’m new here
  • *
  • Posts: 25
  • Karma: 2
Re: Event discount fees broken in 2.1.1?
October 29, 2008, 02:05:13 pm
It seems it's fairly easy to get these events into an inconsistent state. This isn't going to be helpful for devs, but what I've found is that 2 events created by others were broken in different ways. One refused to display the discount price. A new event created with identical data worked fine.  The second event was a free event that accepted registrations for volunteers. It refused to display the registration page, puking withe following backtrace:

Code: [Select]
<SITEROOT>/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 260
<SITEROOT>/sites/all/modules/civicrm/CRM/Core/DAO.php, fatal, 708
<SITEROOT>/sites/all/modules/civicrm/CRM/Event/Form/Registration/Register.php, getFieldValue, 155
<SITEROOT>/sites/all/modules/civicrm/CRM/Core/Form.php, setDefaultValues, 331
<SITEROOT>/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php, buildForm, 98
<SITEROOT>/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
<SITEROOT>/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
<SITEROOT>/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 232
<SITEROOT>/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 197
<SITEROOT>/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 315
, civicrm_invoke,
<SITEROOT>/includes/menu.inc, call_user_func_array, 348
<SITEROOT>/index.php, menu_execute_active_handler, 18

Again an identical event worked fine. I'm fairly certain I can reproduce at least the discount rate issue when I get some time ... I'll post a bug when I do

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event discount fees broken in 2.1.1?

This forum was archived on 2017-11-26.