verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
94 stars 72 forks source link

Entries field no longer working after upgrade to Craft 5 #2018

Closed RobinWissink closed 1 month ago

RobinWissink commented 1 month ago

Describe the bug

After upgrading to Craft 5 I get an error on forms that have an entries element field in it.

Too few arguments to function verbb\formie\base\ElementField::populateValue(), 1 passed in /Users/.../Valet/ktkmusicacademy-craft/vendor/twig/twig/src/Extension/CoreExtension.php on line 1635 and exactly 2 expected

Selected in the entries element field:

The twig im using is simply: {% set form = craft.formie.forms({ handle: 'aanmelden' }).one() %} {{ craft.formie.renderForm(form) }}

Steps to reproduce

  1. Upgrade to Craft 5
  2. Add an entries element field to the form
  3. Render the form on the front-end using the standard form render tags
  4. Error.

Form settings

Craft CMS version

5.3.2

Plugin version

3.0.1

Multi-site?

No

Additional context

No response

engram-design commented 1 month ago

Fixed for the next release. To get this early, run composer require verbb/formie:"dev-craft-5 as 3.0.1".

johanneshakonsen commented 1 month ago

Fixed for the next release. To get this early, run composer require verbb/formie:"dev-craft-5 as 3.0.1".

I am still getting the same error as OP even after running composer require verbb/formie:"dev-craft-5 as 3.0.1"

EDIT: nvm, I just had to bust the template cache!

engram-design commented 1 month ago

Fixed in 3.0.2