Community Support for OpenDocMan (Deprecated)

Full Version: Cannot log-in as admin after installation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
donknight1
2004-10-22 17:46:07 PDT
I went through all the installation procedure and setup routines and everything appears to be ok. I've got a database called OpenDocMan established in MySQL and there is a user in the OpenDocMan "user" table called admin with no password. However, when I try to log in as "admin" the initial index page is re-displayed with the following URL <!-- m --><a class="postlink" href="http://www.web.org/OpenDocMan/index.php?redirection=%2FOpenDocMan%2Fout.php%3F">http://www.web.org/OpenDocMan/index.php ... out.php%3F</a><!-- m -->

If I use any other name I will go to the following URL: <!-- m --><a class="postlink" href="http://www.web.org/OpenDocMan/error.php?ec=0">http://www.web.org/OpenDocMan/error.php?ec=0</a><!-- m -->

With the error message "There was an error logging you in. Please try again." ... which makes sense since I haven't set up any additional users yet.

I do not receive any database errors - anyone got a clue as to what's gone wrong?

Thanks for your help...


logart
2004-10-22 18:04:01 PDT
Hello, I just installed version 1.2p1 from scratch (is that what version you are using?) and was able to login as admin fine. Are you on a shared server? Maybe your php session path needs to be changed?

steve


donknight1
2004-10-25 10:46:19 PDT
Yes - I installed version 1.2p1 ... I'm trying to install this on a Yahoo! Webhosted Server...

I'm sorry, I've been away from this stuff for a long time. I am not up to speed on php. How/where do you change the session path? This seems like the most likely canidate for the problem since the database and everything else looks ok and I'm not getting any errors back. Looks like it simply gets lost and can't find the out.php file so it reloads the index.php file again. If I intentionally cause an error (like an unknown user) then appearently it works ok.

Sorry to be stupid about this - but I'm trying to get back up to speed ... Thanks.

donknight1
2004-11-16 14:27:43 PST
Ok - Here's the fix, in case anyone else runs into this problem. And I appoligize in advance to everyone else who thinks I should have known this before I started (but on the other hand, it has to say good things about OpenDocMan that I was able to install it, being as dumb as I am)!

When you create your PHP scripts, you will also need to create the "tmp" subdirectory in your account.

PHP's session functions store your user information in temporary files, which are written to the "tmp" directory. If this directory does not exist, the session information will not be stored.

Enjoy...


aimdavid
2005-10-25 07:00:17 PDT
If you have it figured out then you aren't as dumb as I am. When you refer to the "tmp" subdirectory in "your account", more precisely what do you mean by "your account"? To restate, where is this "tmp" directory located? I am having pretty much the same problem where I cannot log in as admin. Database is created with "user" table and user "admin" exist in the table with no password.


logart
2005-10-28 08:46:25 PDT
I am not sure about the whole /tmp thing, but can you check your web server logs to see if there are any error messages when you try to log in? Also verify your session_path variable is setup properly in your php.ini file.


briank
2006-08-05 18:58:32 PDT
Just in case anybody is interested in the fix for this: In profiles.php, change "HTTP_SERVER_VARS" to "_SERVER". HTTP_SERVER_VARS is deprecated in later versions of PHP.

Doesn't look like this project is being updated any longer. That's too bad, because it's a nice app.

--Brian


jonathanwminer
2006-08-07 11:08:28 PDT
Your suggested change to _SERVER should also be applied to the other .php files as well.