Hi, I am having an issue w/ the ‘Directory Smush’ feature… when I click it there are no directories listed to select from. I know that WP has access to the appropriate directories.
I do not want to use the dashboard plugin. I have added my api key via define in wp-config.
My main thought is that perhaps this issue is associated with the fact that I have installed WP in a subdirectory and moved/renamed wp-content, so that files look like this:
/wp
/resources (wp-content, renamed)
index
wp-config
htaccess
using defines
define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/resources' );
define( 'WP_CONTENT_URL', 'https://' . $_SERVER['HTTP_HOST'] . '/resources' );
define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '/resources/plugins' );
define( 'WP_PLUGIN_URL', 'https://' . $_SERVER['HTTP_HOST'] . '/resources/plugins' );
define( 'PLUGINDIR', dirname(__FILE__) . '/resources/plugins' );
define( 'WPMU_PLUGIN_DIR', dirname(__FILE__) . '/resources/mu-plugins' );
define( 'WPMU_PLUGIN_URL', 'https://' . $_SERVER['HTTP_HOST'] . '/resources/mu-plugins' );
define( 'MUPLUGINDIR', dirname(__FILE__) . '/resources/mu-plugins' );
…so perhaps its just looking for “wp-content” in /wp/ and not seeing any directory at all?
(is it meant to be able to smush outside of wp-content? any directory WP has access to?)
Also, perhaps a thing: the primary site (blog id 1, site id 1) has had the value for SITEURL and HOME in wp_options altered so that no path is used, like this:
https://example.com/
even though WP is installed in /wp directory so that WP internal rewrite rules can make the /wp/ in the address bar *pretty* by removing it automatically… if something is trying to build a path using SITEURL…?
idk, thats what I can think of at the moment… any ideas?
Cheers, Max