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

Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Unable to generate a URL for th... #677

Closed
sentry-io bot opened this issue Aug 12, 2022 · 0 comments · Fixed by #678
Labels

Comments

@sentry-io
Copy link

sentry-io bot commented Aug 12, 2022

Sentry Issue: MYPROFILE-BD

Symfony\Component\Routing\Exception\RouteNotFoundException: Unable to generate a URL for the named route "user-social-network_delete" as such route does not exist.
  File "/src/Controller/Profile/AbstractCrudController.php", line 29, in App\Controller\Profile\AbstractCrudController::index
    'data' => $repository->getOwnerData($user),
  File "/src/Controller/Profile/UserSocialNetworkingController.php", line 21, in App\Controller\Profile\UserSocialNetworkingController::indexAction
    return $this->index($userSocialNetworkingRepository);
  File "/public/index.php", line 5
    require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
...
(22 additional frame(s) were not displayed)

Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "user-social-network_delete" as such route does not exist.").
  File "/templates/profile/partial/form/delete_button.html.twig", line 34, in Twig\Template::displayWithErrorHandling
    <a href="#" class="button is-text has-text-danger delete-button" onclick="openModalRemoveItem('{{ path(router, {'id': id}) }}', '{{ csrf_token('delete' ~ id) }}')">
  File "/src/Controller/Profile/AbstractCrudController.php", line 29, in App\Controller\Profile\AbstractCrudController::index
    'data' => $repository->getOwnerData($user),
  File "/src/Controller/Profile/UserSocialNetworkingController.php", line 21, in App\Controller\Profile\UserSocialNetworkingController::indexAction
    return $this->index($userSocialNetworkingRepository);
  File "/public/index.php", line 5
    require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
...
(18 additional frame(s) were not displayed)

Uncaught PHP Exception Twig\Error\RuntimeError: "An exception has been thrown during the rendering of a template ("Unable to generate a URL for the named route "user-social-network_delete" as such route does not exist.")." at /app/templates/profile/partial/form/delete_button.html.twig line 34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant