It seems the RPC settings are wrong. Both mysql and rpc check are in same IF statement and return same mysql error. Makes sense its slower w real DB info cuz only then it tries to connect to wallet.
Can also debug "getbalance" RPC command further in simplefaucet file. On phone so cannot say exact lines.
Thanks for your answer man.
I also believed to be an RPC error. However the coin I intend to use, uses bitcoind rpc so I thought it wouldn't be problem. On the other hand, I am %100 sure the RPC settings I entered are true.
I wanted to see if the DB connection is the problem. So I removed
case SF_STATUS_MYSQL_CONNECTION_FAILED:
And boom! The error dissappeared. Since in the template file there are 2 separete IFs for both error, as in:
<?php
break;
case SF_STATUS_RPC_CONNECTION_FAILED:
case SF_STATUS_MYSQL_CONNECTION_FAILED:
?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Status</h3>
</div>
<div class="panel-body">
Cannot seem to connect at the moment, please come back later!
</div>
</div>
I thought removing 1 would show me where the problem is. So I tried removing:
case SF_STATUS_RPC_CONNECTION_FAILED:
And I still had the error message. So it really seems like a database connection error despite all the settings are true and despite I created a simple php to call the database and it worked.
I'd assume something doesn't work with my mySQLi version?
Man i hope you will resolve this.
Free altcoin faucet script sounds wonderfull. If it will work, i will probably make one too.
I'll make sure to share it If I come up with a solution indeed.