Author Topic: Issue with logging in  (Read 8404 times)

0 Members and 1 Guest are viewing this topic.

Offline Dan1113

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Issue with logging in
« on: April 05, 2003, 04:25:02 AM »
http://www.tailfeathersnetwork.com/gallery/index.php

If you enter an incorrect username and password, then you just get a blank white page.

To check it out, just enter anything as a username and password and then try to login.

Any ideas?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Issue with logging in
« Reply #1 on: April 05, 2003, 04:28:23 AM »
did u do anything with login.php file?
if u can check php error log, does it says anything there?
give us some more info of what did u do, and about your host system.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Dan1113

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Issue with logging in
« Reply #2 on: April 05, 2003, 04:34:49 AM »
I don't have access to the php error log right now. :(

Here's my login.php (just the main content of it):

Code: [Select]
$main_template = 0;

$nozip = 1;
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');

$error = 0;
if ($user_info['user_level'] != GUEST || empty($HTTP_POST_VARS['user_name']) || empty($HTTP_POST_VARS['user_password'])) {
  if (!ereg("index.php", $url) && !ereg("login.php", $url) && !ereg("register.php", $url) && !ereg("member.php", $url)) {
    header("Location: ".$site_sess->url($url, "&"));
  }
  else {
    header("Location: ".$site_sess->url(ROOT_PATH."index.php", "&"));
  }
}
else {
  $user_name = trim($HTTP_POST_VARS['user_name']);
  $user_password = trim($HTTP_POST_VARS['user_password']);
  $auto_login = (isset($HTTP_POST_VARS['auto_login']) && $HTTP_POST_VARS['auto_login'] == 1) ? 1 : 0;

  if ($site_sess->login($user_name, $user_password, $auto_login)) {
    if (!ereg("index.php", $url) && !ereg("login.php", $url) && !ereg("register.php", $url) && !ereg("member.php", $url)) {
      header("Location: ".$site_sess->url($url, "&"));
    }
    else {
      header("Location: ".$site_sess->url(ROOT_PATH."index.php", "&"));
    }
  }
  else {
    $error = $lang['invalid_login'];
  }
}
if ($error) {
  $main_template = "error";
  include(ROOT_PATH.'includes/page_header.php');
  show_error_page($error);
}


I didn't do anything that might have caused this, as far as I know.

What host system info should I post?

Thanks!

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: Issue with logging in
« Reply #3 on: October 07, 2005, 10:38:38 AM »
i have the same problem :

"If you enter an incorrect username and password, then you just get a blank white page."

my login.php is not changed

error logs :
i get these two errors :
Code: [Select]
[Fri Oct 7 01:36:34 2005] [error] [client 82.93.156.116] File does not exist: /home/schoolpl/public_html/\xc2\xa0
[Fri Oct 7 01:36:29 2005] [error] [client 82.93.156.116] File does not exist: /home/schoolpl/public_html/{template_url}/images/spacer.gif

however the spacer.gif file is in that directory.
what the first error means i don't know

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: Issue with logging in
« Reply #4 on: April 13, 2006, 02:04:35 PM »
Quote
http://www.tailfeathersnetwork.com/gallery/index.php

If you enter an incorrect username and password, then you just get a blank white page.

To check it out, just enter anything as a username and password and then try to login.

Any ideas?

i can see on your site you fixed the problem.
How did you do it ?

Thx

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: Issue with logging in
« Reply #6 on: April 13, 2006, 02:52:09 PM »
tried it but it doesn't help.... :?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Issue with logging in
« Reply #7 on: April 13, 2006, 02:56:29 PM »
then you have different problem.
did you modify login.php? if so replace with a fresh one. also, tru replace sessions.php with a fresh one
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: Issue with logging in
« Reply #8 on: April 13, 2006, 03:28:02 PM »
fresh sessions.php and login.php doesn't solve it.

Quote
http://www.4homepages.de/forum/index.php?topic=12530.0
:
 My os is linux, not windows.