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) »
  • Fatal Error trying to delete event fee
Pages: [1]

Author Topic: Fatal Error trying to delete event fee  (Read 4108 times)

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
Fatal Error trying to delete event fee
August 17, 2013, 10:43:07 am
Hi all,

I'm getting a fatal error when I try to delete an event fee. I've pasted the stack trace below, but I haven't been able to figure out why the fid is null. I'd be grateful for any trouble-shooting advice.

#0 /home/scethics/scethics.org/sites/all/modules/civicrm/CRM/Core/Error.php(308): CRM_Core_Error::backtrace()
#1 /home/scethics/scethics.org/sites/all/modules/civicrm/CRM/Core/DAO.php(754): CRM_Core_Error::fatal()
#2 /home/scethics/scethics.org/sites/all/modules/civicrm/CRM/Price/Form/Option.php(97): CRM_Core_DAO::getFieldValue("CRM_Price_DAO_Set", NULL, "extends", "id")
#3 /home/scethics/scethics.org/sites/all/modules/civicrm/CRM/Core/Form.php(351): CRM_Price_Form_Option->setDefaultValues()
#4 /home/scethics/scethics.org/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php(93): CRM_Core_Form->buildForm()
#5 /home/scethics/scethics.org/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Price_Form_Option), "display")
#6 /home/scethics/scethics.org/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Price_Form_Option), "display")
#7 /home/scethics/scethics.org/sites/all/modules/civicrm/CRM/Core/Controller.php(316): HTML_QuickForm_Page->handle("display")
#8 /home/scethics/scethics.org/sites/all/modules/civicrm/CRM/Price/Page/Option.php(210): CRM_Core_Controller->run()
#9 /home/scethics/scethics.org/sites/all/modules/civicrm/CRM/Price/Page/Option.php(301): CRM_Price_Page_Option->edit(8)
#10 /home/scethics/scethics.org/sites/all/modules/civicrm/CRM/Core/Invoke.php(292): CRM_Price_Page_Option->run((Array:5), NULL)
#11 /home/scethics/scethics.org/sites/all/modules/civicrm/CRM/Core/Invoke.php(70): CRM_Core_Invoke::runItem((Array:13))
#12 /home/scethics/scethics.org/sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:5))
#13 /home/scethics/scethics.org/sites/all/modules/civicrm/drupal/civicrm.module(436): CRM_Core_Invoke::invoke((Array:5))
#14 [internal function](): civicrm_invoke("admin", "price", "field", "option")
#15 /home/scethics/scethics.org/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:4))
#16 /home/scethics/scethics.org/index.php(21): menu_execute_active_handler()
#17 {main}

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Fatal Error trying to delete event fee
September 03, 2013, 01:25:59 am
michaels23 :

What version of CiviCRM are you using?

Can you replicate the same on our demo?
http://demo.civicrm.org/
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
Re: Fatal Error trying to delete event fee
September 03, 2013, 08:28:02 am
I'm using 4.3.5 . The problem does not seem to occur on demo site.

Rajesh

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 10
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x
  • CMS version: Drupal 7.xx, Wordpress 3.5.x - 3.6.x, Joomla 3.1
  • MySQL version: 5.5.20
  • PHP version: 5.3.10
Re: Fatal Error trying to delete event fee
October 10, 2013, 07:30:11 am
Hi Michael

Did you find a solution for the issue? I am getting the same error.

Can replicate in the demo site (http://drupal.demo.civicrm.org)
1. Created a new price set for Events
2. Created a new price field with 2 radio options
3. Now go and delete one option from the price field, you are getting the fatal error

- Rajesh
 
« Last Edit: October 10, 2013, 08:49:04 am by Rajesh »

Rajesh

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 10
  • CiviCRM version: 4.2.x, 4.3.x, 4.4.x
  • CMS version: Drupal 7.xx, Wordpress 3.5.x - 3.6.x, Joomla 3.1
  • MySQL version: 5.5.20
  • PHP version: 5.3.10
Re: Fatal Error trying to delete event fee
October 11, 2013, 03:11:46 am
Found a solution for the issue:

Price set id is not passed, when deleting a price field option. Now passing the price set id as query string in the URL and it works fine. Patches attached.

Please test and let me know if this is a issue for everyone, so that i can create an issue in JIRA and attach the patch.

- Rajesh

GinkgoFJG

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 4
    • Ginkgo Street Labs
Re: Fatal Error trying to delete event fee
February 07, 2014, 01:24:51 pm
I didn't find a Jira issue for this and the problem persists, so I created one here: http://issues.civicrm.org/jira/browse/CRM-14188.

I'll have a closer look at the problem and the proposed patch next week.
Are you a CiviVolunteer user? Join the CiviVolunteer 2.0 Matching Grant effort to help the project win $15,000 in grant funding.

erin.franks

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Drupal
  • MySQL version: ?
  • PHP version: ?
Re: Fatal Error trying to delete event fee
March 31, 2014, 11:21:54 am
I am also running into this problem. In my case, I created a set of price fields with a "Test" option, and then wanted to delete that option only. I tried deleting all registrants who had used that option, and also tried removing the set of price fields from all events - I'm still getting the error when trying to delete the "Test" option.

I unfortunately don't have the skills to fix this, but am happy to test things or potentially contribute to this issue... thanks!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Fatal Error trying to delete event fee
March 31, 2014, 03:16:45 pm
Is this bug report (& patch) for the problem you are describing?

https://issues.civicrm.org/jira/browse/CRM-14379
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Fatal Error trying to delete event fee

This forum was archived on 2017-11-26.