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).
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3174085-9.patch | 607 bytes | flocondetoile |
Comments
Comment #2
aiphesComment #3
aiphesComment #4
flocondetoileIt'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.
Comment #5
aiphesOn 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_typeand create a type (add fields if necessary) : megamenu_20204- go to
admin/content/simple_mega_menu/add/megamenu_2020and create a content5- 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).Comment #6
aiphesComment #7
flocondetoileTrying 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.
Comment #8
aiphesHow 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.
Comment #9
flocondetoileLet's see if this patch resolve your issue (I can't still reproduce).
Comment #10
aiphesI'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 ?
Comment #11
flocondetoileYou can read this french blog post https://www.flocondetoile.fr/blog/creer-un-mega-menu-avec-drupal-8
Comment #13
flocondetoileComment #14
aiphesHi,
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 ?
Comment #15
flocondetoileFix has been committed on 2.x branch. 1.1 is not anymore recommended (1.1 and 2.0.0 are equals)
Comment #16
aiphesOk I'll switch to 2.x so. Thanks .