I have a very weird problem:
Path access is on only to restrict anonymous users from watching one page.
What happens is that when I enable site-wide cache (settings), I get a php (!!) warning of a call to an undefined function drupal_access_denied() ... How weird is that?
1. Obviously, I DO have that function defined, as part of the core, so how come it's undefined?
2. It happens on my main page, on which I didn't put any restrictions...

How come?!

Comments

budda’s picture

This is because when a cached page is loaded, the majority of the Drupal framework is not loaded - and the access denied function is probably in the framework which is not loaded.

I'll admit i have not tested the module in a Drupal cached environment much. I'm quite busy at the moment so if anybody can suggest a patch for this issue i will review it. Otherwise it may be a while until I fix this - if it is still a bug in 4.7.x

budda’s picture

Status: Active » Closed (won't fix)

As 4.6 is old I'm not bothering to keep the modules up to date.

I followed your instructions to test the same situation in 4.7 and the module appears to function fine. Upgrade to Drupal 4.7.x