I uninstalled the Google Analytics module and installed a newer version for Drupal 8. Now the website crashes with this exception error.

Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Route "view.google_analytics_summary.page_1" does not exist." at /opt/drupal/web/core/lib/Drupal/Core/Routing/RouteProvider.php line 208

I have no idea how to fix this since I can't log in on the site. I also can't use Drush because the site is on a ECS server that doesn't give me access to the terminal.

  • If you can't use Drush you can use rebuild.php.
    – 4uk4
    Jul 10, 2023 at 19:24
  • It's just rerouting to the home page with the same message. Not sure why it's not working. I've cleared the cache tables from the database and it still has the same issue.
    – Tyler
    Jul 10, 2023 at 19:53
  • 1
    Did you run rebuild.php? It's more powerful than clearing some cache tables in the database. If this doesn't help you have a problem with the uninstall routines in the module you've removed. Might be a beta version not supposed to be used in production. It deleted the view google_analytics_summary but left a reference to this view. I would use a local copy of the site and then investigate the code base and the exported config for the missing route name.
    – 4uk4
    Jul 10, 2023 at 20:41
  • See drupal.org/docs/user_guide/en/…
    – 4uk4
    Jul 10, 2023 at 21:59
  • If you upgraded a module that broke the site and didn't run the database updates, just revert back to the previous version of the module. Jul 11, 2023 at 12:18

1 Answer 1


I ended up running update.php to force the cache to rebuild correctly. There wasn't an analytics update but I got luck there was another update and when it finished running it recompiled the code and fixed the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.