PDA

View Full Version : Installtion success but can't login to admin


braveman
03-04-2005, 02:56 AM
I've installed Word Press (Enterprise Version V2.6.0 ) on both loclahost and online host. But all failed.

View screenshot below. It's seem a database syntax error in file login.php in admin's directory:

http://www.freecodevn.com/xpress/file/installer.JPG

And successfull

http://www.freecodevn.com/xpress/file/success.JPG

And error occured: I dont now why


http://www.freecodevn.com/xpress/file/login.JPG

Turn on Error message in PHP to debug:

http://www.freecodevn.com/xpress/file/php.JPG

Error in php code line 31 :)

http://www.freecodevn.com/xpress/file/code.JPG

And here are the tblUsers table after installing successfull :)

http://www.freecodevn.com/xpress/file/phpmyadmin.JPG

In this case i dont have any way to fix this error and still wating from Word-Press developing group to help us. Please note that we've tested it on both Windows and *NIX of newest verions of PHP, MySQL and Apache (IIS too).

Support
03-04-2005, 10:29 AM
Hello,

Ok, this looks strange. Are these errors coming from login.php? Line 31 in login.php can hardly produce an error :)

Let's discuss steps during install procedure, in case there is something wrong with new version (2.6.0) of installer.

braveman
03-05-2005, 03:24 AM
OK! Everybody i found the reason.
When installtion completed. You should login to admin and check, if error found mean file db_conn.php is empty. Just add these codes into it:

<?php
$connection = mysql_connect("$sqlHost","$sqlUsername","$sqlPassword") or die("Can't connect!");
mysql_select_db($sqlDatabaseName);
?>

Then it will works well! and that file should be set to CHMOD 666 (+w) prior to installing procedure.

To trace more error: open file login.php and go to:

---------------------------------------------------------
$result=mysql_query($query);
---------------------------------------------------------

replace by:

----------------------------------------------------------
$result = mysql_query($sql) or die(mysql_error());
----------------------------------------------------------

PHP will give you more information about the error if occured. And in my case the Error message was: "No Database selected!"