Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I installed this module today (multisite directory structure). A logged in user trying to add a piece of content was redirected to login. I suspect our Varnish configuration and am not really expecting a fix, but though I should mention it in case others encounter it, or anyone has a suggestion about the cause.
Comments
Comment #1
gregglesSince you're unsure of the steps to reproduce this seems like a better category/status. Are you sure that r4032login is responsible for this weird behavior? How repeatable was the problem?
Comment #2
John_B CreditAttribution: John_B commentedThanks for replying. After removing the module and just making a custom 404 page the problem cleared up. Hard to repeat because another developer is handling hosting, with a single live site on a small VPS (Varnish, Nginx backend) where I am reluctant to set up a virtual host for testing. What is clear is that the module worked on my dev copy of the site. Somehow it seems that on the unresponsive live server user_is_anonymous() in a module can return a false positive even where the core node access system still works correctly.
Comment #3
csc4 CreditAttribution: csc4 commentedI think I have this too - intermittently (I think it's timing, a slow page seems more likely to trigger it), I get 'logged out' - seems to be happening most often to me editing views.
Feels like a timeout issue - but where?
Comment #4
csc4 CreditAttribution: csc4 commentedI think I know what it is - it's clearing caches, when you return from editing views it clears the caches. Can also reproduce this with a mannual cache clear - logs you out... anyone any idea how to fix it?