2

CiviCRM 4.7.29 on Wordpress 4.9.8 on Ubuntu

Hello all,

We had the above instance running well and doing batch validation under CiviContribution well but had recently choked on validation with the following error:

** text version of the error at the end of this post batch validation error

The changes that seem to have taken place before this is the installation of 2 extensions:

Edit Line Item Extension v2.0 (biz.jmaconsulting.lineitemedit)

ExtendedReport v3.0 (nz.co.fuzion.extendedreport)

Would anyone be able to advise how we can regain the batch validation function. We have uninstalled the above 2 extensions but the problem still persists.

Thanks in advance!

Clement

==== I later observed Price Set Errors that seems to be related to the same issue:

I also noticed other errors related to Line Item Report which could be related to the same issue:

Invalid Price Fields Hide the following Price Set Fields use disabled or invalid financial types and need to be fixed if they are to still be used.

Price Set Price Set Field Action Link Contribution Amount Contribution Amount View Price Set Fields Contribution Amount Additional Line Item 1 View Price Set Fields Contribution Amount Additional Line Item 2 View Price Set Fields Contribution Amount Additional Line Item 3 View Price Set Fields Contribution Amount Additional Line Item 4 View Price Set Fields Contribution Amount Additional Line Item 5 View Price Set Fields Contribution Amount Additional Line Item 6 View Price Set Fields Contribution Amount Additional Line Item 7 View Price Set Fields Contribution Amount Additional Line Item 8 View Price Set Fields Contribution Amount Additional Line Item 9 View Price Set Fields Contribution Amount Additional Line Item 10 View Price Set Fields Membership Amount Membership Amount View Price Set Fields

=================

Text of error message

CRM_Core_Exception: expected only one price field to be in price set but multiple are present in /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Batch/Form/Entry.php on line 453
Exception trace
#   Function    Location
0   CRM_Price_BAO_PriceSet::getOnlyPriceFieldID(Array)  /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Batch/Form/Entry.php:453
1   CRM_Batch_Form_Entry->processContribution(Array)    /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Batch/Form/Entry.php:418
2   CRM_Batch_Form_Entry->postProcess() /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php:447
3   CRM_Core_Form->mainProcess()    /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Upload.php:169
4   CRM_Core_QuickForm_Action_Upload->realPerform(Object(CRM_Batch_Form_Entry), 'upload')   /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Upload.php:136
5   CRM_Core_QuickForm_Action_Upload->perform(Object(CRM_Batch_Form_Entry), 'upload')   /var/www/html/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php:203
6   HTML_QuickForm_Controller->handle(Object(CRM_Batch_Form_Entry), 'upload')   /var/www/html/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php:103
7   HTML_QuickForm_Page->handle('upload')   /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php:351
8   CRM_Core_Controller->run()  /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Utils/Wrapper.php:113
9   CRM_Utils_Wrapper->run('CRM_Batch_Form_E…', null, Array)    /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:282
10  CRM_Core_Invoke::runItem(Array) /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:84
11  CRM_Core_Invoke::_invoke(Array) /var/www/html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:52
12  CRM_Core_Invoke::invoke(Array)  /var/www/html/wp-content/plugins/civicrm/civicrm.php:1218
13  CiviCRM_For_WordPress->invoke('')   /var/www/html/wp-includes/class-wp-hook.php:286
14  WP_Hook->apply_filters('', Array)   /var/www/html/wp-includes/class-wp-hook.php:310
15  WP_Hook->do_action(Array)   /var/www/html/wp-includes/plugin.php:453
16  do_action('toplevel_page_Ci…')  /var/www/html/wp-admin/admin.php:224
17  {main}   

 Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred.
expected only one price field to be in price set but multiple are present
3
  • 1
    Not sure what is causing that, but once you get past this issue you should plan to upgrade. There are a lot of fixes since 4.7.29 including serious security issues.
    – Aidan
    Nov 20, 2018 at 11:33
  • 1
    Could you please edit your question to include the text in the screenshot? It will make it easier both for people to help you and for others with a similar problem to find this in the future. Also, please let us know the version of the extensions? Particularly Line Item Edit, which may be a culprit here. Nov 20, 2018 at 18:43
  • Just to update that this was resolved by the plugin author. More details at github.com/JMAConsulting/biz.jmaconsulting.lineitemedit/issues/… Dec 22, 2018 at 9:58

1 Answer 1

1

Just to close the loop on this question, this was answered in another post

https://github.com/JMAConsulting/biz.jmaconsulting.lineitemedit/issues/25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.