Trying to submit a form created with the GUI gives Error: Unsupported operand types
- Fresh drupal 7 install with latest master civi.
- cd sites/default/files/civicrm/ext
- git clone https://lab.civicrm.org/extensions/afform.git
- Go to Manage Extensions.
- Install Afform Form Builder (which also installs core runtime).
- Install Afform HTML.
- Go to Administer - Customize Data and Screens - Forms.
- Click New Form.
- For title put testform1
- For url put civicrm/testform1
- Click save.
- Go to [site]/civicrm/testform1
- Enter Aaaa Bbbb Cccc as the name (or whatever).
- Click Submit.
- It says "Sorry an error occurred and your information was not saved".
- In drupal watchdog it says:
Error: Unsupported operand types in Civi\Api4\Action\Afform\Submit->processForm() (line 26 of .../afform/core/Civi/Api4/Action/Afform/Submit.php)
.
Also doesn't seem to be a php version issue - have reproduced with both php 7.0 and 7.3. Also not a windows issue since have reproduced on linux.