Answers.Body: <blockquote>
  <p>&quot;After pushing the exec widget all the codebase changes, fields, sections are moved to the Staging environment.&quot;</p>
  </blockquote>
  <p>You skipped a step...</p>
  <p>Assuming you are properly using Project Config, you'll want to run <code>craft up</code> after deploying your files.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-14T18:20:31.993Z
Answers.LastActivityDate: 2021-10-14T18:20:31.993Z
Answers.UserDisplayName: Lindsey D
Body: <p>We are using the custom exec widget to move the codebase, backend fields, section creations, and images from one environment to another.</p>
  <p>We have Dev, Stage, and Production environments. After completing the development work in the Dev environment we push the custom exec widget to move codebase from Dev to Stage, Stage to Prod, and vice versa. It was working fine previously but yesterday we faced some issues in the Dev environment.</p>
  <p>After pushed the exec widget some of the plugins are uninstalled automatically and the site is not working.</p>
  <p>Steps to Reproduce:-</p>
  <ul>
  <li>Make changes in the Dev environment like fields creation or codebase changes in the GIT repo</li>
  <li>Push Exec widget from Backend</li>
  <li>Wait for 2 mins then errors occurred</li>
  </ul>
  <p>Error:-
  We have used the Navigation plugin in the header section.</p>
  <blockquote>
  <p>Twig Runtime Error – Twig\Error\RuntimeError
  Calling unknown method: craft\web\twig\variables\CraftVariable::navigation()</p>
  </blockquote>
  <p>Versions of Craft CMS &amp; PHP:-</p>
  <ul>
  <li>PHP version 7.4.16</li>
  <li>OS version Linux 3.10.0-1160.31.1.el7.x86_64</li>
  <li>Database driver &amp; version PostgreSQL 12.7</li>
  <li>Image driver &amp; version Imagick 3.4.4 (ImageMagick 6.9.12-15)</li>
  <li>Craft edition &amp; version Craft Pro 3.7.10</li>
  </ul>
  <p>The following plugins are uninstalled after we pushed the exec widget.</p>
  <ul>
  <li>Agnostic Fetch - 2.0.4</li>
  <li>AsyncQueue - 2.3.0</li>
  <li>Eager Beaver - 1.0.4</li>
  <li>Element API - 2.7.0</li>
  <li>Enupal Snapshot - 1.2.8</li>
  <li>Exec Widget - 1.0.0</li>
  <li>Feed Me - 4.4.0</li>
  <li>Guest Entries - 2.4.0</li>
  <li>ImageOptimize - 1.6.3</li>
  <li>Image Resizer - 2.1.0</li>
  <li>Navigation - 1.4.20</li>
  <li>Picture - 2.2.2</li>
  <li>Redactor - 2.8.8</li>
  <li>Redirect Manager - 1.1.1</li>
  <li>SEOmatic - 3.4.2</li>
  <li>Super Table - 2.6.8</li>
  <li>Typed link field - 1.0.25</li>
  <li>Wordsmith - 3.3.0.1</li>
  </ul>
  <p>Expected result:</p>
  <p>After pushing the exec widget all the codebase changes, fields, sections are moved to the Staging environment.</p>
  <p>We tried to figure out what causing the issue but unfortunately, we couldn't. So could you please help us to resolve this issue?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-14T14:23:14.997Z
Comments.Text: What exactly are you using the exec plugin for in your workflow? Why not just [propagate config changes through git](https://craftcms.com/docs/3.x/project-config.html#propagating-changes)? The project config includes the list of installed plugins in the `config/project/project.yaml` file. Probably something went something wrong in your deployment pipeline which lead to an older config file being applied. If an installed plugin is not listed in the `project.yaml` during the `project-config/apply` step, Craft will uninstall it automatically …
Comments.UserDisplayName: MoritzLost
Tags: <plugin-development><plugins><multi-environment><environmentvariables><dashboard-widgets>
Title: All Plugins Showing "Not Installed" After Promoting Changes From Dev to Stage Environments
ThreadText: # All Plugins Showing "Not Installed" After Promoting Changes From Dev to Stage Environments
  
  (Asked by: username_0 on 2021-10-14)
  
  We are using the custom exec widget to move the codebase, backend fields, section creations, and images from one environment to another.
  
  We have Dev, Stage, and Production environments. After completing the development work in the Dev environment we push the custom exec widget to move codebase from Dev to Stage, Stage to Prod, and vice versa. It was working fine previously but yesterday we faced some issues in the Dev environment.
  
  After pushed the exec widget some of the plugins are uninstalled automatically and the site is not working.
  
  Steps to Reproduce:-
  
  * Make changes in the Dev environment like fields creation or codebase changes in the GIT repo
  * Push Exec widget from Backend
  * Wait for 2 mins then errors occurred
  
  Error:-
  We have used the Navigation plugin in the header section.
  
  > Twig Runtime Error – Twig\Error\RuntimeError
  > Calling unknown method: craft\web\twig\variables\CraftVariable::navigation()
  
  Versions of Craft CMS & PHP:-
  
  * PHP version 7.4.16
  * OS version Linux 3.10.0-1160.31.1.el7.x86\_64
  * Database driver & version PostgreSQL 12.7
  * Image driver & version Imagick 3.4.4 (ImageMagick 6.9.12-15)
  * Craft edition & version Craft Pro 3.7.10
  
  The following plugins are uninstalled after we pushed the exec widget.
  
  * Agnostic Fetch - 2.0.4
  * AsyncQueue - 2.3.0
  * Eager Beaver - 1.0.4
  * Element API - 2.7.0
  * Enupal Snapshot - 1.2.8
  * Exec Widget - 1.0.0
  * Feed Me - 4.4.0
  * Guest Entries - 2.4.0
  * ImageOptimize - 1.6.3
  * Image Resizer - 2.1.0
  * Navigation - 1.4.20
  * Picture - 2.2.2
  * Redactor - 2.8.8
  * Redirect Manager - 1.1.1
  * SEOmatic - 3.4.2
  * Super Table - 2.6.8
  * Typed link field - 1.0.25
  * Wordsmith - 3.3.0.1
  
  Expected result:
  
  After pushing the exec widget all the codebase changes, fields, sections are moved to the Staging environment.
  
  We tried to figure out what causing the issue but unfortunately, we couldn't. So could you please help us to resolve this issue?
  
  **Tags:** plugin-development, plugins, multi-environment, environmentvariables, dashboard-widgets
  
  > **Comments:**
  > **username_1**: What exactly are you using the exec plugin for in your workflow? Why not just [propagate config changes through git](https://craftcms.com/docs/3.x/project-config.html#propagating-changes)? The project config includes the list of installed plugins in the `config/project/project.yaml` file. Probably something went something wrong in your deployment pipeline which lead to an older config file being applied. If an installed plugin is not listed in the `project.yaml` during the `project-config/apply` step, Craft will uninstall it automatically …  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2021-10-14. Score: 1
  
  > "After pushing the exec widget all the codebase changes, fields, sections are moved to the Staging environment."
  
  You skipped a step...
  
  Assuming you are properly using Project Config, you'll want to run `craft up` after deploying your files.
  
  
  ---
  
  