Ipstenu / varnish-http-purge

Proxy Cache Purge
Apache License 2.0
46 stars 47 forks source link

fix php notice: undefined variable proxy_ip #77

Closed mathieuhays closed 6 years ago

mathieuhays commented 6 years ago

I'm running the plugin on VVV (nginx).

I had a PHP notice appearing in my logs this afternoon, I think it happened when the cron executed.

[05-Oct-2018 14:35:09 UTC] PHP Notice:  Undefined variable: proxy_ip in /srv/www/www.my-gcsescience.com/public_html/content/plugins/varnish-http-purge/varnish-http-purge.php on line 614
Ipstenu commented 6 years ago

This will be fixed in 4.7.0 (due next week).

See https://github.com/Ipstenu/varnish-http-purge/blob/REL_4.7.0/varnish-http-purge.php#L527 for details and code stuff :)

mathieuhays commented 6 years ago

Understood, Thanks ;-)