Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-09-17 04:18:38
- dgat52
- New Member
- Registered: 2006-09-17
- Posts: 9
Cannot login to admin area
I completed the install and deleted the setup folder. The admin page shows the login, but when I put in my username and password I get the ‘page cannot be displayed’ message. The main page to the website displays just fine. Any ideas?
dg
Offline
#2 2006-09-18 00:02:17
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Cannot login to admin area
I get the ‘page cannot be displayed’ message
Is this a browser error message, web server error, Textpattern error, or something else? Can you post a screenshot please?
Alex
Offline
#3 2006-09-18 02:41:58
- dgat52
- New Member
- Registered: 2006-09-17
- Posts: 9
Re: Cannot login to admin area
This is the standard browser (IE) message when it cannot find a page on the internet. The address bar still has the same url in it (sitename.com/textpattern/index.php). If if click on the refresh button it brings back up the admin login page. It is as if it does not know where to go once I login. I am going to do a complete clean reinstall and see what happens.
Offline
#4 2006-09-18 03:26:35
- dgat52
- New Member
- Registered: 2006-09-17
- Posts: 9
Re: Cannot login to admin area
Reinstall did not fix the problem. It does not matter what you put into the username and password, it still cannot find the page.
Offline
#5 2006-09-18 03:34:00
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Cannot login to admin area
This sounds more like a DNS or general connectivity problem than anything Textpattern related.
Can you post a link to the site?
Alex
Offline
#6 2006-09-18 04:03:14
- dgat52
- New Member
- Registered: 2006-09-17
- Posts: 9
Re: Cannot login to admin area
http://www.centralvalleychristiannetwork.com/cvcnblog/textpattern/index.php
I tried on another computer and same thing happens.
thanks
Offline
#7 2006-09-18 04:18:26
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Cannot login to admin area
There’s nothing visibly wrong. Perhaps a different browser would give you a more informative error message (IE’s is basically “something went wrong, we’re not going to tell you what”).
Alex
Offline
#8 2006-09-18 04:24:54
- dgat52
- New Member
- Registered: 2006-09-17
- Posts: 9
Re: Cannot login to admin area
Thanks, I will keep trying.
dg
Offline
Re: Cannot login to admin area
I noticed two things:
- your host is running PHP as CGI ( the headers say “PHP-CGI/0.1b”)
- The TCP-Connection to the Webserver is closed/reset (when submitting the login form with a user and password.)
This indicates that probably the PHP child-process is dying unexpectedly and the Webbroser doesn’t know what to do. No PHP is able to do that usually; it points to either a configuration error on the webserver or PHP part, or a bug in one of the components (which Version of PHP are you running?).
This can usually only be debugged and fixed by your host, as it is not a Textpattern error.
Just a random idea, though: In the file: textpattern/include/txp_auth.php around line 123 delete the line that starts with: sleep(3);
If that helps, it’s defeintely a hosting problem and you should talk with your host.
Offline
#10 2006-09-19 00:12:39
- dgat52
- New Member
- Registered: 2006-09-17
- Posts: 9
Re: Cannot login to admin area
you were right. Deleting that line allowed me to get in. I went to diagnostics and here is the results minus the url info
PHP version: 5.0.4
Register globals: 1
Server Local Time: 2006-09-18 20:07:08
MySQL: 4.1.21-standard
Locale: en_GB.UTF-8
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
PHP Server API: cgi
Server OS: Linux 2.6.9-42.0.2.ELsmp
Pre-flight check:
————————————
Your version of PHP has security related risks. Please turn register_globals off or update to a newer PHP version.
————————————
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php </IfModule>#php_value register_globals 0
dg
Offline
#11 2006-09-19 00:46:26
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Cannot login to admin area
You should talk to your hosting company. Ask them to examine the server logs and see if they can find out why a sleep() call would cause the PHP process to die.
That code has been in place for years without causing problems.
Alex
Offline
#12 2006-09-19 00:55:02
- dgat52
- New Member
- Registered: 2006-09-17
- Posts: 9
Re: Cannot login to admin area
I will do that right away. Is it ok to run the site without that code?
dg
Offline