• I’m trying to configure and run wp-cli on Windows 2016.

    D:\public_htdocs>php “wp-cli.phar”
    PHP Warning: Undefined array key “SERVER_NAME” in phar://D:/public_htdocs/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()’d code on line 55
    NAME

    wp

    DESCRIPTION

    Manage WordPress through the command-line.

    wp.cmd contents:

    php “wp-cli.phar” %*

    D:\public_htdocs>echo %path%
    C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\ivantiscan\AppData\Local\Microsoft\WindowsApps;;D:\php-8.0.23-Win32-vs16-x64;D:\php-8.0.23-Win32-vs16-x64\ext;D:\php-8.0.23-Win32-vs16-x64\lib;d:\public_htdocs

    Ultimately, I need to run a search and replace for the domain.

    d:\public_htdocs>php “wp-cli.phar” search-replace ‘mydomain.com’ ‘mydevdomain.com’ –dry-run
    PHP Warning: Undefined array key “SERVER_NAME” in phar://D:/public_htdocs/wp-cli.phar/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()’d code on line 55
    +—————————–+———————–+————–+——+
    | Table | Column | Replacements | Type |
    +—————————–+———————–+————–+——+
    | sdg_actionscheduler_actions | hook | 0 | SQL |
    | sdg_actionscheduler_actions | status | 0 | SQL |
    | sdg_actionscheduler_actions | args | 0 | SQL |
    | sdg_actionscheduler_actions | schedule | 0 | PHP |

    Search and replace doesn’t seem to find anything to update either.

    Is that server error just a soft error?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Windows wp-cli soft error?’ is closed to new replies.