• Resolved zevs3000

    (@zevs3000)


    Hi! I`m receiving an ongoing issue with Varnish enabled feature. It was discovered in the error log.

    The reserve proxy section was configured as 127.0.0.1:6083 but it doesn’t work correctly. Can you please advise how to check and fix it?

    Got error 'PHP message: PHP Warning: Undefined array key 1 in /wp-content/plugins/w3-total-cache/Varnish_Flush.php on line 139', referer: https://site.com/contact/
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @zevs3000

    Thank you for reaching out and I am happy to help!

    Let me make some tests to try to replicate this and I’ll get back to you.

    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @zevs3000

    Thank you for your patience.

    I was not able to replicate the issue, so it must be a problem with the varnish configuration.

    Make sure that the purge URL is correct and that the varnish is configured to implement the method with the name purge as this can cause issues if the varnish is not configured.

    The reason for this is that something is “dying” and not providing the body. There are headers but not the body. The function list is trying to take two arrays and only getting one.

    You should make sure to check the varnish error logs. If there are 400 or 500 error in the varnish log than the Purge is not implemented and therefore it may not return a body only a status code and headers.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning: Undefined array key 1 in /Varnish_Flush.php on line 139’ is closed to new replies.