XF 2.2 Database Error after Disabling Domain Redirection

Matthew Hutchinson

Active member
I've been redirecting traffic from an unused domain for the last several months. My board's URL is pointing to the current domain. I just disabled the redirect from my unused domain via my host's control panel and removed the domain from my host. Now, my board is reporting an unexpected database error:

An unexpected database error occurred. Please try again later.

I've submitted a ticket to my host but am hoping someone might also be able to help.
 
That would be the address of the MySQL server you've set in src/config.php. Presumably it's pointing to the old domain and needs to be updated?
 
It can vary by host and hosting control panel. One quick thing to check is that the updated config line has the correct syntax, since the error changed afterwards. It should look like this, including the surrounding single quotes and trailing semicolon:

PHP:
$config['db']['host'] = 'some-host.com';
 
Top Bottom