seo icon indicating copy to clipboard operation
seo copied to clipboard

Twig error: Key "heading" for array with keys "manageSitemap, manageRedirects" does not exist.

Open MarkOlijslagers opened this issue 3 years ago • 6 comments

Description

When i try to access my account page in the Craft control panel (/admin/myaccount) the following error occurs:

Twig Runtime Error – Twig\Error\RuntimeError Key "heading" for array with keys "manageSitemap, manageRedirects" does not exist.

I am using Craft CMS 4.0.2 and SEO 4.0.0

Steps to reproduce

  1. Login the admin panel and go to /admin/myaccount

Additional info

  • Craft version: 4.0.2
  • SEO version: 4.0.0
  • PHP version: 8.1
  • Database driver & version: MySQL
  • Other Plugins: Redactor

MarkOlijslagers avatar May 19 '22 14:05 MarkOlijslagers

This one is fixed in 4.0.2 but there is no release in Packagist, so it is not installable right now.

rostockahoi avatar May 23 '22 12:05 rostockahoi

See #405

rostockahoi avatar May 23 '22 12:05 rostockahoi

Can also confirm I have this error

braedencrankd avatar May 23 '22 22:05 braedencrankd

I have already fixed this one but it's not tagged correctly in Packagist. Please follow the instructions in #405

@Tam: Any idea when the tagging in Packagist will be fixed? It would solve #405 and #406

niektenhoopen avatar Jun 03 '22 08:06 niektenhoopen

@niektenhoopen see my suggestion in #405. This will fix the issue.

dejury avatar Jun 03 '22 13:06 dejury

@dejury I don't have the issue. Technically I was the person who touched the version in composer in the PR that added Craft 4 support so a git blame would probably point to me ;-) I kept in in the composer.json file because it was already there: https://github.com/ethercreative/seo/pull/397/files#diff-d2ab9925cad7eac58e0ff4cc0d251a937ecf49e4b6bf57f8b95aab76648a9d34R5

Thanks for PR #411. Hope it will be merged soon.

niektenhoopen avatar Jun 03 '22 13:06 niektenhoopen