Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
txp:password_protect not working
Hello,
I’m protecting a page with this tag, but when I compile the two fields, I get a page refresh and the login/pass dialog again, and again, and again…
4.4.1 here.
Thanks for any help
Offline
Re: txp:password_protect not working
Hi Manaus
Can you post the code (replacing the login/pass) here? Also, are you sure your browser can accept cookies (I’m not sure if the tag makes use of them)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: txp:password_protect not working
Sure here it is:
<txp:password_protect login="thelogin" pass="thepass" />
<div class="download">
<txp:file_download_link id="219" class="filedownload"><txp:image id="568" /></txp:file_download_link>
<div class="pdfdetails">
<strong>Download</strong>
[...]
Thanks!
Offline
Re: txp:password_protect not working
do you have the tag is a page template or an article? I’ve use the tag a number of times without any problems in articles.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: txp:password_protect not working
Yes it’s an article.
Offline
Re: txp:password_protect not working
Did you try?
==<txp:password_protect login="thelogin" pass="thepass" />==
<div class="download">
<txp:file_download_link id="219" class="filedownload"><txp:image id="568" /></txp:file_download_link>
<div class="pdfdetails">
<strong>Download</strong>
[...]
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: txp:password_protect not working
Thanks, just tried but looks like it’s not changing behaviour…
“Website returns: Private”
Offline
Re: txp:password_protect not working
Another try… I guess you know that p/l is case sensitive. Did you try to change those?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#9 2015-02-17 21:56:15
- mkb
- New Member
- Registered: 2015-02-17
- Posts: 2
Re: txp:password_protect not working
Hi Manaus,
did you find a solution for your problem?
I am facing the same problem since I updated on version 4.5.7. – it keeps telling me that I am using either a wrong username or password.
I protected a section:
<txp:if_section name=“archiv”>
<txp:output_form form=“passwort” />
</txp:if_section>
and the form simply looks like that:
<txp:password_protect login=“admin” pass=”*****” />
My diagnostics tell me, that some PHP-functions are deactivated:
pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Might that be the problems cause?
Very wired!
Thank you in advance!!
mkb
Offline
Re: txp:password_protect not working
I’ve removed the password in the code you posted.
Those deactivated PHP functions are not causing this problem.
Offline
Re: txp:password_protect not working
You have fancy quotes in your code. Try plain ones instead. Find this:
<txp:if_section name=“archiv”>
<txp:output_form form=“passwort” />
</txp:if_section>
…and replace with:
<txp:if_section name="archiv">
<txp:output_form form="passwort" />
</txp:if_section>
Find this:
<txp:password_protect login=“admin” pass=”*****” />
…and switch it with this:
<txp:password_protect login="admin" pass="*****" />
When I try your code and substitute the default section instead of archiv, it throws this error:
Tag error: <txp:if_section name=“default”> -> Textpattern Warning: Attribute values must be quoted. while parsing form None on page default
Couple more things to check:
- does your site throw a similar error when it’s in Testing mode?
- is your
passwort
form a miscellaneous form?
Offline
#12 2015-02-19 20:45:35
- mkb
- New Member
- Registered: 2015-02-17
- Posts: 2
Re: txp:password_protect not working
When using the testing mode it shows (hope my translation is right):
Tag error: <txp:output_form form=“passwort” /> -> Textpattern Notice: form_circular_reference: passwort while parsing form passwort on page ***_Archiv
And when using the debug mode it shows:
Tag error: <txp:output_form form=“passwort” /> -> Textpattern Notice: form_circular_reference: passwort while parsing form passwort on page ***_Archiv
textpattern/lib/txplib_misc.php:1969 trigger_error()
textpattern/publish/taghandlers.php:305 parse_form()
textpattern/lib/txplib_publish.php:426 output_form()
textpattern/lib/txplib_publish.php:326 processTags()
textpattern/publish/taghandlers.php:3789 parse()
textpattern/lib/txplib_publish.php:426 if_section()
textpattern/lib/txplib_publish.php:339 processTags()
textpattern/lib/txplib_misc.php:2321 parse()
textpattern/publish/taghandlers.php:768 txp_die()
textpattern/lib/txplib_publish.php:426 password_protect()
Yes, my passwort-form is a miscellaneous form.
Thank you so far!
mkb
Offline