# Staging Deploy Fails When New Plugin Is Added

**URL:** https://discourse.roots.io/t/staging-deploy-fails-when-new-plugin-is-added/9433
**Category:** trellis
**Created:** 2017-04-20T21:35:03Z
**Posts:** 5
**Showing post:** 3 of 5

## Post 3 by @aldis — 2017-04-21T20:47:44Z

I too was having the same problem of a deploy failing at `Wordpress Installed?`, and can confirm it had to do with the changes with `Johnpbloch/wordpress`. You’ll want to do the fix from [this thread](https://discourse.roots.io/t/johnpbloch-wordpress-moved-to-a-new-configuration-and-wp-goes-missing/9124/45):

Local dev

```
# run commands in local machine Bedrock `site` dir
composer remove johnpbloch/wordpress
composer clear-cache
composer require johnpbloch/wordpress:4.7.3

# git add..., git commit..., git push...
```

Remote server

```
# run commands in local machine `trellis` dir
# edit `production` to be your <environment>
# edit `example.com` to be your site name

ansible "web:&production" -m command -a "composer clear-cache" -u web

ansible-playbook deploy.yml -e env=production -e site=example.com -e 'project_copy_folders=[]'
```

---

_[View the full topic](https://discourse.roots.io/t/staging-deploy-fails-when-new-plugin-is-added/9433)._
