-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wp db size doesn't like if-statements in wp-config.php #76
Comments
I cannot reproduce this behavior. Is it possible to post the entire Also what version are you running ( |
PHP version: 5.6.31
php.ini used: /etc/php56/php.ini
WP-CLI root dir: /usr/local/wp
WP-CLI vendor dir: /usr/local/wp/vendor
WP_CLI phar path:
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 1.4.1 The rest of the wp-config.php that's abnormal are defines like this:
|
My suspicion is that you're loading your Now, why would your I have to assume this is a problem of your environment, not of WP-CLI source code, so I'm closing this for now. But please ping me on the Slack #cli team to discuss and debug further. If we should indeed locate a bug, I'll reopen of course. |
That was my thought, however... It literally only happens when I run If I was loading it twice, it stands to reason that it would error every time, right? |
Can you run the command |
Note there was a hack used to call However you should get the same error running |
Confirmed it happens using |
The first two tests I did make me think this will work. I'm rebuilding one of the exact sites from the field to be double sure :) |
Specifically, this was #57 |
I have the following in my wp-config.php file:
If I have any defines after that section, any time I run
wp db size
I'll get this:However all other commands I've tested work.
If WP_DEBUG is false, there's no error.
The text was updated successfully, but these errors were encountered: