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.
Problem/Motivation
I have encountered the following exception after enabling the module on SimplyTest.me and attempting to create a new user.
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.user.recurly_signup" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 190 of /home/dc2md/www/core/lib/Drupal/Core/Routing/RouteProvider.php).
Comment | File | Size | Author |
---|---|---|---|
#10 | interdiff-2872432-7-10.txt | 472 bytes | markdorison |
#10 | routenotfoundexception-2872432-10.patch | 3.71 KB | markdorison |
| |||
#7 | interdiff-2872432-5-7.txt | 397 bytes | markdorison |
#7 | routenotfoundexception-2872432-7.patch | 3.71 KB | markdorison |
| |||
#5 | routenotfoundexception-2872432-5.patch | 3.43 KB | markdorison |
Comments
Comment #2
markdorisonComment #3
markdorisonComment #4
markdorisonComment #5
markdorisonAdded test and additional check for whether plans are configured before redirecting. I am unsure why, but this is still failing.
Comment #7
markdorisonComment #8
adamzimmermann CreditAttribution: adamzimmermann at Chromatic commentedLooks good to me. I assume we want to prevent the redirect if the module is fully configured, but no plans have been entered into Recurly? That is how you have it now, just confirming.
Also,
return count(recurly_subscription_plans($reset_cache)) > 0;
could just bereturn !empty(recurly_subscription_plans($reset_cache));
, but either way works.Comment #9
colanI think
!empty()
is more readable.Comment #10
markdorisonComment #11
adamzimmermann CreditAttribution: adamzimmermann at Chromatic commentedComment #12
adamzimmermann CreditAttribution: adamzimmermann at Chromatic commentedComment #14
markdorison