After changing webiste hosting (Drupal 8) I got this very un-intuitive error message:
The website encountered an unexpected error. Please try again later. SymfonyComponentHttpKernelExceptionNotFoundHttpException: in DrupalCorePathProcessorPathProcessorFront->processInbound() (line 43 of core/lib/Drupal/Core/PathProcessor/PathProcessorFront.php). DrupalCorePathProcessorPathProcessorManager->processInbound('/', Object) (Line: 157) DrupalCoreRoutingRouteProvider->getRouteCollectionForRequest(Object) (Line: 141) SymfonyCmfComponentRoutingNestedMatcherNestedMatcher->matchRequest(Object) (Line: 258) SymfonyCmfComponentRoutingDynamicRouter->matchRequest(Object) (Line: 185) SymfonyCmfComponentRoutingChainRouter->doMatch('/', Object) (Line: 155) SymfonyCmfComponentRoutingChainRouter->matchRequest(Object) (Line: 84) DrupalCoreRoutingAccessAwareRouter->matchRequest(Object) (Line: 154) SymfonyComponentHttpKernelEventListenerRouterListener->onKernelRequest(Object, 'kernel.request', Object) (Line: 111) DrupalComponentEventDispatcherContainerAwareEventDispatcher->dispatch('kernel.request', Object) (Line: 120) SymfonyComponentHttpKernelHttpKernel->handleRaw(Object, 1) (Line: 62) SymfonyComponentHttpKernelHttpKernel->handle(Object, 1, 1) (Line: 57) DrupalCoreStackMiddlewareSession->handle(Object, 1, 1) (Line: 47) DrupalCoreStackMiddlewareKernelPreHandle->handle(Object, 1, 1) (Line: 47) DrupalCoreStackMiddlewareReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50) DrupalCoreStackMiddlewareNegotiationMiddleware->handle(Object, 1, 1) (Line: 23) StackStackedHttpKernel->handle(Object, 1, 1) (Line: 628) DrupalCoreDrupalKernel->handle(Object) (Line: 19)
The files are all the same, other files on ftp/website (besides Drupal) are accessible and works fine.
I’ve cleared cache via Admin Panel before moving anything.
I’ve also tried remove it manually:
TRUNCATE cache_config; TRUNCATE cache_container; TRUNCATE cache_data; TRUNCATE cache_default; TRUNCATE cache_discovery; TRUNCATE cache_dynamic_page_cache; TRUNCATE cache_entity; TRUNCATE cache_menu; TRUNCATE cache_render; TRUNCATE cache_toolbar;
but I guess it’s not the point.
The previous website was working on http://someurl1.com/site/
(sub-domain) and new one is under http://someurl.com/
(top domain). But even moving everthing on new hosting to /site/
doesn’t change a thing.
When I changed database connection settings in settings.php
to something wrong intentionally I get:
PDOException: SQLSTATE[HY000] [1044] Access denied for user...
So I guess it’s not the database connection problem either.
Using http://.../core/rebuild.php
also didn’t help.
Sponsored by SupremePR