Is this error due to the changes in varnish 3.0

The upgrade from 2.1 to 3.0 notes state that purges are now called bans, purge and purge_url have been changed to ban and ban_url. I checked for ban in purge.inc and purge.module with no result for ban or ban_url. Could the error I am receiving be due to the purge module not being updated for varnish 3.0?

Here is the error I get on the page when updating a forum post.

"Warning: Invalid argument supplied for foreach() in purge_logging() (line 167 of /www/www/htdocs/sites/all/modules/purge/purge.inc)."

The error I get in drupal watchdog seems to allude to varnish not accepting the command, varnish is on a remote server.

"1 error has been encountered when purging URLs Array"

Here is the change upgrading from 2.1 to 3.0 page. https://www.varnish-cache.org/docs/3.0/installation/upgrade.html

Comments

moehac’s picture

Have you been able to find a solution to this?

SqyD’s picture

Component: Code » Documentation
Status: Active » Closed (duplicate)

The purge module itself does not need any changes whether you're using Varnish 1.x, 2.x or 3.x. You will however need to change your Varnish configuration to implement the purge request on the Varnish side. This is documented for varnish 3.x here: https://www.varnish-cache.org/docs/3.0/tutorial/purging.html

I see this as a documentation issue and a duplicate of {#1198510]