# ClassNotFoundException: Attempted to load class "FormSubscriber" from namespace "MauticPlugin\\MauticRecaptchaBundle\\EventListener"

**URL:** <https://forum.mautic.org/t/classnotfoundexception-attempted-to-load-class-formsubscriber-from-namespace-mauticplugin-mauticrecaptchabundle-eventlistener/26549>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [December 30, 2022, 4:16am UTC](https://forum.mautic.org/t/classnotfoundexception-attempted-to-load-class-formsubscriber-from-namespace-mauticplugin-mauticrecaptchabundle-eventlistener/26549 "2022-12-30T04:16:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deejmer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/deejmer/32/588_2.png) [@deejmer](https://forum.mautic.org/u/deejmer)\
**Post date:** [December 30, 2022, 4:16am UTC](https://forum.mautic.org/t/classnotfoundexception-attempted-to-load-class-formsubscriber-from-namespace-mauticplugin-mauticrecaptchabundle-eventlistener/26549/1 "2022-12-30T04:16:06Z")

</div>

**Upgrading from 2.16.5 to 3.2.4**  
_My PHP version is 7.2.34_ :  
_My MySQL/MariaDB version is 5.0.12-dev_

The upgrade says that it runs successfully, but I get a 500 error and this following error logged in PHP:

**Updating/Installing Error: ClassNotFoundException: Attempted to load class “FormSubscriber” from namespace “MauticPlugin\MauticRecaptchaBundle\EventListener”**  
\*I am upgrading via Command Line"

_These errors are showing in the installer_ : ClassNotFoundException: Attempted to load class “FormSubscriber” from namespace “MauticPlugin\MauticRecaptchaBundle\EventListener”

_These errors are showing in the Mautic log_ : n/a

_These errors are showing in the upgrade\_log.txt file (located in the root of your Mautic instance when an upgrade has been attempted - ensure you remove or redact any sensitive data such as domain names in the file path)_ :

**Your problem**  
_My problem is I’m getting a 500 error. The errors seems related to the Captcha plugin. However, the upgrade instructions instructed me to remove the plugin before upgrading. I believe that I have adequate resources allocated in php.ini: ex:1024M in memory, 240 in max execution time/max input time, etc._ :

_Steps I have tried to fix the problem_ : I disabled the plugin, deleted it, and removed the cache. Even after doing this, I’m getting the error and getting nothing but a 500 error.

---

<div class="post-metadata">

**Author:** ![asad786](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/asad786/32/8990_2.png) [@asad786](https://forum.mautic.org/u/asad786)\
**Post date:** [January 18, 2023, 7:01am UTC](https://forum.mautic.org/t/classnotfoundexception-attempted-to-load-class-formsubscriber-from-namespace-mauticplugin-mauticrecaptchabundle-eventlistener/26549/2 "2023-01-18T07:01:08Z")

</div>

When you login to your ssh as root and give commands as root then you spoil the cache file system by generating files with the wrong owner. Files have to be generated with the user that runs apache or nginx. Often this is user www-data.

".
