Perhaps. I’ve never tried a symlink’d directory. Can PHP read from the directory if you put something in it and list the contents?
on a fresh install of WordPress, no symlinks
Warning: mkdir(): No such file or directory in /var/www/fresh.localpi/htdocs/wp-content/plugins/merge-minify-refresh/merge-minify-refresh.php on line 115
I get that error immediately upon activating and can’t get it to disappear
Also, same result, it doesn’t process when the custom directory is defined.
That appears to be a permission issue. Does PHP have write access? What user:group is PHP running as?
Yes, PHP has write access
running www-data:www-data
Hmm, Does your uploads directory exist?
Yes it does. I can upload files without issue
Unfortunately I cannot. First site is a cluster of servers and second is localhost
ok, are you able to add this line before line 115
var_dump(MMR_CACHE_DIR); exit;
and then check that all but the last directory exist.
string(31) “WP_CONTENT_DIR/uploads/mmrcache”
This is how I setup my config, do the constants for your plugin need to be at the bottom maybe?
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname( __FILE__ ) . '/' );
}
define('MMR_CACHE_DIR', WP_CONTENT_DIR . '/uploads/mmrcache');
define('MMR_CACHE_URL', WP_CONTENT_URL . '/uploads/mmrcache');
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';
Ahh I see. WP_CONTENT_DIR doesn’t exist yet when your defining your path. Please try using an absolute path.