nystudio107 / craft-seomatic

SEOmatic facilitates modern SEO best practices & implementation for Craft CMS 3. It is a turnkey SEO system that is comprehensive, powerful, and flexible.
https://nystudio107.com/plugins/seomatic
Other
165 stars 70 forks source link

[5.0.0-beta.1] error when saving entry with matrix #1406

Closed lukas-jansen closed 8 months ago

lukas-jansen commented 8 months ago

Describe the bug

When saving an entry that has a matrix field an error is getting thrown Attempt to read property handle on null https://github.com/nystudio107/craft-seomatic/blob/develop-v5/src%2Fseoelements%2FSeoEntry.php#L443 As the matrix block is now also an entry, but it doesn't have a section

To reproduce

Steps to reproduce the behaviour:

  1. Create an entry with a matrix block
  2. Click save

Versions

khalwat commented 8 months ago

Addressed in: https://github.com/nystudio107/craft-seomatic/commit/c6597fa3b5ae978b8c4610bf58616f26c9f7c426

You can try it now by setting your semver in your composer.json to look like this:

    "nystudio107/craft-seomatic": "dev-develop-v5 as 5.0.0-beta.2”,

Then do a composer clear-cache && composer update