Hello,

Trying this module and I get the similar error than on 1.0dev version. Is it related ? Which version is recommended ?
I'm on D896.

Drupal\Core\Entity\EntityStorageException: Route "entity.simple_mega_menu_type.canonical" does not exist. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 846 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Thanks

EDIt: v1.1 lead to same issue after downgrade, cleared cache.

Drupal\Core\Entity\EntityStorageException: Route "entity.simple_mega_menu_type.canonical" does not exist. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 846 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

CommentFileSizeAuthor
#9 3174085-9.patch607 bytesflocondetoile

Comments

aiphes created an issue. See original summary.

aiphes’s picture

Title: entity.simple_mega_menu_type.canonical » Error on saving: entity.simple_mega_menu_type.canonical
Issue summary: View changes
aiphes’s picture

Issue summary: View changes
flocondetoile’s picture

Status: Active » Postponed (maintainer needs more info)

It's normal. The config entity simple_mega_menu_type has not a canonical route. Trying to reproduce your bug without success. Need step by step to reproduce.

aiphes’s picture

On D896 Multisite:

1- download module with composer 1.1 or 2.0
2- enable module on the website with drush + clear cache after
3- go to /admin/structure/simple_mega_menu_type and create a type (add fields if necessary) : megamenu_2020
4- go to admin/content/simple_mega_menu/add/megamenu_2020 and create a content
5- save it and get a WSOD with the error above + this in watchdog
Symfony\Component\Routing\Exception\RouteNotFoundException : Route "entity.simple_mega_menu_type.canonical" does not exist. dans Drupal\Core\Routing\RouteProvider->getRouteByName() (ligne 208 de /var/www/drupal-8/core/lib/Drupal/Core/Routing/RouteProvider.php).

aiphes’s picture

Issue summary: View changes
flocondetoile’s picture

Trying to reproduce with steps provided. Without success. All works fine.
Can you debug who call RouteProvider.php and generate this bug ? I suspect another module.

Edit: may be I found the issue. Will provide a patch soon.

aiphes’s picture

How can I do this ?
If another module, probably linked to pathauto , alias and co because I face off misfunction to create alias on this website. But no WSOD.

flocondetoile’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new607 bytes

Let's see if this patch resolve your issue (I can't still reproduce).

aiphes’s picture

I'll do, on which version ? Actually I'm using v1.1.
I actually look on how to apply the patch with git ;)

EDIT: patch on V1.1 work after clearing cache . very happy
Now I need to understand how to use it with my actual navigation (full page menu) and the logic of the module. Documentation has grey zone on how to define the url to display a megamenu content on a menu link.
doesn't work, and internal link lead to the url (normal). So I need to know how to use the rollover to display the megamenu. It did work but on a new menu it doesn't..
Does exist a video in addition of your website ?

flocondetoile’s picture

  • flocondetoile authored b18ece6 on 2.0.x
    Issue #3174085 by flocondetoile, aiphes: Error on saving: entity....
flocondetoile’s picture

Status: Needs review » Fixed
aiphes’s picture

Hi,
just to know, which version is preferred between 1.1 and 2.x ? I patched v1.1 for my need but do I need to update to 2.x ?

flocondetoile’s picture

Fix has been committed on 2.x branch. 1.1 is not anymore recommended (1.1 and 2.0.0 are equals)

aiphes’s picture

Ok I'll switch to 2.x so. Thanks .

Status: Fixed » Closed (fixed)

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