Support » Plugin: Proxy Cache Purge » 4.6.2 gives me Uncaught exception ‘Error’

  • WordPress 4.9.7
    Multisite with subdirectories

    Error message (via newrelic): Error: Uncaught exception 'Error' with message 'Call to undefined function purge_url()' in /opt/wordpress/wp-content/plugins/varnish-http-purge/varnish-http-purge.php:864

    It looks like this happens only on subsites where Polylang is enabled

    Temp fix, disable Varnish HTTP Purge

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Plugin Review Team Rep

    Looks like PolyLang is calling a deprecated function… purgeURL() was renamed to purge_url() which wasn’t really supposed to be called directly anyway. I’ll back port a fix for that, but that’s why.

    Thank you, I’ll pass this on to the guy at Polylang

    *facepalm* Couldn’t find purgeURL in Polylang, so I search my code. Looks like I have the following to my theme:

    
    } elseif ( 'publish' === $post->post_status ) {
    	// Purge varnish cache
    	if ( class_exists( '\VarnishPurger' ) ) {
    		$varnish_purge = new \VarnishPurger();
    		$varnish_purge->purgeUrl( get_permalink( $post_id ) );
    	}
    }
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘4.6.2 gives me Uncaught exception ‘Error’’ is closed to new replies.