Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
after installing the module I get the following error:
Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Route "acquia_connector.setup" does not exist." at core/lib/Drupal/Core/Routing/RouteProvider.php line 176
but the module is enabled successfully
Comment | File | Size | Author |
---|---|---|---|
#9 | route-2572459-9.patch | 475 bytes | snufkin |
Comments
Comment #2
reszlithe issues is caused by the message "Connect your site to the Acquia Subscription now." generated on every page refresh
at the initial page load after the module is enabled line 128 fails in acquia_connector/src/EventSubscriber/InitSubscriber.php
line 128: '@settings' =>Url::fromRoute('acquia_connector.setup')->toString(),
the route is not (yet) available for some reason at this point
BTW, this message should not show up, when I'm already on the Acquia Connector settings pages...
Comment #3
Stanislav Mixnovich CreditAttribution: Stanislav Mixnovich commentedI can't reproduce. Try again install version 8.x-1.x-DEV.
Comment #4
IT-CruI got same error message, when I try to activate acquia_connector (git revision: ac830c314ff7d856c36e6cc2a1d413e9f5207683) on D8RC1.
Could only uninstall acquia_connector with 'drush pm-uninstall acquia_connector'.
Comment #5
Stanislav Mixnovich CreditAttribution: Stanislav Mixnovich commentedI think that the problem is in the file system, you must provide appropriate permission for writing into the temporary directory.
Comment #6
jason_purdy CreditAttribution: jason_purdy commentedI also have this same error message on an Acquia Free Cloud environment that has a fresh setup and core update to 8.0.1. I can confirm that my temp folder is setup and has the appropriate permissions for writing into that directory. I do have a file system error on my status report:
I have a feeling that if I can resolve the file directory issue, then this will work. The problem is that the file directory seems to be setup ok. It's using sites/default/file
</code>s. I don't know why the UI reports <code>/mnt/www/html/EXAMPLE/docroot/../config/default
.Comment #7
Stanislav Mixnovich CreditAttribution: Stanislav Mixnovich commentedI found similar issues:
https://www.drupal.org/node/2638320
https://www.drupal.org/node/2608870
https://www.drupal.org/node/1387438
https://www.drupal.org/node/2564921
Comment #8
snufkin CreditAttribution: snufkin at Acquia commentedI can reproduce it - this happens when I try to install Acquia Connector. I've tested this with the stable version (1.0), and I get the following error:
This is odd, because the route definition itself is there and it works. Could it be a core bug?
The error only apperars on first install. It is present in the hook_requirements, could it be that routes are not yet initialised at that point?
Comment #9
snufkin CreditAttribution: snufkin at Acquia commentedThis can be resolved by adding a \Drupal::service('router.builder')->rebuild(); line to the hook_requirements. I'm not sure how great of an idea this is however, as it may have performance implications.
Here is an initial patch, that forces the router rebuild, but please mind that this may have severe performance impact and should not be used on production until it is reviewed.
Comment #10
snufkin CreditAttribution: snufkin at Acquia commentedI think this is a core issue #2589967: Rebuild routes immediately when modules are installed, it will work when it gets fixed in core. Marking it won't fix as a result.
Comment #11
snufkin CreditAttribution: snufkin at Acquia commented