Closed ssnepenthe closed 2 years ago
So now using the native wpcli command to add the constants should avoid to duplicate it. @tomjn what do you think?
ok so 15 days ago that template got updated to add WP_DEBUG
by default, thanks for tracking down the source of the issue!
the PR for the custom-site-template
has been merged, one will be needed for custom-site-template-develop
though
looks like this has been solved, both PRs got merged, closing out
If you've encountered this you can fix it by removing the duplicate in a text editor, new sites should not have this issue
Are you using the latest stable or develop branch version of VVV?
Yes (stable)
Is it a new VVV or an existing VVV that used to work?
New fresh install
Whats the problem?
This issue goes along with https://github.com/Varying-Vagrant-Vagrants/custom-site-template/pull/56.
In a fresh provision, WP_DEBUG is defined twice.
The first comes from the default wp-cli config template: https://github.com/wp-cli/config-command/blob/ebaa455213d2e9d72880fab46a389507110fd250/templates/wp-config.mustache#L87)
The second comes the use of the
extra-php
option to thewp core config
command: https://github.com/Varying-Vagrant-Vagrants/custom-site-template/blob/f862e5bbd1c423aa3e8dea0f6ff074394dfb6c8c/provision/vvv-init.sh#L156-L159Later if WP_DEBUG is set via sites.{site}.custom.wpconfig_constants (https://github.com/Varying-Vagrant-Vagrants/custom-site-template/blob/f862e5bbd1c423aa3e8dea0f6ff074394dfb6c8c/provision/vvv-init.sh#L121-L135), wp-cli is only able to modify the second instance.
How do we reproduce it?
Clone VVV and run vagrant up.
Once complete, search for WP_DEBUG within
www/wordpress-one/public_html/wp-config.php
.VVV Status screen
Which Operating System are you using?
Microsoft Windows
Which provider are you using?
VirtualBox