wp-bootstrap icon indicating copy to clipboard operation
wp-bootstrap copied to clipboard

BASEPATH is incorrectly defined in 0.5.2 vendor/bin/wpbootstrap

Open robpblake opened this issue 7 years ago • 0 comments

I'm following your tutorial here: https://www.wpessentials.io/2016/01/preparing-a-wordpress-site-for-git-using-wp-bootstrap/

When I run vendor/bin/wpbootstrap wp-init-composer using 0.5.2, I get the following error:

vendor/bin/wpbootstrap wp-init-composer
PHP Notice:  Use of undefined constant BASEPATH - assumed 'BASEPATH' in /vagrant/vendor/eriktorsner/wp-bootstrap/bin/wpbootstrap on line 7
PHP Stack trace:
PHP   1. {main}() /vagrant/vendor/eriktorsner/wp-bootstrap/bin/wpbootstrap:0
PHP Warning:  require_once(BASEPATH/vendor/autoload.php): failed to open stream: No such file or directory in /vagrant/vendor/eriktorsner/wp-bootstrap/bin/wpbootstrap on line 7
PHP Stack trace:
PHP   1. {main}() /vagrant/vendor/eriktorsner/wp-bootstrap/bin/wpbootstrap:0
PHP Fatal error:  require_once(): Failed opening required 'BASEPATH/vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /vagrant/vendor/eriktorsner/wp-bootstrap/bin/wpbootstrap on line 7
PHP Stack trace:
PHP   1. {main}() /vagrant/vendor/eriktorsner/wp-bootstrap/bin/wpbootstrap:0

It looks like you did some refactoring for 0.5.2, but missed BASEPATH here.

robpblake avatar Nov 06 '17 14:11 robpblake