<p>For those that are experiencing the same issue, update your compser.json file to look like this:</p>
<pre><code>&quot;config&quot;: {
        &quot;allow-plugins&quot;: {
            &quot;craftcms/plugin-installer&quot;: true,
            &quot;yiisoft/yii2-composer&quot;: true
        },
    }
</code></pre>
<p>I believe this is only a temporary fix. Further updates can be found on the craft github <a href="https://github.com/craftcms/cms/issues/11399" rel="nofollow noreferrer">https://github.com/craftcms/cms/issues/11399</a></p>

CC BY-SA 4.0
2022-06-23T13:49:27.283Z
2022-06-23T13:49:27.283Z
Mike Niland
<p>After updating to Craft Pro 3.7.44 my local MAMP site now throws a server error when adding/removing a plugin within the Craft CMS UI. Editing the composer.json file manually and running composer update seems to bypass this error.</p>
<pre><code>A fatal error has occurred:

Status: Internal Server Error

Response: { &quot;error&quot;: &quot;Failed to instantiate component or class \&quot;yii\\shell\\Bootstrap\&quot;.&quot;, &quot;exception&quot;: &quot;yii\\di\\NotInstantiableException&quot;, &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/di/Container.php&quot;, &quot;line&quot;: 509, &quot;trace&quot;: 
[{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/di/Container.php&quot;, &quot;line&quot;: 385, &quot;function&quot;: &quot;getDependencies&quot;, &quot;class&quot;: &quot;yii\\di\\Container&quot;, &quot;type&quot;: &quot;-&gt;&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/di/Container.php&quot;, &quot;line&quot;: 170, &quot;function&quot;: &quot;build&quot;, &quot;class&quot;: &quot;yii\\di\\Container&quot;, &quot;type&quot;: &quot;-&gt;&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/BaseYii.php&quot;, &quot;line&quot;: 345, &quot;function&quot;: &quot;get&quot;, &quot;class&quot;: &quot;yii\\di\\Container&quot;, &quot;type&quot;: &quot;-&gt;&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/base/Application.php&quot;, &quot;line&quot;: 292, &quot;function&quot;: &quot;createObject&quot;, &quot;class&quot;: &quot;yii\\BaseYii&quot;, &quot;type&quot;: &quot;::&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/craftcms/cms/src/web/Application.php&quot;, &quot;line&quot;: 116, &quot;function&quot;: &quot;bootstrap&quot;, &quot;class&quot;: &quot;yii\\base\\Application&quot;, &quot;type&quot;: &quot;-&gt;&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/base/Application.php&quot;, &quot;line&quot;: 271, &quot;function&quot;: &quot;bootstrap&quot;, &quot;class&quot;: &quot;craft\\web\\Application&quot;, &quot;type&quot;: &quot;-&gt;&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/craftcms/cms/src/web/Application.php&quot;, &quot;line&quot;: 93, &quot;function&quot;: &quot;init&quot;, &quot;class&quot;: &quot;yii\\base\\Application&quot;, &quot;type&quot;: &quot;-&gt;&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/base/BaseObject.php&quot;, &quot;line&quot;: 109, &quot;function&quot;: &quot;init&quot;, &quot;class&quot;: &quot;craft\\web\\Application&quot;, &quot;type&quot;: &quot;-&gt;&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/base/Application.php&quot;, &quot;line&quot;: 204, &quot;function&quot;: &quot;__construct&quot;, &quot;class&quot;: &quot;yii\\base\\BaseObject&quot;, &quot;type&quot;: &quot;-&gt;&quot; },
{ &quot;function&quot;: &quot;__construct&quot;, &quot;class&quot;: &quot;yii\\base\\Application&quot;, &quot;type&quot;: &quot;-&gt;&quot; }, { &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/di/Container.php&quot;, &quot;line&quot;: 419, &quot;function&quot;: &quot;newInstanceArgs&quot;, &quot;class&quot;: &quot;ReflectionClass&quot;, &quot;type&quot;: &quot;-&gt;&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/di/Container.php&quot;, &quot;line&quot;: 170, &quot;function&quot;: &quot;build&quot;, &quot;class&quot;: &quot;yii\\di\\Container&quot;, &quot;type&quot;: &quot;-&gt;&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/BaseYii.php&quot;, &quot;line&quot;: 365, &quot;function&quot;: &quot;get&quot;, &quot;class&quot;: &quot;yii\\di\\Container&quot;, &quot;type&quot;: &quot;-&gt;&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/craftcms/cms/src/Craft.php&quot;, &quot;line&quot;: 61, &quot;function&quot;: &quot;createObject&quot;, &quot;class&quot;: &quot;yii\\BaseYii&quot;, &quot;type&quot;: &quot;::&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/craftcms/cms/bootstrap/bootstrap.php&quot;, &quot;line&quot;: 247, &quot;function&quot;: &quot;createObject&quot;, &quot;class&quot;: &quot;Craft&quot;, &quot;type&quot;: &quot;::&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/vendor/craftcms/cms/bootstrap/web.php&quot;, &quot;line&quot;: 51, &quot;function&quot;: &quot;require&quot; },
{ &quot;file&quot;: &quot;/Users/user/repos/CRAFT_BOOTSTRAP/web/index.php&quot;, &quot;line&quot;: 25, &quot;function&quot;: &quot;require&quot; }] }
</code></pre>
<pre><code>Craft Pro 3.7.44
PHP - 8.0.8
DB - MySQL 5.7.34

Plugins:

Contact Form 2.5.1
Contact Form Extensions 1.3.2
Control Panel CSS 2.4.0
Empty Coalesce 1.0.6
Neo 2.13.11
Redactor 2.10.8
Table Maker 3.0.0
</code></pre>

<craft3><plugins><error-message><install><uninstall>
Plugin install/remove causes fatal error on local
# Plugin install/remove causes fatal error on local

(Asked by: username_0 on 2022-06-15)

After updating to Craft Pro 3.7.44 my local MAMP site now throws a server error when adding/removing a plugin within the Craft CMS UI. Editing the composer.json file manually and running composer update seems to bypass this error.
A fatal error has occurred:

Status: Internal Server Error

Response: { "error": "Failed to instantiate component or class \"yii\\shell\\Bootstrap\".", "exception": "yii\\di\\NotInstantiableException", "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/di/Container.php", "line": 509, "trace": 
[{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/di/Container.php", "line": 385, "function": "getDependencies", "class": "yii\\di\\Container", "type": "->" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/di/Container.php", "line": 170, "function": "build", "class": "yii\\di\\Container", "type": "->" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/BaseYii.php", "line": 345, "function": "get", "class": "yii\\di\\Container", "type": "->" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/base/Application.php", "line": 292, "function": "createObject", "class": "yii\\BaseYii", "type": "::" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/craftcms/cms/src/web/Application.php", "line": 116, "function": "bootstrap", "class": "yii\\base\\Application", "type": "->" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/base/Application.php", "line": 271, "function": "bootstrap", "class": "craft\\web\\Application", "type": "->" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/craftcms/cms/src/web/Application.php", "line": 93, "function": "init", "class": "yii\\base\\Application", "type": "->" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/base/BaseObject.php", "line": 109, "function": "init", "class": "craft\\web\\Application", "type": "->" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/base/Application.php", "line": 204, "function": "__construct", "class": "yii\\base\\BaseObject", "type": "->" },
{ "function": "__construct", "class": "yii\\base\\Application", "type": "->" }, { "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/di/Container.php", "line": 419, "function": "newInstanceArgs", "class": "ReflectionClass", "type": "->" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/di/Container.php", "line": 170, "function": "build", "class": "yii\\di\\Container", "type": "->" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/yiisoft/yii2/BaseYii.php", "line": 365, "function": "get", "class": "yii\\di\\Container", "type": "->" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/craftcms/cms/src/Craft.php", "line": 61, "function": "createObject", "class": "yii\\BaseYii", "type": "::" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/craftcms/cms/bootstrap/bootstrap.php", "line": 247, "function": "createObject", "class": "Craft", "type": "::" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/vendor/craftcms/cms/bootstrap/web.php", "line": 51, "function": "require" },
{ "file": "/Users/user/repos/CRAFT_BOOTSTRAP/web/index.php", "line": 25, "function": "require" }] }

Craft Pro 3.7.44
PHP - 8.0.8
DB - MySQL 5.7.34

Plugins:

Contact Form 2.5.1
Contact Form Extensions 1.3.2
Control Panel CSS 2.4.0
Empty Coalesce 1.0.6
Neo 2.13.11
Redactor 2.10.8
Table Maker 3.0.0

**Tags:** craft3, plugins, error-message, install, uninstall


---

## 1 answers

### Answer by username_0 on 2022-06-23. Score: 1 | Accepted answer

For those that are experiencing the same issue, update your compser.json file to look like this:
"config": {
        "allow-plugins": {
            "craftcms/plugin-installer": true,
            "yiisoft/yii2-composer": true
        },
    }

I believe this is only a temporary fix. Further updates can be found on the craft github https://github.com/craftcms/cms/issues/11399


---

