Issue Tracking

Bug # 35

Menu

WP-CLI Doesn't work with HTTP Headers Activated

What steps will reproduce the problem?
1. Install HTTP Headers plugin
2. Login SSH and navigate to your WordPress directory
3. Try any WP-CLI command - e.g. wp plugin list

What is the expected output? What do you see instead?
You should see results - e.g. a list of your plugins
Instead, there's nothing

To use WP-CLI, you'll need to use the following:
php -d memory_limit=512M "$(which wp)" plugin list

What version of the product are you using? On what browser/version?
WordPress 5.3 and plugin version1.14.2

Please provide any additional information below.
Did all of these steps first
https://make.wordpress.org/cli/handbook/common-issues/#php-fatal-error-allowed-memory-size-of-999999-bytes-exhausted-tried-to-allocate-99-bytes

To fix, deactivated HTTP Headers in dashboard or with WP-CLI
php -d memory_limit=512M "$(which wp)" plugin toggle http-headers

Then was able to use WP-CLI commands without temporarily setting PHP memory usage

12/05/2019

Anonymous User

new