install password problem

14 views
Skip to first unread message

Ansem

unread,
Nov 6, 2011, 5:38:08 AM11/6/11
to ajaximrpg
The script asks me for a install password all of sudden, I haven't
changed anything.
I tried reinstall the whole script, but it keeps asking for an install
password.
How can this happen all of a sudden and how do I get rid of it ?

ajaximrpg

unread,
Nov 6, 2011, 9:00:55 AM11/6/11
to ajaximrpg
The install password is in config.php in clear text. Depending on
your setup, you may need to use ftp to retrieve the file from your
server. Config.php looks like:

http://ajaximrpg.svn.sourceforge.net/viewvc/ajaximrpg/config-sample.php?revision=4&content-type=text%2Fplain

Notice: "define('INSTALL_PASSWORD', 'DISABLED');" in the middle of the
file.

If you used manual installation, you might have set it after you
renamed/copied config-sample.php to config.php.

If you used automatic installation, you should have set it during the
installation process.

If it is DISABLED, you've turned off automatic installation. If it is
set to a value, that value is your password. If it is missing, that
is my programming error; please let me know.

Why is it asking for an install password? Usually, this means that
your database is inaccessible or missing required tables. ajaximrpg
is offering to let you re-select a database because it can't find the
database. Obviously, it should say that so I'm going to file a bug/
feature for ajaximrpg so it will tell you this more clearly in the
future.

If you need more help, please let me know and I'll do my best to help.

----------------
Play: http://www.svexpertise.com/ajaximrpg/server
Code: http://ajaximrpg.sourceforge.net
Tweet: http://www.twitter.com/ajaximrpg
Discuss: http://groups.google.com/group/ajaximrpg
Totally free. Totally easy. Totally open. Play RPGs instantly.

Ansem

unread,
Nov 6, 2011, 10:31:39 AM11/6/11
to ajaximrpg
The weird thing is is that in config the DEFINE_PASSWORD is actually
set as DISABLED
I changed this value to a multitude of others and it doesn't accept
any of them.
Even if I fill that in as the password it still doesn't like it.
How would I need to do it after automatic installation.
Delete all tables and reupload files ? Because I tried that before,
the database was empty and I had no config file, yet it still asked
for a database password on the homepage.
If I then add the config file manually and run install.php after I get
back to the homepage, it again asks me for install password.
The database actually gets filled and the installation process
succeeds, so it's not a privilege or mysql issue.
I just can't find anything else that could cause this, the weirdest
thing still is that it was fine until yesterday.

On Nov 6, 3:00 pm, ajaximrpg <ajaxim...@svexpertise.com> wrote:
> The install password is in config.php in clear text.  Depending on
> your setup, you may need to use ftp to retrieve the file from your
> server.  Config.php looks like:
>
> http://ajaximrpg.svn.sourceforge.net/viewvc/ajaximrpg/config-sample.p...

ajaximrpg

unread,
Nov 6, 2011, 6:26:24 PM11/6/11
to ajaximrpg
One thing to try is an empty password. That is:

define('INSTALL_PASSWORD', '');

My suspicion is that your server is returning a PHP warning or error
during the login process which makes JavaScript unable to understand
the result of the login process so it assumes that the login failed.
I've taken precautions in more recent versions of code to detect this
but those were after ajaximrpg 4.0.

Another thing to try is to search for the following in js/ajax_im.js:

xhConn.connect(pingTo, "POST",
"call=checkinstall&password="+installPassword, function(xh) {
installCheckComplete = true;

And insert an alert like this:

xhConn.connect(pingTo, "POST",
"call=checkinstall&password="+installPassword, function(xh) {
alert(xh.responseText); // ALERT
installCheckComplete = true;

Then, use your browser to go to index.php and copy-and-paste the alert
information here. That'll help me troubleshoot it.

Is your server publicly accessible? Is there any way that I look at
the behavior myself?

I'm sorry that this is so frustrating.

Dan
----------------
Play: http://www.svexpertise.com/ajaximrpg/server
Code: http://ajaximrpg.sourceforge.net
Tweet: http://www.twitter.com/ajaximrpg
Discuss: http://groups.google.com/group/ajaximrpg
Totally free. Totally easy. Totally open. Play RPGs instantly.

Ansem

unread,
Nov 7, 2011, 5:49:22 PM11/7/11
to ajaximrpg
http://venise.co.cc/ is the server.
Happy to give you an FTP account so you can look at what's going on
exactly.
should I provide it in an email ?

ajaximrpg

unread,
Nov 9, 2011, 9:24:53 AM11/9/11
to ajaximrpg
I sent you a private e-mail but apparently you didn't get it.

Please send me a temp ftp account and password and I'll troubleshoot
it for you.

In addition, I'm currently improving the installer for ajaximrpg 5.0
(to be released later this year or early next year) so you'll have
more information to troubleshoot this kind of issue.

On Nov 7, 2:49 pm, Ansem <tihu...@gmail.com> wrote:
> http://venise.co.cc/is the server.
Reply all
Reply to author
Forward
0 new messages