This can be possible but is unlikely. I can not say how/why it is happening without details and/or a site backup as at est case.
I just found myself in this same situation, and I’ve traced the problem to the usage of $wp_filesystem to check if the constants.php file exists or not…
In my case, $wp_filesystem->is_file() always returns false, because we have $wp_filesystem configured using FTP, the credentials are not kept in the system, and no call to $wp_filesystem->connect() has been made before.
As we only want to know if the constants are loaded, why don’t you just include the constants.php file, and return if the constants are not defined?
Something like:
<?php
$di_plugin_constants = WP_PLUGIN_DIR . '/dedicated-transients/constants.php';
include_once $di_plugin_constants;
if (! defined( 'DEDICATED_TRANSIENTS_WPMU_DROPIN' ) ||
! defined( 'DEDICATED_TRANSIENTS_TABLE' ) ||
! defined ('DEDICATED_TRANSIENTS_WPMU_TABLE' ) ) {
return;
}
in the beginning of 0_dedicated_transients.php
@davefx I have made some changes not yet committed. please email me at derrick@derrickhammer.com so you can test them.
This has been implemented.