Critical error after update/submit
Submitting a new expense or updating an existing expense fails, a "critical error" appears as next page (from WordPress).
But reloading the contact and visiting the expenses section shows the correct expense.
So it seems to work, but the critial error page and the need to reload isn't very handy.
Systems: CiviCRM 5.37.beta1 and 5.36.1 with WordPress 5.7.1, CiviCRM 5.32.2 on Drupal 7.79, all with PHP 7.4.3 on Ubuntu 20.04.2
**Warnings from WordPress: **
Warning: Illegal string offset 'status_id' in /var/www/html/test/wp-content/uploads/civicrm/ext/expenses/CRM/Expenses/Form/Expense.php on line 127
Warning: Illegal string offset 'type_id' in /var/www/html/test/wp-content/uploads/civicrm/ext/expenses/CRM/Expenses/Form/Expense.php on line 130
Warning: Illegal string offset 'case_id' in /var/www/html/test/wp-content/uploads/civicrm/ext/expenses/CRM/Expenses/Form/Expense.php on line 133
Warning: Cannot assign an empty string to a string offset in /var/www/html/test/wp-content/uploads/civicrm/ext/expenses/CRM/Expenses/Form/Expense.php on line 133
Warning: Illegal string offset 'contact_id' in /var/www/html/test/wp-content/uploads/civicrm/ext/expenses/CRM/Expenses/Form/Expense.php on line 136
Warning: Cannot assign an empty string to a string offset in /var/www/html/test/wp-content/uploads/civicrm/ext/expenses/CRM/Expenses/Form/Expense.php on line 136
Fatal error: Uncaught Error: Cannot unset string offsets in /var/www/html/test/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php:645