[5.x]: Attempt to read property "type" on null
when editing Matrix entries on front-end
#15737
Labels
Attempt to read property "type" on null
when editing Matrix entries on front-end
#15737
What happened?
Description
I'm trying to create a front-end entry edit form, but getting
Attempt to read property "type" on null
.Steps to reproduce
Expected behavior
Able to save a Matrix entry like regular entries on the front-end.
Actual behavior
Because Matrix entries don't have a section you get this error:
yii\base\ErrorException: Attempt to read property "type" on null in /var/www/html/packages/cms/src/controllers/EntriesController.php:252
cms/src/controllers/EntriesController.php
Lines 248 to 254 in 5f69bc4
I've tried adding:
As per #15345 but that doesn't help. Is there something else I need to add or is this a bug?
Craft CMS version
5.4.3
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: