During installation on a Pantheon development environment I get a white screen with a generic error message. Examining the log reveals the following error:

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "search404.settings" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 191 of /srv/bindings/0525bb0972474be1853f53b3bf4b631e/code/core/lib/Drupal/Core/Routing/RouteProvider.php).

This error does not occur on my local development machine which is running Apache on Mac OS X, and seems to be unique to the Pantheon environment. I have contacted Pantheon support, but I notice that this issue has seemingly plagued a few other modules as well and wonder if there may be something which needs to be modified in the module itself. I am still very new to Symfony, and am unable to see what the problem may be here.

Thank you!

Comments

rich_dawson created an issue. See original summary.

anish.a’s picture

Let us know any reply you get from pantheon. Is there any demo accounts from pantheon that I can test this?

rich_dawson’s picture

You can set up a development environment on Pantheon for free, they only charge for production sites.

Pantheon is waiting on a more senior member of their staff to return from vacation to respond to the support request. A member of their support team did post to github here: https://github.com/pantheon-systems/drops-8/issues/135

anish.a’s picture

Assigned: Unassigned » anish.a
rich_dawson’s picture

EDIT: Initially it seemed that my patch had resolved this issue. Unfortunately the issue persists, so I will continue to investigate on my end.

I do believe however that those paths are supposed to be encapsulated in quotations as that seems to be the standard on virtually every other contrib module and core modules.

rich_dawson’s picture

An update: I found that the partial loss of functionality is due to the NGINX servers in use at Pantheon, and is not related to the installation error given in this issue. More on that in the separate issue I created here.

Also, during the course of my troubleshooting I noticed that the file located in config/schema is named search404.settings.yml

It seems that other modules name files in the schema folder xxx.schema.yml

As it is currently there are two files named search404.settings.yml, one in config->install and the other in config->schema.

anish.a’s picture

Changed the file name to the standard specified by other modules.

I hope this closes this issue. Nginx issue will be fixed separate.

anish.a’s picture

Status: Needs work » Needs review
anish_zyxware’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new0 bytes

Merging the patch. Modified a bit.

  • anish_zyxware committed a1cebb9 on 8.x-1.x
    Issue #2696473 by rich_dawson, anish.a, anish_zyxware: Symfony routing...
anish_zyxware’s picture

Status: Reviewed & tested by the community » Closed (fixed)