Hello,

I've updated my drupal install with composer and since then my site is out of order.

There is my error message :

"[Tue Oct 22 15:58:08.629084 2019] [proxy_fcgi:error] [pid 4022:tid 140394151012096] [client 127.0.0.1:44774] AH01071: Got error 'PHP message: Uncaught PHP Exception Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException: "You have requested a non-existent service "captcha.helper"." at /var/www/ehess.dev/web/core/lib/Drupal/Component/DependencyInjection/Container.php line 153\n',

The service is registered as a drush devel:services shows it.

The module's version is 8.x-1.0-beta4

Comments

fhebert created an issue. See original summary.

wundo’s picture

Did you clear cache?

fhebert’s picture

Issue summary: View changes
fhebert’s picture

Yes I've cleared the cache with drush cr

fhebert’s picture

Issue summary: View changes
Krishna Sugureddy’s picture

I had same issue and Downgrading drupal/captcha (1.0.0-beta4 => 1.0.0-beta3) fixed my issue.

wundo’s picture

Assigned: Unassigned » wundo
Status: Active » Needs work

I'm working on this

robbmlewis’s picture

I had this same problem. It looks like if I uninstalled the module and re-installed it, the error disappeared. Maybe the service is something that has to be told to be installed?

gnikolovski’s picture

I just experienced the same problem on my personal website and clearing the cache helped.

solithus’s picture

I cleared cache throw Drush cr, doesn't work, after i tried clear cache throw /admin/config/development/performance done!
worked for me!.

David.N.Brett’s picture

Hello,
Same problem here. As RobbMLewis suggested, I uninstalled/reinstalled both image captcha and captcha modules and the error disappeared.
Anyway, thanks for your time on this great module !

chimera15’s picture

Hi, bump, I have the same issue I cant access my site barely at all now, if I click on practically anything include the module that lets me uninstall modules I just get Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "captcha.helper"

Any help please my site is basically down completely.

This happened after I updated captcha cause my site was being spammed to hell by bots.

gouli’s picture

I got this error message when i upgraded Captcha module to 8.x-1.2. Upon clearing cache through drush(drush cr) resolved the issue.

japerry’s picture

Status: Needs work » Fixed

Added a post_update hook to ensure caches get cleared which should get the container if anyone is updating from an older version.

  • japerry committed afaa85e on 8.x-1.x
    Issue #3089431 by japerry: Service captcha.helper not found
    

Status: Fixed » Closed (fixed)

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