Plugin activation / deactivation causes fatal on Roots Bedrock installs
-
Hello,
I always use Roots Bedrock for WP installs, which means that the WP_CACHE constant is defined in config/application.php rather than in wp-config.php.
For this reason, the WP_CACHE constant is already defined when LS tries to update wp-config.php. This will lead to a fatal when activating / deactivating the plugin or when deactivating page caching owing to the constant being defined again inside wp-config.
I’ve searched the forums and found this post from a couple of years ago. It looks like a resolution to this issue was never reached. I don’t think the proposed solution in that thread would work as intended, but @designyourcode is on the right track.
Could you update the logic so that nothing is written to wp-config if WP_CACHE is defined at runtime, but not declared in wp-config.php (i.e. defined elsewhere, such as in application.php)?
Thanks for your help!
- The topic ‘Plugin activation / deactivation causes fatal on Roots Bedrock installs’ is closed to new replies.