ViewPageController" does not exist

Created on 24 July 2020, almost 4 years ago
Updated 29 March 2024, 3 months ago

On fresh web browser install . . . 8.9.2

The website encountered an unexpected error. Please try again later.

InvalidArgumentException: Class "Drupal\views\Routing\ViewPageController" does not exist. in Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (line 24 of core/lib/Drupal/Core/DependencyInjection/ClassResolver.php).
Drupal\Core\Controller\ControllerResolver->createController('Drupal\views\Routing\ViewPageController::handle') (Line: 72)
Drupal\Core\Controller\ControllerResolver->getControllerFromDefinition('Drupal\views\Routing\ViewPageController::handle', '/') (Line: 88)
Drupal\Core\Controller\ControllerResolver->getController(Object) (Line: 134)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

πŸ› Bug report
Status

Closed: cannot reproduce

Version

11.0 πŸ”₯

Component
InstallΒ  β†’

Last updated 3 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States bobburns

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡ͺGermany mathiasp

    Just a new data point, just installed drupal 10 using apache 2.4.55 and php-fcgi 8.2.1 on three FreeBSD Jails.

    All had "The "view" entity type does not exist" right after install via the web ui.

    For two of these identical installs it was enough to use drush cli to install and everything worked, one just didn't work until I found this.

    I tried the install multiple times, both behind a reverse proxy and (encountering the error) direct.

    For the third site and retried the install multiple ( many ) times, with web ui, drush, both one after another, the other way round, re-creating the drupal project multiple time with 'composer create-project drupal/recommended-project drupal10'

    Finally I found that the error msg had changed to the one mentioned in this thread, so I ran 'drupal cr' and this was enough to also get the third site up and running.

    I really have no idea what went wrong here, but for now it works...

  • Status changed to Closed: cannot reproduce 4 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Not able to replicate this,

    If someone is still experiencing this please reopen adding steps to reproduce to summary.

  • πŸ‡¨πŸ‡³China xiukun.zhou

    I just require drush/drush in composer
    Then docker exec -it mydocker bash
    Then ./vendor/bin/drush cr
    to fixed

Production build 0.69.0 2024