SpinupWP Provider Not Detected
-
Hi,
I have a number of sites with this plugin and using SpinupWP. All of them say “Provider not detected” in the 3rd party tab of Super Page Cache for Cloudflare.
I have the SpinupWP helper plugin installed and both plugins are the latest versions (although this has been consistently the case across multiple versions)
Thoughts on what I could check for that might be causing this?
Thanks!
Mika
-
Hi,
The plugin checks forfunction_exists( 'spinupwp_purge_site' )andfunction_exists( 'spinupwp_purge_url' )to check if the site is using SpineupWP. These functions are supposed to be added via SpinupWP plugin.Hi,
It sure appears those functions exist. However, there is a 3dr function as well in SpinupWP’s functions.php. Could that possibly be causing a conflict of any kind?Thanks!
Here’s the content of their functions.php
if ( ! function_exists( 'spinupwp_purge_site' ) ) { /** * Purge the entire SpinupWP page cache. * * @return bool */ function spinupwp_purge_site() { return spinupwp()->cache->purge_page_cache(); } } if ( ! function_exists( 'spinupwp_purge_post' ) ) { /** * Purge a single post from the SpinupWP page cache. * * @param \WP_Post $post * @return bool */ function spinupwp_purge_post( $post ) { return spinupwp()->cache->purge_post( $post ); } } if ( ! function_exists( 'spinupwp_purge_url' ) ) { /** * Purge a single URL from the SpinupWP page cache. * * @param string $url * @return bool */ function spinupwp_purge_url( $url ) { return spinupwp()->cache->purge_url( $url ); } }Hi, no the third function should not cause any issues. Moreover, if those function exists then plugin plugin should detect it as all it’s checking that if those functions exists or not.
Odd. I have about 30 sites on SpinupWP (different themes, sets of plugins, etc) that all have this same “provider not detected” issue.
Is there something else I can do or provide to help troubleshoot?
Try adding a code snippet plugin in your site and try adding this code:
add_action('wp_head', function() { if ( function_exists( 'spinupwp_purge_site' ) ) { echo 'spinupwp_purge_site function exists'; } else { echo 'spinupwp_purge_site function doesn\'t exists'; } if ( function_exists( 'spinupwp_purge_url' ) ) { echo 'spinupwp_purge_url function exists'; } else { echo 'spinupwp_purge_url function doesn\'t exists'; } });Then check the front end of your website and let me know what you see.
I added to theme footer.php and it reports they do exist:
spinupwp_purge_site function exists
spinupwp_purge_url function existsThat is so weird. Cause that same check is being used by the plugin. You can check the plugin code. Yes, you are saying that the plugin is showing provider not detected. Super weird.
yes, very odd. I’ll set up a site with nothing but these 2 plugins and see how that works just in case there is a conflict with something else. Probably will take me a little while to get to but I will report back what I find.
No problem. You can check this plugin code which uses exactly those two functions as mentioned above.
Tried with a new install which has default WP theme and just these 2 plugins. Still behaves the same way.
I also removed the SpinupWP helper plugin and added it back. No difference.
Could it possibly have something to do with the order of how the plugin is checking whether that function exists – ex: the CF cache plugin registers first so the spinup functions don’t get detected? Forgive me, I’m not a dev so perhaps that’s a stupid question….
Hmm…. Hard to say that cause all it is doing is checking if the function exists. But I don’t se how an order would create an issue with function exists check. I don’t have access to SpinupWP. But despite it showing the provider not active, the options under it should work properly.
If you would like access to the test site on SpinupWP I am happy to share that with you. I can send you a message through your website contact for to connect.
Just to be clear the features do work just the badge keeps showing provider not detected, right?
I’m not quite sure they are working. If I edit a page or post on the test site, it appears the SpinupWP page cache isn’t cleared. I can use the SpinupWP helper plugin to clear the cache and then it will show the edits, but the setting in CF Super Page Cache being set to clear the cache when something is changed doesn’t seem to be triggering the SpinupWP cache purge.
Hi, can you please FTP to
/wp-content/plugins/wp-cloudflare-page-cache/libs/cache_controller.class.phpline no2911and replace thecan_spinupwp_cache_be_purged()function with this:function can_spinupwp_cache_be_purged() { return (function_exists('spinupwp_purge_site') && function_exists('spinupwp_purge_url')); }Then save the changes and check if the provider is showing or not. Let me know.
The topic ‘SpinupWP Provider Not Detected’ is closed to new replies.