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) »
  • Discounted fee set not working
Pages: [1]

Author Topic: Discounted fee set not working  (Read 1265 times)

pcoutas

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: WordPress 3.9.1
  • MySQL version: 5.5.32
Discounted fee set not working
March 26, 2010, 09:17:23 pm
Hi all,

This is driving me a bit batty and I hope someone can help. I've just upgraded to 3.1.3 on Joomla and trying to configure a new event with an early bird discount. I can "add discount set to fee table" with no problems, but then when I try and fill in the discounted fees and hit "save" the discount fee information disappears upon reload and I get the following error message:

Warning: array_combine() expects parameter 1 to be array, null given in ...website.../administrator/components/com_civicrm/civicrm/CRM/Event/Form/ManageEvent/Fee.php on line 146

Warning: Invalid argument supplied for foreach() in ...website.../administrator/components/com_civicrm/civicrm/CRM/Event/Form/ManageEvent/Fee.php on line 148

Any ideas?

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: Discounted fee set not working
March 26, 2010, 11:28:30 pm

can you try to reproduce this on our demo machine

http://joomla.demo.civicrm.org/

thanx

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

aspagarino

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 10
  • San Diego Joomla
    • California Center for Sustainable Energy
  • CiviCRM version: CiviCRM 4.3
  • CMS version: Drupal 7
Re: Discounted fee set not working
May 26, 2010, 03:08:16 pm
I have the same problem and I just reproduced the error on the demo site.

  • Entered and Event called Paid Event July 4th
  • Under the Fee created a Fee Label Performance Event (Jul. 4) price= 20
  • Created two discount set for Spring Early Bird and Summer Early Bird with different dates
  • Put Label and values for early discount table
  • Pressed Save

Got the following error on the demo site:

Warning: array_combine() expects parameter 1 to be array, null given in /var/www/drupal-6.civicrm.org/svn/civicrm3.1/CRM/Event/Form/ManageEvent/Fee.php  on line 146

Warning: Invalid argument supplied for foreach() in /var/www/drupal-6.civicrm.org/svn/civicrm3.1/CRM/Event/Form/ManageEvent/Fee.php on line 148

Warning: array_combine() expects parameter 1 to be array, null given in /var/www/drupal-6.civicrm.org/svn/civicrm3.1/CRM/Event/Form/ManageEvent/Fee.php on line 146

Warning: Invalid argument supplied for foreach() in /var/www/drupal-6.civicrm.org/svn/civicrm3.1/CRM/Event/Form/ManageEvent/Fee.php on line 148
Andres

Open Source is Green

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Discounted fee set not working
May 27, 2010, 12:32:56 am
aspagarino :

We 'll have a look at it and get back on this  :)

-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

neha

  • I’m new here
  • *
  • Posts: 10
  • Karma: 1
  • CiviCRM version: v3.4, v4.0
  • CMS version: Drupal 6 / 7, Joomla 1.5 / 1.6
  • PHP version: php 5.3
Re: Discounted fee set not working
May 27, 2010, 05:04:24 am

aspagarino,

I followed the below steps but could not replicate the error

1.created an event with title and event type
2.On Event Fees page, entered Regular fees, created two discount sets for them and then entered Discounted fees.
after pressing save button it saved all the amount records and page reloaded with no warnings.

Could you give some more details

Neha

aspagarino

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 10
  • San Diego Joomla
    • California Center for Sustainable Energy
  • CiviCRM version: CiviCRM 4.3
  • CMS version: Drupal 7
Re: Discounted fee set not working
May 27, 2010, 11:02:20 am
Neha,

I just tired again and I still get the errors on the demo site.

This is what I added for the FEES tab:
  • Payment Processor PP Pro
  • On the Regular Fees: Performance Event (Jul. 4), and price 50
  • On the Discount Set, I put 2: Spring Early Registration Discount, and date 5/28; and Summer Early Registration Discount on 5/29
  • On the Discount Table I put one: Early Registration Discount, I then put 40 and 45 for Spring and Summer

I actually try different number and got the same error... I am attaching screenshots.

Andres

Open Source is Green

aspagarino

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 10
  • San Diego Joomla
    • California Center for Sustainable Energy
  • CiviCRM version: CiviCRM 4.3
  • CMS version: Drupal 7
Re: Discounted fee set not working
May 27, 2010, 03:22:26 pm
I tried again and it seems that the discount set title cannot be too long.

I changed the text on the Discount Set from "Spring Early Registration Discount" to "Spring" (as well for the summer) and now it is not giving any errors. However if you go back and change the Discount Set descriptions to something longer you get the nasty errors.



Andres

Open Source is Green

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Discounted fee set not working

This forum was archived on 2017-11-26.