I'm getting this error though it appears to work:

Notice: Undefined variable: cancel in protected_node_enterpassword() (line 132 of /xxxxx/sites/default/modules/protected_node/protected_node.redirect.inc).

Note that I redacted the full path that was given for purposes here.

Comments

Syd Barrett’s picture

Yes, it works. I'm trying to understand the problem.
At the moment and can just add "display:none"...

phprf’s picture

I don't know if this is a good fix or not, but for what it is worth...on line 132 of protected_node.redirect.inc change:

if ($cancel) {

To:

if (isset($cancel)) {

That fixed my problem. At least, it has for now!

Blessings, phprf

AlexisWilke’s picture

Good point. There is one case when $cancel doesn't get defined. I used !empty() in version 6.x instead just in case the $_GET variable was empty or just 0. I leave the status as active for 7.x to get fixed too.

Thank you.
Alexis Wilke

timefor’s picture

#2 worked for me.

zilverdistel’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.