Skip to main content
3 of 5
added 187 characters in body

Can't Add a New Fee to an Existing Event

I have created an event with several payment options and it works properly with no issues. However, when adding a new fee (there are 5 at the moment that works), It doesn't get saved and the loader spinner just spins forever.

Underneath, when inspecting the network when the form is submitted, I get this

{status: "fatal",…} content : "Sorry but we are not able to provide this at the moment." crmMessages : [{,…}] 0 : {,…} options : null text : "We experienced an unexpected error. Please post a detailed description and the backtrace on the CiviCRM forums: http://forum.civicrm.org/" title : "Sorry an error occurred" type : "error" status : "fatal" title : "Configure Event - B1 Course" userContext : "/civicrm/event/manage?reset=1"

In the error logs, this detailed response is outputted:

There was a CiviCRM error at ISKCON London Ltd.
Date: 2017-06-11T12:52:30+01:00



***ERROR***
message:            
code:                

***LAST ERROR***


***LOGGED IN USER***
contact_id:         2
display_name:       Mr. Aashish Sharma
email_id:           
email:              
id:                 2

REMOTE_ADDR: 82.47.150.10
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36


***SERVER***
PATH:               /usr/local/bin:/usr/bin:/bin
REDIRECT_STATUS:    200
UNIQUE_ID:          WT0u-sMI3iEAABks7HYAAABJ
TZ:                 Europe/Sofia
OMP_THREAD_LIMIT:   1
HTTP_AUTHORIZATION: 
HTTPS:              on
SSL_TLS_SNI:        rldb.info
HTTP_HOST:          rldb.info
HTTP_CONNECTION:    keep-alive
CONTENT_LENGTH:     8826
HTTP_ORIGIN:        https://rldb.info
HTTP_USER_AGENT:    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
CONTENT_TYPE:       multipart/form-data; boundary=----WebKitFormBoundaryxVzJBFAoBtR543ba
HTTP_ACCEPT:        application/json, text/javascript, */*; q=0.01
HTTP_X_REQUESTED_WITH:XMLHttpRequest
HTTP_DNT:           1
HTTP_REFERER:       https://rldb.info/civicrm/event/manage/fee?reset=1&action=update&id=48
HTTP_ACCEPT_ENCODING:gzip, deflate, br
HTTP_ACCEPT_LANGUAGE:en-GB,en-US;q=0.8,en;q=0.6
HTTP_COOKIE:        SESSfdfbbafa8321456c2612c2aa8f3eb683=UM-Iryeyj-zQpNIzlWLda-cQEovuWWEBLfp_RW-LN-E; Drupal.tableDrag.showWeight=0; SSESSfdfbbafa8321456c2612c2aa8f3eb683=cOvpS0HYROxslVL4qewR4nCYYYg8VRpQZUmtSDA2Oik; has_js=1
SERVER_SIGNATURE:   
SERVER_SOFTWARE:    Apache
SERVER_NAME:        rldb.info
SERVER_ADDR:        195.8.222.33
SERVER_PORT:        443
REMOTE_ADDR:        82.47.150.10
DOCUMENT_ROOT:      /home/rldb/www/www
REQUEST_SCHEME:     https
CONTEXT_PREFIX:     
CONTEXT_DOCUMENT_ROOT:/home/rldb/www/www
SERVER_ADMIN:       [email protected]
SCRIPT_FILENAME:    /home/rldb/www/www/index.php
REMOTE_PORT:        60253
REDIRECT_URL:       /civicrm/event/manage/fee
REDIRECT_QUERY_STRING:action=update&id=48&component=event&qfKey=8597fbacd761cbef1573e2c09b4cf85a_3956&snippet=json
GATEWAY_INTERFACE:  CGI/1.1
SERVER_PROTOCOL:    HTTP/1.1
REQUEST_METHOD:     POST
QUERY_STRING:       action=update&id=48&component=event&qfKey=8597fbacd761cbef1573e2c09b4cf85a_3956&snippet=json
REQUEST_URI:        /civicrm/event/manage/fee?action=update&id=48&component=event&qfKey=8597fbacd761cbef1573e2c09b4cf85a_3956&snippet=json
SCRIPT_NAME:        /index.php
PHP_SELF:           /index.php
REQUEST_TIME_FLOAT: 1497181950.1148
REQUEST_TIME:       1497181950
argv:               Array
(
    [0] => action=update&id=48&component=event&qfKey=8597fbacd761cbef1573e2c09b4cf85a_3956&snippet=json
)

argc:               1



***BACKTRACE***
#0 /home/rldb/www/www/sites/default/files/civicrm/ext/ca.bidon.reporterror/reporterror.php(251): reporterror_civicrm_generatereport("ISKCON London Ltd", (Array:2), NULL, (Array:0))
#1 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Core/Error.php(365): reporterror_civicrm_handler((Array:2))
#2 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Core/DAO.php(1070): CRM_Core_Error::fatal()
#3 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Price/BAO/PriceFieldValue.php(65): CRM_Core_DAO::getFieldValue("CRM_Price_BAO_PriceFieldValue", NULL, "price_field_id")
#4 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Price/BAO/PriceFieldValue.php(127): CRM_Price_BAO_PriceFieldValue::add((Array:3), (Array:1))
#5 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Price/BAO/PriceField.php(184): CRM_Price_BAO_PriceFieldValue::create((Array:3), (Array:1))
#6 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Event/Form/ManageEvent/Fee.php(670): CRM_Price_BAO_PriceField::create((Array:9))
#7 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Core/Form.php(447): CRM_Event_Form_ManageEvent_Fee->postProcess()
#8 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php(169): CRM_Core_Form->mainProcess()
#9 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php(136): CRM_Core_QuickForm_Action_Upload->realPerform(Object(CRM_Event_Form_ManageEvent_Fee), "upload")
#10 /home/rldb/www/www/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Upload->perform(Object(CRM_Event_Form_ManageEvent_Fee), "upload")
#11 /home/rldb/www/www/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Event_Form_ManageEvent_Fee), "upload")
#12 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Core/Controller.php(351): HTML_QuickForm_Page->handle("upload")
#13 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Utils/Wrapper.php(113): CRM_Core_Controller->run()
#14 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(284): CRM_Utils_Wrapper->run("CRM_Event_Form_ManageEvent_Fee", "Event Fees", NULL)
#15 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(84): CRM_Core_Invoke::runItem((Array:14))
#16 /home/rldb/www/www/sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:4))
#17 /home/rldb/www/www/sites/all/modules/civicrm/drupal/civicrm.module(448): CRM_Core_Invoke::invoke((Array:4))
#18 [internal function](): civicrm_invoke("event", "manage", "fee")
#19 /home/rldb/www/www/includes/menu.inc(527): call_user_func_array("civicrm_invoke", (Array:3))
#20 /home/rldb/www/www/index.php(21): menu_execute_active_handler()
#21 {main}


***POST***
qfKey:              8597fbacd761cbef1573e2c09b4cf85a_3956
entryURL:           https://rldb.info/civicrm/event/manage/fee?reset=1&action=update&id=48&component=event&qfKey=8597fbacd761cbef1573e2c09b4cf85a_3956
price_field_id:     168
price_field_value:  Array
(
    [1] => 537
    [2] => 538
    [3] => 539
    [4] => 540
    [5] => 541
    [6] => 
    [7] => 
    [8] => 
    [9] => 
    [10] => 
    [11] => 
)

discount_price_set: Array
(
    [1] => 
    [2] => 
    [3] => 
    [4] => 
    [5] => 
    [6] => 
)

cancelURL:          /civicrm/event/manage?reset=1
_qf_default:        Fee:upload
MAX_FILE_SIZE:      20971520
is_template:        0
is_monetary:        1
currency:           GBP
payment_processor:  1
pay_later_text:     I will send payment by cheque
pay_later_receipt:  
fee_label:          Event Fee(s)
financial_type_id:  9
price_set_id:       
label:              Array
(
    [1] => For all 6 Units of Bhakti Sastri
    [2] => If spouses/partners do course together. cost per participant
    [3] => Cost for One Unit
    [4] => For Temple Asrama
    [5] => Others - pay in 2 instalments
    [6] => test
    [7] => 
    [8] => 
    [9] => 
    [10] => 
)

value:              Array
(
    [1] => 275.00
    [2] => 250.00
    [3] => 50.00
    [4] => 0.00
    [5] => 137.50
    [6] => 50.00
    [7] => 
    [8] => 
    [9] => 
    [10] => 
)

default:            1
discount_name:      Array
(
    [1] => 
    [2] => 
    [3] => 
    [4] => 
    [5] => 
)

discount_start_date:Array
(
    [1] => 
    [2] => 
    [3] => 
    [4] => 
    [5] => 
)

discount_start_date_1_display_593d2e777d8ea:
discount_end_date:  Array
(
    [1] => 
    [2] => 
    [3] => 
    [4] => 
    [5] => 
)

discount_end_date_1_display_593d2e777ef79:
discount_start_date_2_display_593d2e77805c8:
discount_end_date_2_display_593d2e7781c84:
discount_start_date_3_display_593d2e778357c:
discount_end_date_3_display_593d2e7784b4b:
discount_start_date_4_display_593d2e7786147:
discount_end_date_4_display_593d2e7787771:
discount_start_date_5_display_593d2e7788e1e:
discount_end_date_5_display_593d2e778a52b:
_qf_Fee_upload:     Save

Any help would be much appreciated!

Thanks

Edit 1: Upgrading CiviCRM from 4.7.19 to 4.7.20 did not resolve the issue.

Edit 2: When creating a new event from scratch, I can add as many fee options as I want. But, if I save and then add a new fee, then these errors occur and I can't save.

Any help?