<p>Did you install this plugin on a production server? There are a few things that should be taken into consideration:</p>
<p><code>allowAdminChanges</code> should preferably always be false on production/staging environments. And only enabled in a local development environment.</p>
<p>To install a plugin you'd run the <code>composer require vendor/plugin</code> part.
After that has run you can use the Admin Panel or install the plugin through the CLI with <code>php craft plugin/install plugin-handle</code> which will install the plugin for you.</p>
<p>You'll notice once you push up and are ready to deploy the code you have changes in the project config file.</p>
<p>To make sure then those changes reflect on the production/staging server you'd need to run:</p>
<p><code>php craft up</code> which will apply the changes you made locally to the database structure and run any migrations if they're necessary.</p>

CC BY-SA 4.0
2023-03-08T13:50:28.507Z
2023-03-08T13:50:28.507Z
Michael Thomas
<p>A friend uses Craft CMS (3.7.40). He is not a IT guy, so he asked me to help him. I haven't worked with Craft CMS yet, but I figured his problem would be easy so solve: he would like to use Google reCaptcha for the contact form. I took a look at the plugin store and there are several free plugins which should solve this.</p>
<p>So I tried to install this one: <a href="https://plugins.craftcms.com/craft-recaptcha" rel="nofollow noreferrer">https://plugins.craftcms.com/craft-recaptcha</a>
and after some minor issues (had to set <code>allowAdminChanges</code> to true) I finally saw the install button and pressed it. After the installation it says the plugin was added, but an error occurred:</p>
<blockquote>
<p>Invalid plugin: No plugin exists with the handle &quot;craft-recaptcha&quot;.</p>
</blockquote>
<p>I did some research and if I don't revert the failed installation, I can find the plugin in the <code>composer.json</code> 'require' section, but no database tables and no record in the plugin table were created.</p>
<p>Does anybody know why it fails? It seems like a database problem... and it seems like nobody else run into that exact problem, at least I didn't find anything in Google. The web.log show this line:</p>
<blockquote>
<p>2022-08-28 16:44:15
[-][3][-][error][craft\controllers\BaseUpdaterController::installPlugin]
Plugin installation failed: No plugin exists with the handle
&quot;craft-recaptcha&quot;.</p>
</blockquote>
<p>Does anybody have any idea what I am doing wrong?</p>

<plugins><install>
Plugin installation fails
# Plugin installation fails

(Asked by: username_0 on 2022-08-28)

A friend uses Craft CMS (3.7.40). He is not a IT guy, so he asked me to help him. I haven't worked with Craft CMS yet, but I figured his problem would be easy so solve: he would like to use Google reCaptcha for the contact form. I took a look at the plugin store and there are several free plugins which should solve this.

So I tried to install this one: <https://plugins.craftcms.com/craft-recaptcha>
and after some minor issues (had to set `allowAdminChanges` to true) I finally saw the install button and pressed it. After the installation it says the plugin was added, but an error occurred:

> Invalid plugin: No plugin exists with the handle "craft-recaptcha".

I did some research and if I don't revert the failed installation, I can find the plugin in the `composer.json` 'require' section, but no database tables and no record in the plugin table were created.

Does anybody know why it fails? It seems like a database problem... and it seems like nobody else run into that exact problem, at least I didn't find anything in Google. The web.log show this line:

> 2022-08-28 16:44:15
> [-][3][-][error][craft\controllers\BaseUpdaterController::installPlugin]
> Plugin installation failed: No plugin exists with the handle
> "craft-recaptcha".

Does anybody have any idea what I am doing wrong?

**Tags:** plugins, install


---

## 1 answers

### Answer by username_1 on 2023-03-08. Score: 2

Did you install this plugin on a production server? There are a few things that should be taken into consideration:

`allowAdminChanges` should preferably always be false on production/staging environments. And only enabled in a local development environment.

To install a plugin you'd run the `composer require vendor/plugin` part.
After that has run you can use the Admin Panel or install the plugin through the CLI with `php craft plugin/install plugin-handle` which will install the plugin for you.

You'll notice once you push up and are ready to deploy the code you have changes in the project config file.

To make sure then those changes reflect on the production/staging server you'd need to run:

`php craft up` which will apply the changes you made locally to the database structure and run any migrations if they're necessary.


---

