2

I get an Request missing required body param error when trying to create a new entry on the front end. All required fields are being filled. Nothing changed except the craft version. Craft version is 3.2.0-RC2.

Has that something to do with the way drafts are handled in 3.2?

Edit: Looks like Craft wants a entry id:

/…/controllers/EntriesController.php(848): craft\web\Request->getRequiredBodyParam('entryId')

Which, of course, is not available when creating a new entry. What is to be done?

  • I'm having the same issue since updating to 3.2.x. Is adding <input type="hidden" name="entryId" value=""> the official solution? Thanks! – Andrea DeMers Jul 31 at 18:06
4

This was an unintentional breaking change. See https://github.com/craftcms/cms/issues/4693

Update: Fixed in 3.2.9, which is now (2019-08-06) available https://github.com/craftcms/cms/blob/develop/CHANGELOG-v3.md#329---2019-08-06

3

Added an empty entryId-field to the form which apparently solves my problem.

<input type="hidden" name="entryId" value="">

  • Thanks for the workaround, but this can't be a permanent fix, else I will have to review a ton of templates on a lot of sites... – r-ninja Jul 31 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.