Problem/Motivation

When enabling the file example in version 3.0.2, I get the following error. If anyone has a suggestions for how I might have misinstalled it, please let me know.

Thx.


Symfony\Component\Routing\Exception\RouteNotFoundException: Route "file_example.fileapi" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 208 of core/lib/Drupal/Core/Routing/RouteProvider.php).

Drupal\Core\Routing\UrlGenerator->getRoute() (Line: 271)
Drupal\Core\Routing\UrlGenerator->generateFromRoute() (Line: 105)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute() (Line: 762)
Drupal\Core\Url->toString() (Line: 182)
Drupal\Core\Utility\LinkGenerator->generate() (Line: 95)
Drupal\Core\Render\Element\Link::preRenderLink()
call_user_func_array() (Line: 100)
Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 781)
Drupal\Core\Render\Renderer->doCallback() (Line: 372)
Drupal\Core\Render\Renderer->doRender() (Line: 200)
Drupal\Core\Render\Renderer->render() (Line: 450)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 100)
__TwigTemplate_62171cf71ddd43ab2c05bcad698bc93e52bfa223eb6e80d9b76d8592530b0b70->doDisplay() (Line: 407)
Twig\Template->displayWithErrorHandling() (Line: 380)
Twig\Template->display() (Line: 392)
Twig\Template->render() (Line: 65)
twig_render_template() (Line: 384)
Drupal\Core\Theme\ThemeManager->render() (Line: 431)
Drupal\Core\Render\Renderer->doRender() (Line: 444)
Drupal\Core\Render\Renderer->doRender() (Line: 444)
Drupal\Core\Render\Renderer->doRender() (Line: 200)
Drupal\Core\Render\Renderer->render() (Line: 93)
template_preprocess_toolbar() (Line: 287)
Drupal\Core\Theme\ThemeManager->render() (Line: 431)
Drupal\Core\Render\Renderer->doRender() (Line: 444)
Drupal\Core\Render\Renderer->doRender() (Line: 200)
Drupal\Core\Render\Renderer->render() (Line: 450)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 105)
__TwigTemplate_efdfa6415dc85d781edc15c6a94c26201c252dbc98e3688276f19662258a493f->doDisplay() (Line: 407)
Twig\Template->displayWithErrorHandling() (Line: 380)
Twig\Template->display() (Line: 392)
Twig\Template->render() (Line: 65)
twig_render_template() (Line: 384)
Drupal\Core\Theme\ThemeManager->render() (Line: 431)
Drupal\Core\Render\Renderer->doRender() (Line: 200)
Drupal\Core\Render\Renderer->render() (Line: 147)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 148)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray() (Line: 78)
Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy->dispatch() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 57)
Drupal\Core\StackMiddleware\Session->handle() (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 705)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Issue fork examples-3186030

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bogdog400 created an issue. See original summary.

bogdog400’s picture

It looks like this route was removed back in 8.1.1 because of security concerns.

https://www.drupal.org/project/examples/releases/8.x-1.1

cm0dit’s picture

For those who aren't sure how to get their site working again, run the following commands (assuming you have Drush installed):

  1. drush pm-uninstall file_example -y
  2. drush cr

Or the corresponding commands for the version of Drush you have installed.

valthebald’s picture

Status: Active » Closed (won't fix)

That's right - the route was removed because of the security issue. There are plans to re-add it, but this isn't done yet.