PacsOne Login Problem (Pacsone basic version)

Trouble during PacsOne Server installations
Post Reply
julian@nfwest.com
PacsOne Login Problem (Pacsone basic version)

Post by julian@nfwest.com » Tue Nov 16, 2004 4:48 am

Hello,
I seem to have a similar problem to others - trying to log in via the pacsone/pacsone.php page and get the
Not authorized to access this URL: http://localhost/pacsone/login.php
error.

Checked all my files like PHP.INI and HTTPD.CONF, everything seems ok.
I can also log in through the mysql interface directly, using the same username/password.
The /php/session data has files in it, when I opened the most recent one, it has the following line:
loginMessage|s:98:"Could not connect to MySQL database as User: <u></u><p>Please check your username and password.<p>";

If you have any idea what else I can take a look at, please let me know.
Running: Apache 2.0.52
PHP version 5.02
MySql 4.0.22
Also enabled imagemagick extensions, although it does not make any difference.
THANK YOU!
julian@nfwest.com

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Tue Nov 16, 2004 2:59 pm

In the output of the PacsOne test page:

http://{YOUR_SERVER}/pacsone/Hello.php

Did you see the mysql module loaded by PHP? If not, then you need to uncomment the mysql from the PHP.INI file.

The other thing you can try is to enable PHP error logging and display, and log the errors to a file in the PHP.INI file. For example:

display_errors = On
log_errors = On
error_log = C:\php\php_err.log

julian@nfwest.com

PacsOne Login Problem (Pacsone basic version)

Post by julian@nfwest.com » Tue Nov 16, 2004 5:20 pm

Hello, thanks for the reply.
Yes, php_mysql is uncommented. hello.php file states that mysql support is ON.
I enabled error logging, and below is what now appears in the error log, after an unsuccessful login:

[16-Nov-2004 09:17:02] PHP Notice: Undefined index: myName in C:\Program Files\PacsOne\php\Hello.php on line 4
[16-Nov-2004 09:17:15] PHP Notice: Undefined variable: HTTP_POST_VARS in C:\Program Files\PacsOne\php\authenticate.php on line 16
[16-Nov-2004 09:17:15] PHP Notice: Undefined variable: HTTP_POST_VARS in C:\Program Files\PacsOne\php\authenticate.php on line 17
[16-Nov-2004 09:17:15] PHP Notice: Undefined variable: HTTP_POST_VARS in C:\Program Files\PacsOne\php\authenticate.php on line 18
[16-Nov-2004 09:18:11] PHP Notice: Undefined variable: HTTP_POST_VARS in C:\Program Files\PacsOne\php\authenticate.php on line 16
[16-Nov-2004 09:18:11] PHP Notice: Undefined variable: HTTP_POST_VARS in C:\Program Files\PacsOne\php\authenticate.php on line 17
[16-Nov-2004 09:18:11] PHP Notice: Undefined variable: HTTP_POST_VARS in C:\Program Files\PacsOne\php\authenticate.php on line 18

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Tue Nov 16, 2004 9:09 pm

I think you just found where the problem is:

The $HTTP_POST_VARS variable is obsolete in the PHP distribution you have installed, it is replaced by either $_POST or $_REQUEST variables.

This variable has been updated in the PacsOne Server Premium Edition but not yet fixed for the Basic Edition, so for now, you will have to modify the authenticate.php script and replace the obsoleted $HTTP_POST_VARS variable with the new $_POST.

Post Reply