Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-10 16:28:48

veggiegrrl
Member
Registered: 2006-02-05
Posts: 13

Password protect in 4.05??

Just upgraded to 4.05 and now the password protection on my posts doesn’t work any more.

I get the following error message:

tag_error <txp:password_protect login=“theuser” pass=“thepassword” /> -> Textpattern Notice: http_auth_requires_mod_php on line 555

Is there something I need to do to fix this??

Offline

#2 2007-07-10 21:14:31

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Password protect in 4.05??

Use mod_php instead of CGI/Fast-CGI. I think has more to do with how PHP is set up on the server than with the version of TXP used.

Offline

#3 2007-07-11 02:51:37

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Password protect in 4.05??

Ruud is correct. You just get an error message now when it will not work, where before it would simply fail silently. If the tag worked for you before, then you’ve switched from using mod_php to cgi since then.

Offline

#4 2007-07-11 06:51:02

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Password protect in 4.05??

Actually it is possible to use http-auth without mod_php, though it requires some configuration and is often not the case. However we shouldn’t block it from working right out only because it is likely that it wouldn’t work, as is happening now in the code. I hadn’t caught that check-in.

To undo the change comment out all the lines around 554-557 of textpattern/publish/taghandlers.php Basically the 4-line block that starts with
if (!is_mod_php()) {
Add // in front of those lines to comment them out.

Of course it’s still possible that server-environment has changed, and you won’t be able to use http-auth. But it’s worth a try.

Last edited by Sencer (2007-07-11 06:56:14)

Offline

#5 2007-07-11 11:45:07

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Password protect in 4.05??

Or you can try SVN revision 2479

Offline

#6 2007-07-11 22:52:01

veggiegrrl
Member
Registered: 2006-02-05
Posts: 13

Re: Password protect in 4.05??

Well, most of the answers you provided were over my head, but uploading that revision of taghandlers.php worked!!

Thanks so much for your help.

Offline

#7 2007-08-06 02:53:13

danwoodward
Member
From: Brooklyn NY
Registered: 2006-08-06
Posts: 51
Website

Re: Password protect in 4.05??

I had the same issue and the revision of taghandlers.php worked for me.. Have no idea why but…thanks

Offline

Board footer

Powered by FluxBB