Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-22 15:07:03

ecklesroad
Plugin Author
From: Bemidji, MN
Registered: 2008-02-22
Posts: 119
Website

Password Protected pages all of a sudden not working

I have several pages on a site i maintain that have password protected articles. I set up the majority of the site a year ago and left the content to be maintained by the sites owner. He emailed me Friday and said that the password protected pages are not accessible. I just confirmed this.

at the top of the protected articles I have <txp:password_protect login="username" pass="password" />, the username and password is different for each of the protected pages. right now if I try and go to one of the password protected pages I get sent to the 401 page.

I just upgraded the site from 4.06 to 4.08, but nothing changed. I’m not sure what might have happened to make the password protected articles to stop allowing access.

Can anyone assist?

Offline

#2 2009-06-22 15:44:22

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Password Protected pages all of a sudden not working

can you give us a tag trace?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Online

#3 2009-06-22 15:54:45

ecklesroad
Plugin Author
From: Bemidji, MN
Registered: 2008-02-22
Posts: 119
Website

Re: Password Protected pages all of a sudden not working

I had to pull off the password protect tag to get at the source, so I’m not sure if this is helpful.

<!— Runtime: 0.0164 —>
<!— Query time: 0.004743 —>
<!— Queries: 21 —>
<!— Memory: 3596Kb, <txp:comments_help /> —>
<!— txp tag trace:
[SQL (0.00142478942871): select name, data from txp_lang where lang=‘en-us’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.000236034393311): select name, code, version from txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0.000130891799927): select nonce, name, RealName, email, privs from txp_users where name = ‘bsc’]
[SQL (0.0001540184021): select ID, Section from textpattern where ID = 9 and Section = ‘vocalmotive’ and Status >= 4 limit 1]
[SQL (0.000118017196655): select page, css from txp_section where name = ‘Vocalmotive’ limit 1]
[SQL (0.000231027603149): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where ID=9 and Status in (4,5)]
[article 9]
[SQL (0.00034499168396): select ID, Title, url_title, unix_timestamp(Posted) as uposted from textpattern where Posted > ’2008-10-17 13:40:48’ and Section = ‘Vocalmotive’ and Status=4 and Posted < now() and (now() <= Expires or Expires = ’0000-00-00 00:00:00’) order by Posted asc limit 1]
[SQL (0.00032114982605): select ID, Title, url_title, unix_timestamp(Posted) as uposted from textpattern where Posted < ’2008-10-17 13:40:48’ and Section = ‘Vocalmotive’ and Status=4 and Posted < now() and (now() <= Expires or Expires = ’0000-00-00 00:00:00’) order by Posted desc limit 1]
[SQL (0.000115871429443): select user_html from txp_page where name=‘default’]
[Page: default]
<txp:output_form form=“header” /> [SQL (0.0001220703125): select Form from txp_form where name=‘header’] [Form: header] <txp:site_name />
<txp:output_form form=“awm” /> [SQL (9.29832458496E-5): select Form from txp_form where name=‘awm’] [Form: awm]
<txp:output_form form=“nav” /> [SQL (9.20295715332E-5): select Form from txp_form where name=‘nav’] [Form: nav]
<txp:if_section name=“default,Home”> [<txp:if_section name=“default,Home”>: false] <txp:section title=“1” /> [SQL (9.58442687988E-5): select title from txp_section where name=‘Vocalmotive’]
</txp:if_section>
<txp:article pgonly=“0” sort=“Posted asc” /> [SQL (9.29832458496E-5): select Form from txp_form where name=‘default’] [Form: default] <txp:if_section name=“default,Home”> [<txp:if_section name=“default,Home”>: false] <txp:title /> </txp:if_section> <txp:body /> <txp:file_download_list break=“li” category=“Vocalmotive-Minutes” form=“download_list” wraptag=“ul” sort=“id asc” /> [SQL (0.000284910202026): select * from txp_file where 1=1 and category IN (‘Vocalmotive-Minutes’) and status = ‘4’ order by id asc limit 0, 10] [SQL (0.000102043151855): select Form from txp_form where name=‘download_list’] [Form: download_list] <txp:file_download_link> <txp:file_download_description /> </txp:file_download_link> [Form: download_list] <txp:file_download_link> <txp:file_download_description /> </txp:file_download_link> [Form: download_list] <txp:file_download_link> <txp:file_download_description /> </txp:file_download_link> [Form: download_list] <txp:file_download_link> <txp:file_download_description /> </txp:file_download_link> [Form: download_list] <txp:file_download_link> <txp:file_download_description /> </txp:file_download_link> [Form: download_list] <txp:file_download_link> <txp:file_download_description /> </txp:file_download_link> [Form: download_list] <txp:file_download_link> <txp:file_download_description /> </txp:file_download_link> [Form: download_list] <txp:file_download_link> <txp:file_download_description /> </txp:file_download_link> [Form: download_list] <txp:file_download_link> <txp:file_download_description /> </txp:file_download_link> [Form: download_list] <txp:file_download_link> <txp:file_download_description /> </txp:file_download_link> <txp:comments_invite /> [SQL (0.000102996826172): select Form from txp_form where name=‘comments_display’] [Form: comments_display] <txp:if_comments> [<txp:if_comments>: false] <txp:text item=“comment” /> </txp:if_comments> <txp:comments /> <txp:if_comments_preview> [<txp:if_comments_preview>: false] </txp:if_comments_preview> <txp:if_comments_allowed> [<txp:if_comments_allowed>: true] <txp:comments_form isize=“25” msgcols=“45” msgrows=“15” /> [SQL (7.89165496826E-5): select ip from txp_discuss_ipban where `ip` = ’209.191.220.141’ limit 1] [SQL (9.01222229004E-5): select Form from txp_form where `name` = ‘comment_form’ limit 1] <txp:comments_error wraptag=“ul” break=“li” /> <txp:text item=“comment_name” /> <txp:text item=“comment_email” /> <txp:text item=“comment_web” /> <txp:text item=“comment_message” /> <txp:comments_help /> </txp:if_comments_allowed>
<txp:output_form form=“footer” /> [SQL (9.10758972168E-5): select Form from txp_form where name=‘footer’] [Form: footer]
[ ~~~ secondpass ~~~ ] —>

Offline

#4 2009-06-22 16:31:34

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Password Protected pages all of a sudden not working

ecklesroad wrote:

I had to pull off the password protect tag to get at the source, so I’m not sure if this is helpful.

Yep. I cannot see anything wrong with the way the rest of the tags are parsed. 4.0.8 is more strict regarding well formed tags. Are your password protect tags OK?. An empty space where there shouldn’t be one for example would cause them to malfunction.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Online

#5 2009-06-22 16:45:56

ecklesroad
Plugin Author
From: Bemidji, MN
Registered: 2008-02-22
Posts: 119
Website

Re: Password Protected pages all of a sudden not working

Could this have anything to do with our server running PHP5 as CGI? We did this about a month ago to fix some ownership issues.

i ask because I just found this in a search that kinda sounds like the problem i’m having.

Offline

#6 2009-06-22 18:36:47

ecklesroad
Plugin Author
From: Bemidji, MN
Registered: 2008-02-22
Posts: 119
Website

Re: Password Protected pages all of a sudden not working

It kind of sounds like I need a workaround for the http authentication from textpattern’s Password Protected pages passing on a server running Apache suEXEC. I’ve been looking all morning and come up empty.

Offline

#7 2009-06-22 22:11:38

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Password Protected pages all of a sudden not working

ecklesroad wrote:

Could this have anything to do with our server running PHP5 as CGI?

Probably. I’ve had the same problem.

Offline

#8 2009-06-23 12:47:23

ecklesroad
Plugin Author
From: Bemidji, MN
Registered: 2008-02-22
Posts: 119
Website

Re: Password Protected pages all of a sudden not working

DO you know if there is a .htaccess work around for this?

Offline

#9 2009-06-23 16:32:39

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Password Protected pages all of a sudden not working

Don’t know if this would work. It’s at least worth a try.

Offline

Board footer

Powered by FluxBB