I decided to switch from ReCaptcha to Honeypot after upgrading from Drupal 8 to 9. Current core version is 9.4.1. Website runs on shared server at InmotionHosting.

Install was attempted multiple times, via UI as well as manual install per Drupal instructions (https://www.drupal.org/docs/user_guide/en/extend-module-install.html). The result was the same each time.

When attempting to install Honeypot, I get the following error message:

The website encountered an unexpected error. Please try again later.
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "honeypot.config" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of /websiteurl.com/core/lib/Drupal/Core/Routing/RouteProvider.php).

Installing via composer is unfortunately not an option on my environment.

CommentFileSizeAuthor
#4 3293203-4-install.patch652 bytestr

Issue fork honeypot-3293203

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:

Comments

McGregorPalms created an issue. See original summary.

andrew.wang’s picture

I'm having the same issue... Came here from Google.

Core version 9.3.17

nath.aritkumar made their first commit to this issue’s fork.

tr’s picture

Version: 2.1.1 » 2.1.x-dev
Component: Miscellaneous » Code
Status: Active » Needs review
StatusFileSize
new652 bytes

I don't know why this has cropped up after so long and so many installs. Also, the current code consistently works and installs properly in the testbot.

But here's a patch that should prevent the problem. Please try this and let me know if it fixes things for you.

jatingupta40’s picture

Status: Needs review » Active

I will review this.

jatingupta40’s picture

Assigned: Unassigned » jatingupta40
jatingupta40’s picture

Assigned: jatingupta40 » Unassigned
Status: Active » Reviewed & tested by the community

works absolutely fine for me.

tr’s picture

@JatinGupta40: Does installation fail for you without the patch?

jatingupta40’s picture

@TR: Yes, the installation got failed and it showed me this error - "The website encountered an unexpected error. Please try again later."
But worked fine after I applied the patch.

  • TR committed a82bf81 on 2.1.x
    Issue #3293203 by TR, nath.aritkumar: Install fails "honeypot.config"...
tr’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks for the review and the testing.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

mennonot’s picture

For those who reached this page with this error and are not, for some reason, easily able to install the patch, I would just note that the install seems to have still worked despite the error and clearing the cache brings up the config looking normal at admin/config/content/honeypot