Domain mapping breaks some plugin scripts and css
-
Hi!
Here is the context:
I have a sub domains wp mu install with wp-content in a different location and using the domain mapping plugin. WP and all my plugins are up to date. There is no https involved.The problem:
Some plugins are not working properly (Metaslider, Google Analytics to Dashboard), enqueue JS and css paths are wrong. It seems to always appear when plugins use :define( 'RANDOMNAME', plugin_dir_path( __FILE__ ) );.Url without domain mapping :
http://bcwp.guillaumemolter.me/wp-app-content/plugins/google-analytics-dashboard-for-wp/front/css/item-reports.css?ver=4.8.1.2Url with domain mapping :
http://blackcake-whiteplate.comp/front/css/item-reports.css?ver=4.8.1.2Everything works perfectly without the domain mapping.
I also tried to force define in my wp-config but it doesn’t change anything:
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/wp-app-content' ); define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-app-content' ); define( 'WP_PLUGIN_DIR', dirname( __FILE__ ) . '/wp-app-content/plugins' ); define( 'WP_PLUGIN_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp-app-content/plugins' );Any Suggestions??
The topic ‘Domain mapping breaks some plugin scripts and css’ is closed to new replies.