<p>I assume that the error occurred after updating the plugins. Most likely, the composer somehow incorrectly installed the update. Could it be a permissions issue, or is the version of PHP in Composer different from the version of PHP being used?
I see that <a href="https://github.com/solspace/craft-freeform/blob/master/packages/plugin/src/Library/Composer/Components/Form.php#L88" rel="nofollow noreferrer">this constant is in the plugin repository</a>.</p>
<p>Check if you have this file locally in the vendor folder.</p>
<pre><code>/vendor/solspace/craft-freeform/packages/plugin/src/Library/Composer/Components/Form.php
</code></pre>

CC BY-SA 4.0
2022-07-07T12:15:25.660Z
2022-07-07T12:15:25.660Z
RomanAvr
<p>I got this error on the website and the site is working fine and suddenly I can see this.</p>
<blockquote>
<p>&quot;Undefined class constant 'EVENT_AFTER_VALIDATE&quot;</p>
<p>vendor/solspace/craft-freeform/packages/plugin/src/Bundles/Payments/Stripe/StripePaymentsBundle.php</p>
</blockquote>
<p>Please can anyone assist/provide us any solution to fix the issue.</p>

<plugin-freeform>
Error on the Freeform plugin
# Error on the Freeform plugin

(Asked by: username_0 on 2022-07-07)

I got this error on the website and the site is working fine and suddenly I can see this.

> "Undefined class constant 'EVENT\_AFTER\_VALIDATE"
>
> vendor/solspace/craft-freeform/packages/plugin/src/Bundles/Payments/Stripe/StripePaymentsBundle.php

Please can anyone assist/provide us any solution to fix the issue.

**Tags:** plugin-freeform


---

## 1 answers

### Answer by username_1 on 2022-07-07. Score: 1

I assume that the error occurred after updating the plugins. Most likely, the composer somehow incorrectly installed the update. Could it be a permissions issue, or is the version of PHP in Composer different from the version of PHP being used?
I see that this constant is in the plugin repository.
Check if you have this file locally in the vendor folder.
/vendor/solspace/craft-freeform/packages/plugin/src/Library/Composer/Components/Form.php


---

