Warning: undefined array key … in wp-cli.phar on line 213
-
I installed wp-cli according to instructions on Win 10 but now it’s giving me this weird error that appears nowhere on the internet. When I use command
wp cli update
:Warning: Undefined array key “a:1:{s:3:”ssl”;b:1;}” in phar://C:/wp-cli/wp-cli.phar/vendor/rmccue/requests/library/Requests.php on line 213
Error: Failed to get url ‘https://api.github.com/repos/wp-cli/wp-cli/releases?per_page=100’: No working transports found.I figured it was an environment issue so I checked and php wasn’t installed. So I installed latest version. Turns out that on Windows, php requires Visual Studio 19 so I installed that. Then I re-downloaded the .phar and it still gives that error.
The PATH has everything it should afaik. I am using MAMP for Windows. Maybe I don’t need PHP installed to my Windows since it’s running virtualized in MAMP? Is there a conflict between the MAMP php.ini and the Windows php.ini? Is there a conflict between MAMP’s php 7.4.1 and Windows’ php 8.0.3? Does the “ssl” in the array mean I need to install ssl keys?
Thanks for any suggestions.
- The topic ‘Warning: undefined array key … in wp-cli.phar on line 213’ is closed to new replies.