Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Cope with 401 on no text entry to <txp:password_protect ... />
Hello cleverer than me peeps,
This is a bit of an edge case, since who when presented with a login access box types nothing in ‘Username’ or ‘Password’ inputs but just clicks ‘Login’?
Only me probably.
But when I do, the page goes to a 401 and explodes a bit with stuff like:
Tag error: <txp:article /> -> Textpattern Notice: article_tag_illegal_body on line 556
I have ErrorDocument 401 /myfile.html
in .htaccess but this appears to fail as the URL ends up being the one of the page that’s protected, but the protected content is not displayed (good), just the explosion starting with the error above.
Any kind comments on what might be going on here, much appreciated.
Happy Canada Day!
Cheers, -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
Re: Cope with 401 on no text entry to <txp:password_protect ... />
PS: The error also happens if you cancel the login — which isn’t such an edge case, so I guess I need to solve this more :(
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
#3 2010-07-01 18:50:59
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Cope with 401 on no text entry to <txp:password_protect ... />
If you check the page’s tag trace, you might find something like this. Maybe it’s your error_default page?
Offline
Re: Cope with 401 on no text entry to <txp:password_protect ... />
Hi Els,
Thanks for the suggestion — I’ve never really worked out how to turn tag trace — other than putting the site into Testing or Debug mode, which I’ve done. So if that’s all I need to do, then I don’t see anything like the code in your link in the source of the broken page.
My error_default works find for 404, but I don’t know if that’s a definitive test of it?
The fullest copy of the error-looking code from the source is:
<pre>Tag error: <b><txp:article /></b> -> <b> Textpattern Notice: article_tag_illegal_body on line 556</b></pre>
<pre style="padding-left: 2em;" class="backtrace"><code>textpattern/publish.php:556 trigger_error()
textpattern/publish.php:1106 article()
textpattern/publish.php:1028 processTags()
textpattern/publish/taghandlers.php:2625 parse()
textpattern/publish.php:1106 if_individual_article()
textpattern/publish.php:1041 processTags()
textpattern/publish/taghandlers.php:2976 parse()
textpattern/publish.php:1106 if_search()
textpattern/publish.php:1041 processTags()
textpattern/publish/taghandlers.php:3082 parse()</code></pre>
I don’t know if that makes anything any clearer, but thanks anyway if you’re able or not to spot anything else.
Cheers, -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
#5 2010-07-01 20:28:24
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Cope with 401 on no text entry to <txp:password_protect ... />
Hi Alan, that is not the tag trace, you can find it in Debug mode at the bottom of the source code: Tag trace.
Offline
Re: Cope with 401 on no text entry to <txp:password_protect ... />
Hi Els, Thanks — I think it’s cos I was looking for it in another browser where I wasn’t logged in… DOH. Cheers, -Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline