Varnish undefined constant errors on all pressflow pages

Bug #614086 reported by Benjamin Lowenstein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DEPRECATED Pantheon
Fix Released
Undecided
Josh Koenig

Bug Description

Using stock 64-bit 1.1 beta-2 AMI on Amazon, every pressflow page shows three PHP errors:

    * Notice: Use of undefined constant VARNISH_NO_CLEAR - assumed 'VARNISH_NO_CLEAR' in include_once() (line 4 of /var/www/sites/all/modules/varnish/varnish.module).
    * Notice: Use of undefined constant VARNISH_DEFAULT_CLEAR - assumed 'VARNISH_DEFAULT_CLEAR' in include_once() (line 5 of /var/www/sites/all/modules/varnish/varnish.module).
    * Notice: Use of undefined constant VARNISH_SELECTIVE_CLEAR - assumed 'VARNISH_SELECTIVE_CLEAR' in include_once() (line 6 of /var/www/sites/all/modules/varnish/varnish.module).

I looked in varnish.module and indeed, it has:

define(VARNISH_NO_CLEAR, 0);
define(VARNISH_DEFAULT_CLEAR, 1);
define(VARNISH_SELECTIVE_CLEAR, 2); // Requires Expire.module to be enabled.

so I edited the file to be:

define("VARNISH_NO_CLEAR", 0);
define("VARNISH_DEFAULT_CLEAR", 1);
define("VARNISH_SELECTIVE_CLEAR", 2); // Requires Expire.module to be enabled.

And the errors disappeared.

Revision history for this message
Josh Koenig (joshkoenig) wrote :

I will get these changes pushed upstream to the module. It's odd that this didn't show up before in testing. Have you altered your PHP version or error logging in any way?

Changed in pantheon:
assignee: nobody → Josh Koenig (josh-chapterthree)
status: New → Triaged
Revision history for this message
Aaron Levy (aaronlevy) wrote :
Changed in pantheon:
status: Triaged → Fix Released
Revision history for this message
Benjamin Lowenstein (ben-colingo) wrote :

Nope, I didn't do anything AFAIK - I just spun up a large instance from the AWS console

Revision history for this message
Benjamin Lowenstein (ben-colingo) wrote :

also occurs with the 32-bit 1.1 AMI

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.