Bug in Password Protect: apostrophe in error message = page doesn't work

Just a quick report of a bug I just ran into. I’m using the Password Protect add-on to lock down a chunk of content on my website to just my testers.

The site published without a problem, but when I went to the page that had the protected content, it fell over. My browser was reporting an unknown qualifier ‘s’ in the php for that page. Couldn’t see anything similar reported on the forum.

When I downloaded the file in question and checked the line number, it was the one that included the message text for the Password Section’s Error Message.

My original message was:

“That’s not it. Contact Pete for help.”

Given that that line had a quote mark at either end, I figured that the apostrophe in “that’s” was probably ending the line early. So I changed it to:

“Nope. Contact Pete for help.”

Republished, and it worked fine.

So nothing high-priority for me, but something to add to your list!

(in case it matters: Elements 1.6.3, Password Protect v1(5), Tahoe 26.2)

1 Like

Hi @PeteM, Thanks for the detailed bug report! I’ve added a ticket for this and will take a look ASAP :slight_smile: