Closed perruche closed 4 years ago
WP CLI from composer vendor does not work
▶ ./vendor/bin/wp plugin list `autoload.php` not found. Did you run `composer install`?%
This is failling at the very first line of wp-config.php if ( ! file_exists( dirname( __DIR__ ) . '/vendor/autoload.php' ) )
wp-config.php
if ( ! file_exists( dirname( __DIR__ ) . '/vendor/autoload.php' ) )
This is searching for a file in. : ./vendor/wp-cli/wp-cli/php/vendor/autoload.php and not in ./vendor/autoload.php
./vendor/wp-cli/wp-cli/php/vendor/autoload.php
./vendor/autoload.php
See this comment for a detailed explanation of the origin of the bug and how to fix it 😉
Fixed in #18.
WP CLI from composer vendor does not work
This is failling at the very first line of
wp-config.php
if ( ! file_exists( dirname( __DIR__ ) . '/vendor/autoload.php' ) )
This is searching for a file in. :
./vendor/wp-cli/wp-cli/php/vendor/autoload.php
and not in./vendor/autoload.php