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

wp bootstrap setup - Error: This does not seem to be a WordPress install.

Open ethanclevenger91 opened this issue 8 years ago • 2 comments

First time using this package, I'm trying to setup a brand new site. I've got my .env, .env-development, set the environment correctly using setenv, but when I try to run the setup, I get Error: This does not seem to be a WordPress install..

Which is, of course, the case - that's the whole reason I'm using the command.

Any advice?

ethanclevenger91 avatar Jul 17 '16 02:07 ethanclevenger91

Hi, thanks for the feedback.

To help you solve this, can you paste the content of your wp-cli.yml file as it looks right now?

Also, I'm thinking this could be an issue with the instructions in the readme. Did you run the wp bootstrap install command first (you didn't mention it)?

install is for creating the installation the first time while you will typically run setup lots of times, after every time you modify appsettings.yml

eriktorsner avatar Jul 17 '16 10:07 eriktorsner

wp-cli.yml:

require:
    - vendor/autoload.php
path: /
environment: development

I've tried that with both an empty path and something like /foo as the docs do suggest a separate directory. I swapped over to wp bootstrap install and got the following:

Notice: Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 48

Notice: Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 54

Notice: Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 65

Notice: Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 72
Running Bootstrap::install

Notice: Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Commands\BaseCommand.php on line 17
Warning: One or more environment variables failed assertions: wppath is missing.
PHP Notice:  Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 48
PHP Notice:  Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 54
PHP Notice:  Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 65
PHP Notice:  Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Providers\ApplicationParametersProvider.php on line 72
PHP Notice:  Use of undefined constant WPBOOT_BASEPATH - assumed 'WPBOOT_BASEPATH' in D:\dev\wordpress-seed\vendor\eriktorsner\wp-bootstrap\src\Commands\BaseCommand.php on line 17

ethanclevenger91 avatar Jul 17 '16 14:07 ethanclevenger91