Hello. I recently moved an Invision v4.4.10 site to a new server. I rsync'ed the files over, along with a database dump. I loaded the database on the new server and placed the files in the proper directory. The file path is identical on both servers and the database login info is correct. Whwn I try to view the site though, I get the screen below.
No errors are logged anywhere I can find, when I try to view the front end of the site. If I try to view the admin area, I get the same error page, but an error is generated:
[14-Jan-2021 20:14:51 UTC] PHP Fatal error: Uncaught IPS\Db\Exception: No such file or directory in /home/thebores/public_html/system/Db/Db.php:262
Stack trace:
#0 /home/thebores/public_html/system/Db/Db.php(349): IPS\_Db->_establishConnection(false)
#1 /home/thebores/public_html/system/Db/Db.php(480): IPS\_Db->checkConnection(false)
#2 /home/thebores/public_html/system/Db/Db.php(968): IPS\_Db->preparedQuery('REPLACE INTO `c...', Array)
#3 /home/thebores/public_html/system/Session/Admin.php(123): IPS\_Db->replace('core_sys_cp_ses...', Array)
#4 [internal function]: IPS\Session\_Admin->write('v35ujfdism18n54...', '')
#5 [internal function]: session_write_close()
#6 {main}
thrown in /home/thebores/public_html/system/Db/Db.php on line 262
Line 262 of the Db.php file is this:
/* Store a log entry so we can track */
$this->log( "Connected to the " . $logDatabase, ( $read and $this->connectionDetails['readDatabase'] ) ? 'read' : 'write' );
/* If the connection failed, throw an exception */
if( $error )
{
Line 262 >>> throw new \IPS\Db\Exception( $error, $errno );
}
I added the 'Line 262 >>>' part. Anyway, it seems like it can't connect to the database, but everything looks correct in the settings.
I installed instance of Invision v4.4.2 that I own on another account on the same server and it runs fine, so the server is properly set up for the software.
I ran the compatability test script on the site having problems and got the following:
Host: localhost User: *********** Database: *************
$mysql = new mysqli( $INFO['sql_host'], $INFO['sql_user'], $INFO['sql_pass'], $INFO['sql_database'], isset( $INFO['sql_port'] ) ? intval( $INFO['sql_port'] ) : NULL, isset( $INFO['sql_socket'] ) ? $INFO['sql_socket'] : NULL ); $installOnly = FALSE; ?>
Notice: Undefined variable: mysql in /home/thebores/public_html/iPSTesT.php on line 308
Notice: Trying to get property 'server_info' of non-object in /home/thebores/public_html/iPSTesT.php on line 308
Notice: Undefined variable: mysql in /home/thebores/public_html/iPSTesT.php on line 310
I modified the script to print some of the variables from the config_global.php file, to make sure it was reading and parsing it correctly. The variables were correct.
I am stumped. If anyone has any ideas what could be causing this trouble, I would really appreciate some help. Thanks.