So, the API key wasn't fixing it so I quickly tried moving it to a free host, that fixed the problem but brought a new problem (Yes I have set up the information for the database on a different server). (
http://rsg-donate.webege.com/donate.php)
It looks like it contacting the wrong database
Code:
Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'rsgbans'@'31.170.160.105' (using password: YES) in /home/a7626204/public_html/donate.php on line 6
When the ip for the database is '85.236.96.5'
PHP Code:
//Sourcebans is required as of 2.0.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
define('SB_DB', true); //ONLY SET TRUE IF SOURCEBANS IS ON A DIFFERENT MYSQL SERVER
define('SB_SV_HOST' , '85.236.96.5'); //set MySQL host ONLY NEEDED IF SOURCEBANS IS ON A DIFFERENT MYSQL SERVER
define('SB_SV_USER' , 'rsgbans'); //MySQL username ONLY NEEDED IF SOURCEBANS IS ON A DIFFERENT MYSQL SERVER
define('SB_SV_PASS' , 'XXXXXXX'); //MySQL password ONLY NEEDED IF SOURCEBANS IS ON A DIFFERENT MYSQL SERVER
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
define('SOURCEBANS_DB', 'rsgbans'); // sourcebans database, this is needed.
define('SB_PREFIX', 'sb'); //Sourcebans database prefix. Only change this value if you changed your database prefix when setting up SourceBans.
define('SB_SALT', 'SourceBans'); //dont change this unless you changed your salt in sourcebans (if you dont know what salt is, you didnt change it)
define('SB_ADMINS', 'ServRoot'); //name of admin group in sourcebans which has access to the donor panel
///////////////////////////////////////////////////////////////////////////////////////////
PHP Code:
///////////////////////////
//Donations Database info//
///////////////////////////
define('DB_HOST' , '85.236.96.5'); //set MySQL host
define('DB_USER' , 'rsgbans'); //MySQL username
define('DB_PASS' , 'XXXXXX'); //MySQL password
define('DONATIONS_DB' , 'rsgbans'); //donations database
----------------------------EDIT BELOW-------------------------
When I set the information above to the mySQL database for the new server it seemed to fix it but then i couldn't login to the donation control admin panel and it would give me a ton of errors
New Information that fixed the donate page but broke admin login:
PHP Code:
///////////////////////////
//Donations Database info//
///////////////////////////
define('DB_HOST' , '10.1.1.114'); //set MySQL host
define('DB_USER' , 'a7626204_donate'); //MySQL username
define('DB_PASS' , 'XXXXXX); //MySQL password
define('DONATIONS_DB' , 'a7626204_dondb'); //donations database
----
Errors on admin login after trying to login with the SB root account (I could login before i changed the information to the new servers information)
Code:
Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'rsgbans'@'31.170.160.105' (using password: YES) in /home/a7626204/public_html/donations/admin/index.php on line 9
Warning: mysqli::real_escape_string() [mysqli.real-escape-string]: Couldn't fetch mysqli in /home/a7626204/public_html/donations/admin/index.php on line 14
Warning: mysqli::query() [mysqli.query]: Couldn't fetch mysqli in /home/a7626204/public_html/donations/admin/index.php on line 21
Warning: main() [function.main]: Couldn't fetch mysqli in /home/a7626204/public_html/donations/admin/index.php on line 21
'31.170.160.105' is the IP for the new website not the source bans website.
__________________