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

Mandatory pramameters in links not being passed #233

Open
ghost opened this issue Jun 9, 2020 · 0 comments
Open

Mandatory pramameters in links not being passed #233

ghost opened this issue Jun 9, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 9, 2020

Just upgraded an old site using Diem to this version of Symfony so we can upgrade the server it's running on to the latest PHP. I've solved a few integration issues from updates but having massive issues with links due to changes in the code.

ERROR: The "/m/:slug/settings" route has some missing mandatory parameters (:slug).

The error stems from some changes to the pattern routing I think, but I'm having real difficulty in fixing the bug. I've upgraded dmFrontLinkTagRoute to use your new getRoute instead of the getRoutes as that was causing issues to, but it gets to

$this->controller->genUrl(array_merge(
array(
'sf_route' => $route_name
), $route_parameters
));

Which is silently failing. I think it's the line $url = $this->context->getRouting()->generate($route, $parameters, $absolute); but I haven't gotten any further.

Any help or advice would be most appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants