verbb / formie

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

[5.x] Entry element integration fails #1871

Closed d-karstens closed 1 month ago

d-karstens commented 1 month ago

Describe the bug

Hi, we've encountered an issue when trying to use Formie's element integration to create a new entry with a submission

Initially we were getting a this error 2024-05-07 10:55:28 [ERROR] Element integration failed for submission “40”. Error: Getting unknown property: craft\models\EntryType::sectionId /var/www/html/vendor/yiisoft/yii2/base/Component.php:154

but I saw a fix for that was pushed here so I tried to pull in the latest updates from the craft-5 branch and got the following error

2024-05-07 10:58:28 [ERROR] Element integration failed for submission “40”. Error: Call to a member function getSiteSettings() on null /var/www/html/vendor/craftcms/cms/src/elements/Entry.php:1037

The form I was using to test only has a single text field mapped to the title

Screenshot 2024-05-07 at 11 05 36 AM

Let me know if you need any more info

Steps to reproduce

  1. Create an Entry element integration to make a new entry on submission
  2. Try to run the integration

Form settings

Craft CMS version

5.1.1

Plugin version

3.0.0-beta.9

Multi-site?

No response

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.0-beta.9".

engram-design commented 1 month ago

Updated in 3.0.0-beta.10

d-karstens commented 1 month ago

Cheers for the quick fix!