Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-03-30 17:23:39

joel
Member
Registered: 2004-11-26
Posts: 162

txp:password_protect doesn't work in 4.3.0?

Hi,

I want to use the built in password protection for a perticular section.

This is my code that I put in the top of the protected section’s page-template.

<txp:password_protect login="my-login" pass="my-pass" />

The prompt doesn’t accept my login as if I typed wrong or something. Could this be server-related? Or something odd with my .htaccess?

Thanks!

Last edited by joel (2011-03-30 17:23:51)

Offline

#2 2011-03-30 18:58:04

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

Re: txp:password_protect doesn't work in 4.3.0?

Joel, look here and (a little bit further in that thread) here. Not sure if it’s related to your problem though.

Offline

#3 2011-03-30 19:04:26

joel
Member
Registered: 2004-11-26
Posts: 162

Re: txp:password_protect doesn't work in 4.3.0?

I checked the diagnostics tab and got the following message in red:

Följande PHP-funktioner (som kan vara nödvändiga för att kunna köra Textpattern) är avstängda på din server: proc_close, proc_get_status, proc_nice, proc_terminate, apache_note, apache_setenv, closelog, debugger_off, debugger_on, define_syslog_variables, openlog, syslog, pclose

Could this have anything to do with this?
I might need to have a chat with the hosting company about this?

Offline

#4 2011-03-30 19:11:45

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

Re: txp:password_protect doesn't work in 4.3.0?

Check this FAQ, there might not be a problem at all. And I doubt if it’s related to the password_protect tag not working.

Offline

#5 2011-03-31 05:43:13

joel
Member
Registered: 2004-11-26
Posts: 162

Re: txp:password_protect doesn't work in 4.3.0?

I still havn’t found a solution. Getting kind of desperate here.
Would ign_password_protect do the trick?

Offline

#6 2011-03-31 07:34:49

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

Re: txp:password_protect doesn't work in 4.3.0?

Is this an option for you?

Offline

#7 2011-03-31 07:40:22

joel
Member
Registered: 2004-11-26
Posts: 162

Re: txp:password_protect doesn't work in 4.3.0?

I don’t think that is what I’m looking for.

I’m looking for an easy password protection in the style of txp:password_protect. The project is running out of time and this is the last thing on my list to fix…
I wonder what is failing with that solution? I read something about CGI-mode in your previous posts. How can I find the problem?

I really appreciate the help! :)

Offline

#8 2011-03-31 12:29:40

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: txp:password_protect doesn't work in 4.3.0?

joel wrote:

The project is running out of time

As a temporary work-around, could you use the regular login page for logging in and rvm_privileged to protect the content. I realize it’s not exactly what you are after, but perhaps it provide the same function until you sort the problem out?

Offline

#9 2011-04-03 16:19:09

joel
Member
Registered: 2004-11-26
Posts: 162

Re: txp:password_protect doesn't work in 4.3.0?

I tried the txp:password_protect on some other sites using 4.3.0. These sites are also on another hosting option and the code works fine.
Does this mean that my problem is related to my hosting? Where do I start searching? CGI-mode? All help are appreciated! :)

Last edited by joel (2011-04-03 16:27:55)

Offline

#10 2011-04-03 18:41:58

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

Re: txp:password_protect doesn't work in 4.3.0?

Can you post your diagnostics please? For both hosts?

Last edited by els (2011-04-03 18:46:46)

Offline

#11 2011-04-03 19:16:53

joel
Member
Registered: 2004-11-26
Posts: 162

Re: txp:password_protect doesn't work in 4.3.0?

This is the non working host:

Textpattern-version: 4.3.0 (r3451)
Senast uppdaterad: 2011-02-04 13:55:18/2011-03-17 12:42:43
Dokument-rot: /usr/local/pem/vhosts/XXXXXXX/webspace/httpdocs/XXXXXXX.se
$path_to_site: /usr/local/pem/vhosts/XXXXXXX/webspace/httpdocs/XXXXXXX.se
Textpattern-sökväg: /usr/local/pem/vhosts/XXXXXXX/webspace/httpdocs/XXXXXXX.se/textpattern
Permanentlänk-läge: section_title
Tillfällig mapp: /usr/local/pem/vhosts/XXXXXXX/webspace/httpdocs/XXXXXXX.se/files/tmp
Webbplatsens URL: www.XXXXXXX.se
PHP-version: 5.2.9
GD-bildbibliotek: bundled (2.0.34 compatible); format som stöds: GIF, JPG, PNG.
Server TZ: Europe/Berlin
Serverns klocka: 2011-04-03 21:14:13
Sommartid?: 0
Justera sommartid automatiskt?: 0
Tidszon:  (3600)
MySQL: 5.0.51a-community
Locale: sv_SE
Server: Apache/2.2.11 (Unix) mod_mono/2.4
Server-API för PHP: cgi-fcgi
RFC 2616-headers: 0
Serverns operativsystem: Linux 2.6.18-028stab070.7
Aktiva plugins: rvm_if_this_article-0.1, asy_wondertag-0.5, chh_if_data-0.10, smd_gallery-0.62, zem_contact_reborn-4.0.3.20, zem_contact_lang-4.0.3.6m, pap_contact_cleaner-0.1, arc_youtube-0.2.1m, etz_striptags-0.2, hak_tinymce-1.0, ign_password_protect-0.5b9, fpx_image_import-0.4, smd_lib-0.36, gbp_admin_library-0.4.669, bot_cf_titles-0.3m, bot_privs-0.3.2, bot_write_tab_customize-0.7, esq_adminsplash-1.01
Admin-tema: Symphony 0.1

Förkontroll: 
------------------------
Följande PHP-funktioner (som kan vara nödvändiga för att kunna köra Textpattern) är avstängda på din server: proc_close, proc_get_status, proc_nice, proc_terminate, apache_note, apache_setenv, closelog, debugger_off, debugger_on, define_syslog_variables, openlog, syslog, pclose
------------------------

Innehåll i .htaccess-filen: 
------------------------
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]


</IfModule>

#php_value register_globals 0


------------------------

And the working:

Textpattern-version: 4.3.0 (r3451)
Senast uppdaterad: 2011-02-04 13:55:18/2011-02-04 13:54:47
Dokument-rot: /home/u/XXXXXXXX/www
$path_to_site: /home/u/XXXXXXXX/www
Textpattern-sökväg: /home/u/XXXXXXXX/www/textpattern
Permanentlänk-läge: section_title
open_basedir: /home:/tmp:/usr/local/lib/fcgi-php4:/usr/local/lib/php:/usr/local/apache/htdocs:/usr/local/fonts:/usr/local/ming/fonts
Tillfällig mapp: /home/u/XXXXXXXX/www/textpattern/tmp
Webbplatsens URL: www.XXXXXXXX.se
PHP-version: 4.4.8
Register globals: 1
GD-bildbibliotek: bundled (2.0.28 compatible); format som stöds: GIF, JPG, PNG.
Server TZ: -
Serverns klocka: 2011-04-03 21:16:04
Sommartid?: 0
Justera sommartid automatiskt?: 
Tidszon:  (3600)
MySQL: 5.0.67
Locale: sv_SE
Server: Apache/1.3.37 (Unix) mod_gzip/1.3.26.1a mod_fastcgi/FSDATA-1.1 mod_jk/1.1.0 mod_throttle/3.2.0 Embperl/2.0b8 mod_perl/1.29 PHP/4.4.3 mod_ssl/2.8.28 OpenSSL/0.9.8b
Server-API för PHP: cgi-fcgi
RFC 2616-headers: 
Serverns operativsystem: Linux 2.6.24.2-grsec
Aktiva plugins: asy_wondertag-0.5, chh_if_data-0.10, zem_contact_reborn-4.0.3.20, zem_contact_lang-4.0.3.6m, pap_contact_cleaner-0.1, etz_striptags-0.2, hak_tinymce-1.0, gbp_admin_library-0.4.669
Admin-tema: Symphony 0.1

Innehåll i .htaccess-filen: 
------------------------
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

------------------------

(added bc.. for better display. -Els)

Last edited by els (2011-04-03 21:49:51)

Offline

#12 2011-04-03 19:20:03

joel
Member
Registered: 2004-11-26
Posts: 162

Re: txp:password_protect doesn't work in 4.3.0?

If the CGI-mode is the problem I found a possible solution in this thread.

They suggestion was to add AddHandler application/x-httpd-php .php in my .htaccess-file to turn off CGI-mode. Where in the file do I put this snippet of code?

Offline

Board footer

Powered by FluxBB