I could not login to admin page after installation.

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

caiy
Posts: 12
Joined: Mon Nov 30, 2009 11:24 pm

Re: I could not login to admin page after installation.

Post by caiy »

You mean the zip from I downloaded from phpMyFAQ web site?
What is your email address? Sorry I am very new here. Thanks.

caiy
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: I could not login to admin page after installation.

Post by Thorsten »

Hi,

thorsten AT phpmyfaq DOT de

Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
caiy
Posts: 12
Joined: Mon Nov 30, 2009 11:24 pm

Re: I could not login to admin page after installation.

Post by caiy »

Hi,

Just find out that you have phpMyFAQ2.5.5 available now. I downloaded and performed a fresh install. Installation was OK with no error, but I still could not login on admin page. Same old story.
Database tables were created, but the admin user is not populated in any of the user table. The only two tables that have data after fresh install are: faqconfig and faqstopwords. Looks like the installer had failed to save the admin information into the database.
Try to have system reset the admin password, PMA told me that "Username and e-mail address not found".
Play with register on the main page, registration works find. I got "Your registration was successful" message. Checking the database, faqsession, faquser, faquserdata and faquserlogin were populated, with faquser table session_id and ip value equals null and account_status="blocked". Email did not get to send to the user to tell user the password.
Then I request system to reset the user password. The operation was successful. I did receive email which indicated the resetted password. I used this password to login as regular user, I got "User or password not valid..." error, which was exactly what I saw at admin login. Looks like I am in circles now. The faquser table had the session_id, ip address populated after password reset, however the account_status was still "blocked".
I am still at a dead end. :(

Thanks.

caiy
caiy
Posts: 12
Joined: Mon Nov 30, 2009 11:24 pm

Re: I could not login to admin page after installation.

Post by caiy »

I read through the installer.php file, and realized that I should see a questionaire if my installation was a successful one. I actually never saw that during my multiple installations. All I saw was "||||||" lines on the browser and the text on the bottom left conner of the browser said "Done". I suspect that the installation script quit somewhere after config and stopwords got populated, but before the admin information being added to the database (between line 734 - line767).
By the way, I am not a php developer. First time to read php code. Thanks.
caiy
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: I could not login to admin page after installation.

Post by Thorsten »

Hi,

it seems, your installations stops during populating the tables.

We can try the following:

Open the file install/installer.php in the 2.5.5 package and remove line 731:

Code: Select all

    require_once 'stopwords.sql.php';    // INSERTs for stopwords
Then try a fresh install.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
caiy
Posts: 12
Joined: Mon Nov 30, 2009 11:24 pm

Re: I could not login to admin page after installation.

Post by caiy »

Hi, Thorsten,

Yes, it worked.
THANK YOU VERY MUCH.

caiy
Post Reply