lando / lando/wordpress

lando wp cli search-replace fails

Open
#3 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.