I create a new field on a content type and when i want to reference a colossal menu as a config entity i get an error when i try to edit the node.

The website encountered an unexpected error. Please try again later.
Error: Call to undefined method Drupal\colossal_menu\Entity\Menu::isEnabled() in Drupal\colossal_menu\MenuAccessControlHandler->checkAccess() (line 24 of modules/contrib/colossal_menu/src/MenuAccessControlHandler.php).

CommentFileSizeAuthor
#2 2898712-1.patch349 bytesnicolas.rafaelli

Comments

nicolas.rafaelli created an issue. See original summary.

nicolas.rafaelli’s picture

StatusFileSize
new349 bytes

This was resolved when I added the following lines.

nicolas.rafaelli’s picture

  • wells committed 0b4d722 on 2.x
    Issue #2898712 by nicolas.rafaelli, wells: Error when i reference a...
wells’s picture

Version: 8.x-1.1 » 2.x-dev
Assigned: nicolas.rafaelli » Unassigned
Status: Needs review » Fixed
Issue tags: -colossal_menu, -error

Thanks for pointing this out! Menus cannot be disabled so the access checker here was actually looking for non-existent permissions. A fixed has been committed and I credited you for pointing the issue out.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.