lando wp cli search-replace fails
Open
Nobody has claimed this yet.
Need More Info
- Dominant language
- JavaScript
- Stars
- 22
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
While attempting to lando pull, the tasks fails during the wp cli search-replace process stating WP_HOME is undefined though it exists in the .env file. It appears running any wp cli command will fail.
PHP Fatal error: Uncaught Error: Undefined constant "WP_HOME" in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1277) : eval()'d code:175
Lando Version: 3.6.1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing lando pull and a standalone WP-CLI command with Lando 3.6.1, then inspect how WP_HOME is loaded from .env during the search-replace process. Done means WP-CLI commands no longer fail with the undefined WP_HOME constant.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100