after upgrading to CiviCRM 4.7.23 for Wordpress I can no longer configure Event Fees and get a DB Error: syntax error.
I tried upgrading to 4.7.24 and still no joy.
The log file contains this:
Sep 28 12:41:10 [info] $Fatal Error Details = Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => exceptionHandler
)
[code] => -2
[message] => DB Error: syntax error
[mode] => 16
[debug_info] => SELECT id, entity_id
FROM civicrm_entity_financial_account
WHERE ( account_relationship = AND entity_table = 'civicrm_financial_type' )
ORDER BY entity_id
[nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND entity_table = 'civicrm_financial_type' )
ORDER BY entity_id' at line 4]
[type] => DB_Error
[user_info] => SELECT id, entity_id
FROM civicrm_entity_financial_account
WHERE ( account_relationship = AND entity_table = 'civicrm_financial_type' )
ORDER BY entity_id
[nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND entity_table = 'civicrm_financial_type' )
ORDER BY entity_id' at line 4]
[to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::exceptionHandler prefix="" info="SELECT id, entity_id
FROM civicrm_entity_financial_account
WHERE ( account_relationship = AND entity_table = 'civicrm_financial_type' )
ORDER BY entity_id
[nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND entity_table = 'civicrm_financial_type' )
ORDER BY entity_id' at line 4]"]
)
I have since found more issues which may be related.
I can no longer edit or add Payment Processors and get an error saying: This financial account cannot have '' relationship.
I also can't add or edit Price Sets.
Further digging found this in my tracestack:
/wp-content/plugins/civicrm/civicrm/CRM/Financial/BAO/FinancialType.php(196): CRM_Core_PseudoConstant::populate(NULL, "CRM_Financial_DAO_EntityFinancialAccount", TRUE, "entity_id", NULL, "account_relationship = AND entity_table = 'civicrm_financial_type' ")