studiometa / create-wordpress-project

A generator to kickstart your WordPress project in a few seconds! ⚡
MIT License
6 stars 3 forks source link

WP CLI from vendor is not working #17

Closed perruche closed 4 years ago

perruche commented 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' ) )

This is searching for a file in. : ./vendor/wp-cli/wp-cli/php/vendor/autoload.php and not in ./vendor/autoload.php

titouanmathis commented 4 years ago

See this comment for a detailed explanation of the origin of the bug and how to fix it 😉

titouanmathis commented 4 years ago

Fixed in #18.