I have the same problem in v6.15 that "erich93063" has in v7.14, as he describes here:

http://drupal.org/node/1649298

if I go to a node and enable a password and then go to that node, I get a Drupal "Access is denied" as opposed to the Password form. I went into permissions and enabled "access protected content" and "view protected content" for anonymous users and that just makes the "Access Denied" message go away. I still do not ever get a password form. I also tried using a browser with all my cookies cleared

evidently there is some basic setting that both erich93063 and I are overlooking, but after examining the documentation and the settings, I'll be damned if I can figure out what it is.

any ideas? TIA

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AlexisWilke’s picture

FileSize
8.34 KB

Looking at the code, it could be that the cache is in the way. You could try to clear the cache and see whether that magically makes it work.

This being I'm attaching a version of the protected_node.module with some error messages so we can trace what's happening. It should print errors on your screen and having that output I should be able to determine where it fails and try to infer what goes wrong on your install.

Note that I had to compress the file as it doesn't let you upload a .module file as is. So obviously you need to decompress first. Make sure you use this only on a test system unless you're still in development on your main system or cannot reproduce the problem on your test system...

Thank you.
Alexis Wilke

AlexisWilke’s picture

FileSize
8.57 KB

Looks like I uploaded the wrong file.

k4v’s picture

For me it works when I only set "access protected content" not "view protected content"

AlexisWilke’s picture

Ah! Yes! Indeed!

The protected node module let you show protected nodes (view protected content) in which case the password is only used if you try to edit the page (in other words, the editing is password protected, and assuming some other users are given access to the edit of page.)

Thank you for reminding us!
Alexis Wilke

halowind’s picture

I tried granting ONLY "access protected content" to anonymous users, logged out, accessed the site as an anonymous user with a different browser, the protected node title and body was visible and when clicked it did not redirect to a password page

I give up

k4v’s picture

cleared cache?

halowind’s picture

cache cleared, no change

I'm done

AlexisWilke’s picture

halowind,

Note that you never answered to #1 & #2.

Best,
Alexis

halowind’s picture

unfortunately I don't have the time or testbed to beta test things

thanks for your work though

GaryGagliardi’s picture

Issue summary: View changes

I am having this problem, not getting the password page, trying to use Protected Node with Quiz nodes (haven't tried any others). Drupal core Drupal core 6.37
Protected node 6.x-1.9.
Watchdog just says "access denied."
Cleared caches.

Could you send me the version with error reporting?
I am also using the Node Access module, could that be causing problems?
I have a custom access denied page. Could that be a problem?

GaryGagliardi’s picture

Since my main site is very complex, I tried protected node on a very simple site, my personal site, with a simple test page. This site doesn't use node access or rules or anything fancy and only has 28 nodes.
Still get "Access Denied Page" instead of password page.
This is on a simple page node.
http://www.garygagliardi.com/?q=content/test-page
is page without password.
Its clone:
http://www.garygagliardi.com/?q=content/clone-test-page
has password. One can be accessed. The other cannot.
No password page appears.

Moved site to Drupal 7. Works now.

Grimreaper’s picture

Status: Active » Closed (outdated)

Hello,

I close this issue because Drupal 6 is no more supported. https://www.drupal.org/drupal-6-eol

If this issue is present in Drupal 7, feel free to re-open it.