WP Super Cache breaks Leaflet Maps Marker plugin
-
Hi,
I am the developer of the mapping plugin “Leaflet Maps Marker plugin” (mapsmarker.com) and users have reported an incompatibility with your plugin.
Here is the issue: when WP Super Cache is not configured properly, the following message is output in the console:
se1.php in wp-content/advanced-cache.php must be fixed! –>)
Additionally, the following text is added to the end of each file:
<!– WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! –>This is a problem for me, as my layer maps produce a jsonp-output and your comments is breaking its validity (and my layer maps as a consequence). Here is an example output:
jsonp({“type”:”FeatureCollection”, “features”:[ ]});<!– WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! –>
Can this comment only be added if the plugin is active? I would suggest changing \advanced-cache.php from
function wpcache_broken_message() { if ( false == strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-admin' ) ) echo "<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->"; }
to
function wpcache_broken_message() { include_once( ABSPATH . 'wp-admin' . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'plugin.php' ); if (is_plugin_active('wp-super-cache/wp-cache.php') ) { if ( false == strpos( $_SERVER[ 'REQUEST_URI' ], 'wp-admin' ) ) { echo "<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->"; } } }
It would really be great if you could help me on this!
best & thx,Robert
- The topic ‘WP Super Cache breaks Leaflet Maps Marker plugin’ is closed to new replies.