I have tried to get the Symfony 4 setup. I followed the tutorial listed here: https://symfony.com/doc/4.0/setup.html
However when I attempt to run the server I get :
I haven't changed anything and composer appears to be grabbing all the necessary dependencies. I ran the PHP to check earlier and there was nothing critical missing:
I'm really stuck here as this code should be working (it is working for anyone else I know) and it is from a source who would have checked it.
Update: Result from console from running router debug:
-------------------------- -------- -------- ------ -----------------------------------
Name Method Scheme Host Path
-------------------------- -------- -------- ------ -----------------------------------
_twig_error_test ANY ANY ANY /_error/{code}.{_format}
_wdt ANY ANY ANY /_wdt/{token}
_profiler_home ANY ANY ANY /_profiler/
_profiler_search ANY ANY ANY /_profiler/search
_profiler_search_bar ANY ANY ANY /_profiler/search_bar
_profiler_phpinfo ANY ANY ANY /_profiler/phpinfo
_profiler_search_results ANY ANY ANY /_profiler/{token}/search/results
_profiler_open_file ANY ANY ANY /_profiler/open
_profiler ANY ANY ANY /_profiler/{token}
_profiler_router ANY ANY ANY /_profiler/{token}/router
_profiler_exception ANY ANY ANY /_profiler/{token}/exception
_profiler_exception_css ANY ANY ANY /_profiler/{token}/exception.css
-------------------------- -------- -------- ------ -----------------------------------
Stack traces:
SymfonyComponentRoutingExceptionResourceNotFoundException:
at var/cache/dev/srcDevDebugProjectContainerUrlMatcher.php:107
at srcDevDebugProjectContainerUrlMatcher->match('/')
(vendor/symfony/routing/Matcher/UrlMatcher.php:95)
at SymfonyComponentRoutingMatcherUrlMatcher->matchRequest(object(Request))
(vendor/symfony/routing/Router.php:262)
at SymfonyComponentRoutingRouter->matchRequest(object(Request))
(vendor/symfony/http-kernel/EventListener/RouterListener.php:114)
at SymfonyComponentHttpKernelEventListenerRouterListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
at call_user_func(array(object(RouterListener), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:104)
at SymfonyComponentEventDispatcherDebugWrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(EventDispatcher))
(vendor/symfony/event-dispatcher/EventDispatcher.php:212)
at SymfonyComponentEventDispatcherEventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent))
(vendor/symfony/event-dispatcher/EventDispatcher.php:44)
at SymfonyComponentEventDispatcherEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:139)
at SymfonyComponentEventDispatcherDebugTraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))
(vendor/symfony/http-kernel/HttpKernel.php:125)
at SymfonyComponentHttpKernelHttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:66)
at SymfonyComponentHttpKernelHttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:190)
at SymfonyComponentHttpKernelKernel->handle(object(Request))
(public/index.php:37)
SymfonyComponentHttpKernelExceptionNotFoundHttpException:
No route found for "GET /" (from "http://localhost/my-project/")
at vendor/symfony/http-kernel/EventListener/RouterListener.php:144
at SymfonyComponentHttpKernelEventListenerRouterListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
at call_user_func(array(object(RouterListener), 'onKernelRequest'), object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:104)
at SymfonyComponentEventDispatcherDebugWrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(EventDispatcher))
(vendor/symfony/event-dispatcher/EventDispatcher.php:212)
at SymfonyComponentEventDispatcherEventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent))
(vendor/symfony/event-dispatcher/EventDispatcher.php:44)
at SymfonyComponentEventDispatcherEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:139)
at SymfonyComponentEventDispatcherDebugTraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))
(vendor/symfony/http-kernel/HttpKernel.php:125)
at SymfonyComponentHttpKernelHttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:66)
at SymfonyComponentHttpKernelHttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:190)
at SymfonyComponentHttpKernelKernel->handle(object(Request))
(public/index.php:37)
See Question&Answers more detail:
os