Steps i followed:
installed uikit with composer
created subtheme with drush
enabled subtheme
created a new content type
gives a site error
Error log:
Error 1:
Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("node") to generate a URL for route "entity.node.canonical". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 180 of .........../web/core/lib/Drupal/Core/Routing/UrlGenerator.php).
Error 2:
Warning: Invalid argument supplied for foreach() in Drupal\Core\Theme\Registry->processExtension() (line 447 of ....../web/core/lib/Drupal/Core/Theme/Registry.php)
Comment | File | Size | Author |
---|---|---|---|
#8 | Result menu.PNG | 17.21 KB | btriest |
#8 | Menu structure.PNG | 10.29 KB | btriest |
#5 | navbar-menu-routes-exception-2885737-5.patch | 1.82 KB | Richard Buchanan |
Comments
Comment #2
Richard Buchanan CreditAttribution: Richard Buchanan as a volunteer commentedI wasn't able to reproduce this error, even when using a UIkit sub-theme as the admin theme. Have you updated to the latest 8.x-3.x-dev package? The theme shouldn't cause an error like this since it doesn't mess with or call any node routes.
We don't have a composer package for the 8.x-3.x branch, what do you mean by you installed UIkit with composer?
Comment #3
tkcent CreditAttribution: tkcent as a volunteer commentedLooks like I am encountering the same error. If I disable the Uikit sub-theme and just use Uikit it works find. When I set the Uikit sub-theme as default is when it breaks.
Here is the error message I get.
This site originally had an older version of Drupal and Uikit that have both been upgraded and I am not sure at which point it broke.
I tried to replicate with the newest version of all the modules (which includs Bricks, ECK and Webform as well as their dependencies). However I can't seem to recreate the error.
Comment #4
Richard Buchanan CreditAttribution: Richard Buchanan as a volunteer commentedThanks tkcent, the error message you copied gives me more info to go on. Will look into this and let you know what I find.
Comment #5
Richard Buchanan CreditAttribution: Richard Buchanan as a volunteer commentedOkay, try out this patch and let me know how things go.
Comment #6
tkcent CreditAttribution: tkcent as a volunteer commentedI didn't test extensively but the patch in #5 works for me when using the Uikit theme and my custom sub-theme.
Thanks!
Comment #7
btriest CreditAttribution: btriest commentedThanks for the quick reply. I will test the patch today as well with the subtheme and will let you know. (next time i will post the complete error log ;))
Comment #8
btriest CreditAttribution: btriest commentedHello Richard,
I tested the change and now the subtheme works well with custom content types.
During the test i only saw that when a submenu item is created the main menu item (parent) dissapears and is put under the first menu item. To explain this better i added two files. One with the menu structure. The second with the output.
Comment #9
Richard Buchanan CreditAttribution: Richard Buchanan as a volunteer commentedThanks btriest, glad to see the patch worked for you. I'll commit that to the dev branch today.
There's still a little work needed on the navbar menus with dropdowns. You can create a new issue with the images you uploaded since it is unrelated to this. That way others can see there is already an issue filed. Should have the dropdowns fixed in a couple days.
Comment #11
Richard Buchanan CreditAttribution: Richard Buchanan as a volunteer commentedNo need to create a new issue for the navbar parent/child items, this has been fixed and committed to dev branch.
See ce725e5.