tillkruss / Nginx-FastCGI-Cache

A WordPress plugin that purges Nginx cache zones.
48 stars 25 forks source link

Undefined variable $item #25

Closed victorlap closed 2 months ago

victorlap commented 2 months ago

Hi there, with the new release of the plugin (1.0.6) we're running into a problem where we see the following error messages:

Trying to access array offset on value of type null in /var/www/html/web/app/plugins/nginx-cache/nginx-cache.php on line 211
Undefined variable $item in /var/www/html/web/app/plugins/nginx-cache/nginx-cache.php on line 211

I think this is due to bad placement of the code in nginx-cache.php where $item is not yet available.