• Resolved antanast

    (@antanast)


    Hi everyone.

    When flushing varnish we get the following errors:

    Fatal error: Uncaught Error: Call to undefined function W3TC\set_time_limit() in /xx/xx/xxx/xx/xx/wp-content/plugins/w3-total-cache/Varnish_Flush.php:60 Stack trace: #0

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @antanast

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Have you Specified the correct IP addresses of your varnish instances? and does the VCL’s ACL allow this request?
    Can you please also share to complete stack trace?
    Thanks!

    Thread Starter antanast

    (@antanast)

    Have you Specified the correct IP addresses of your varnish instances? and does the VCL’s ACL allow this request?

    The IP address is correct. Regarding the ACL could you share some details / entry that I should include?

    Thanks a lot!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @antanast

    Thank you for your feedback.
    Can you please edit the /wp-content/plugins/w3-total-cache/Varnish_Flush.php line 60
    and change it from:
    @set_time_limit( $this->_timeout );

    to :

    @\set_time_limit( $this->_timeout );

    Let me know if it works.
    The backslash shouldn’t be needed, since it’s a PHP global function. Maybe your PHP has the function disabled or something else in the PHP configuration is causing that.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error when flushing Varnish’ is closed to new replies.