# Cannot Deploy WP 4.6 with Trellis

**URL:** https://discourse.roots.io/t/cannot-deploy-wp-4-6-with-trellis/7461
**Category:** trellis
**Created:** 2016-08-22T15:33:59Z
**Posts:** 1

## Post 1 by @romero2k — 2016-08-22T15:33:59Z

Updated my composer.json to use WP 4.6. Fails on deploy. Here is the failure stack:

```
System info:
  Ansible 2.0.2.0; Darwin
  Trellis at "Fix #569 - Only skip subdomains for non-www domains"
---------------------------------------------------
PHP Fatal error: Uncaught Error: Call to undefined function apply_filters()
in /srv/www/thinlyveiledcontempt.com/releases/20160822152633/web/wp/wp-
includes/load.php:317
Stack trace:
#0 phar:///usr/bin/wp/php/utils-wp.php(22): wp_debug_mode()
#1 phar:///usr/bin/wp/php/wp-settings-cli.php(59):
WP_CLI\Utils\wp_debug_mode()
#2 phar:///usr/bin/wp/php/WP_CLI/Runner.php(807):
require('phar:///usr/bin...')
#3 phar:///usr/bin/wp/php/WP_CLI/Runner.php(755):
WP_CLI\Runner->load_wordpress()
#4 phar:///usr/bin/wp/php/wp-cli.php(21): WP_CLI\Runner->start()
#5 phar:///usr/bin/wp/php/boot-phar.php(5): include('phar:///usr/bin...')
#6 /usr/bin/wp(4): include('phar:///usr/bin...')
#7 {main}
  thrown in /srv/www/thinlyveiledcontempt.com/releases/20160822152633/web/wp
/wp-includes/load.php on line 317
fatal: [thinlyveiledcontempt.com]: FAILED! => {"changed": false, "cmd": ["wp", "core", "is-installed"], "delta": "0:00:00.125996", "end": "2016-08-22 15:26:46.924832", "failed": true, "failed_when_result": true, "rc": 255, "start": "2016-08-22 15:26:46.798836", "stderr": "PHP Fatal error: Uncaught Error: Call to undefined function apply_filters() in /srv/www/thinlyveiledcontempt.com/releases/20160822152633/web/wp/wp-includes/load.php:317\nStack trace:\n#0 phar:///usr/bin/wp/php/utils-wp.php(22): wp_debug_mode()\n#1 phar:///usr/bin/wp/php/wp-settings-cli.php(59): WP_CLI\\Utils\\wp_debug_mode()\n#2 phar:///usr/bin/wp/php/WP_CLI/Runner.php(807): require('phar:///usr/bin...')\n#3 phar:///usr/bin/wp/php/WP_CLI/Runner.php(755): WP_CLI\\Runner->load_wordpress()\n#4 phar:///usr/bin/wp/php/wp-cli.php(21): WP_CLI\\Runner->start()\n#5 phar:///usr/bin/wp/php/boot-phar.php(5): include('phar:///usr/bin...')\n#6 /usr/bin/wp(4): include('phar:///usr/bin...')\n#7 {main}\n thrown in /srv/www/thinlyveiledcontempt.com/releases/20160822152633/web/wp/wp-includes/load.php on line 317", "stdout": "", "stdout_lines": [], "warnings": []}
```

I saw [#639](https://github.com/roots/trellis/issues/639), which mentioned a need for an updated wp-cli to work with 4.6, so I updated the file in question (/trellis/roles/wp-cli/defaults/main.yml) with the version in the commit, but it is still failing. Could use some help.

---

## Post 2 by @swalkinshaw — 2016-08-22T15:41:42Z

A post was merged into an existing topic: [PHP error when deploy, after update to WP 4.6](/t/php-error-when-deploy-after-update-to-wp-4-6/7458)

---

## Post 3 by @swalkinshaw — 2016-08-22T15:41:43Z


