Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error (Routes::getDbRoutes) in Craft 4 beta 4 / Routemap 4.0.0-beta.1 #30

Closed
stephanedemotte opened this issue Apr 12, 2022 · 1 comment
Labels

Comments

@stephanedemotte
Copy link

stephanedemotte commented Apr 12, 2022

Describe the bug

Hello i', trying to use {% set pages = craft.routeMap.getAllRouteRules('Vue') %} in a twig template but got this error

TypeError: nystudio107\routemap\services\Routes::getDbRoutes(): Argument #1 ($siteId) must be of type ?int, string given, called in /home/stephane/Projects/osteo/vendor/nystudio107/craft-routemap/src/services/Routes.php on line 507 and defined in /home/stephane/Projects/osteo/vendor/nystudio107/craft-routemap/src/services/Routes.php:526

I've got a fresh install of craft 4 beta 4.

Thank you !

khalwat pushed a commit that referenced this issue Apr 13, 2022
@khalwat
Copy link
Contributor

khalwat commented Apr 13, 2022

Fixed in Route Map 4.0.0-beta.2 -> https://github.com/nystudio107/craft-routemap/releases/tag/4.0.0-beta.2

@khalwat khalwat closed this as completed Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants