Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
SJ77 Posted June 12, 2016 Posted June 12, 2016 Not sure what are the steps are. I thought I just needed to transfer webfiles, DB and update the config file but after doing all of those things I get errors in new location. Fatal error: Call to undefined function IPS\mb_internal_encoding() in /home/myroot/public_html/mysite/forum/init.php on line 124 What did I miss?
Colonel_mortis Posted June 12, 2016 Posted June 12, 2016 Your new server is missing the mbstring PHP extension, which is required for IPS4 to run. You should be able to install it using your package manager with php-mbstring. If it doesn't show up, search for mbstring installation guides for your specific OS/Distro.
SJ77 Posted June 12, 2016 Author Posted June 12, 2016 thanks Colonel I have it setup as in the screen shot below. still having issues. Is this not right?
SJ77 Posted June 13, 2016 Author Posted June 13, 2016 and now there is this Fatal error: Class 'mysqli' not found in /home/myroot/public_html/mysite/forum/system/Db/Db.php on line 26 any ideas?
Management Lindy Posted June 13, 2016 Management Posted June 13, 2016 47 minutes ago, superj707 said: and now there is this Fatal error: Class 'mysqli' not found in /home/myroot/public_html/mysite/forum/system/Db/Db.php on line 26 any ideas? https://www.invisionpower.com/buy/ Seriously though, you're missing the mysqli extension. If you're missing that, you're likely missing others. Download
SJ77 Posted June 13, 2016 Author Posted June 13, 2016 ha thanks Lindy. Looks like I am good for these requirements.
SJ77 Posted June 13, 2016 Author Posted June 13, 2016 Fatal error: Undefined constant 'IPS\LOG_FALLBACK_DIR' in /home/myroot/public_html/mysite/forum/system/Log/Log.php on line 126Fatal error: Uncaught exception 'ErrorException' with message 'mysqli::prepare(): Couldn't fetch IPS\Db' in /home/ myroot /public_html/ mysite /forum/system/Db/Db.php:385 Stack trace: #0 [internal function]: IPS\IPS::errorHandler(2, 'mysqli::prepare...', '/home/ myroot /publi...', 385, Array) #1 /home/ myroot /public_html/ mysite /forum/system/Db/Db.php(385): mysqli->prepare('/*IPS\\Session\\_...') #2 /home/ myroot /public_html/ mysite /forum/system/Db/Db.php(688): IPS\_Db->preparedQuery('REPLACE INTO `c...', Array) #3 /home/ myroot /public_html/ mysite /forum/system/Session/Front.php(300): IPS\_Db->replace('core_sessions', Array, true) #4 [internal function]: IPS\Session\_Front->write('ec5e3ca5ba0a7af...', '') #5 {main} thrown in /home/myroot/public_html/mysite/forum/system/Db/Db.php on line 385
j4ss Posted June 13, 2016 Posted June 13, 2016 Hello, you are missing the "MYSQLi" extension http://php.net/mysqli
SJ77 Posted June 13, 2016 Author Posted June 13, 2016 8 minutes ago, j4ss said: Hello, you are missing the "MYSQLi" extension http://php.net/mysqli The check lindy gave me seems to indicate that I do have it. *shrug*
SaltyBart Posted June 13, 2016 Posted June 13, 2016 46 minutes ago, superj707 said: The check lindy gave me seems to indicate that I do have it. *shrug* No the check says "the connection could not be established, make sure you have..." So the check can't find your MYSQLi. 58 minutes ago, j4ss said: Hello, you are missing the "MYSQLi" extension http://php.net/mysqli
Colonel_mortis Posted June 13, 2016 Posted June 13, 2016 The mysqli extension is installed (see line 6), but your DB credentials are probably wrong. Check that sql_host, sql_database, sql_user, sql_pass, sql_port and sql_socket are correct in conf_global.php.
SJ77 Posted June 14, 2016 Author Posted June 14, 2016 17 hours ago, Colonel_mortis said: The mysqli extension is installed (see line 6), but your DB credentials are probably wrong. Check that sql_host, sql_database, sql_user, sql_pass, sql_port and sql_socket are correct in conf_global.php. I don't know if I have gone stupid or what but I can't crack this nut. my setup looks right. $INFO['sql_driver'] = 'mysql'; $INFO['sql_host'] = 'localhost'; $INFO['sql_database'] = 'pfx_mydb'; $INFO['sql_user'] = 'pfx_mydbusername'; $INFO['sql_pass'] = 'mypassword'; $INFO['sql_tbl_prefix'] = ''; $INFO['sql_debug'] = '0'; $INFO['sql_charset'] = 'utf8'; $INFO['board_start'] = '1451250635'; $INFO['installed'] = '1'; $INFO['php_ext'] = 'php'; $INFO['safe_mode'] = '0'; $INFO['board_url'] = 'http://111.222.333.444/~root/mysite/forum/'; $INFO['banned_group'] = '5'; $INFO['admin_group'] = '4'; $INFO['guest_group'] = '2'; $INFO['member_group'] = '3'; $INFO['auth_group'] = '1'; $INFO['use_friendly_urls'] = '1'; $INFO['_jsDebug'] = '0'; $INFO['mysql_tbl_type'] = 'MyISAM'; $INFO['use_memcache'] = '1'; define('IN_DEV', 0); /* Remote archive DB - complete these details if you\'re using a remote DB for the post archive. If content has already been archived in the local DB, this will need transferring and will not be done automatically. */ $INFO['archive_remote_sql_host'] = ''; $INFO['archive_remote_sql_database'] = ''; $INFO['archive_remote_sql_user'] = ''; $INFO['archive_remote_sql_pass'] = ''; $INFO['archive_remote_sql_charset'] = ''; anything jumping out at you?
Woodsman Posted June 14, 2016 Posted June 14, 2016 @superj707 What version of MySQL is presently on your server? The last statement in your example appears to be pointing to an older version of MySQL. You will need 5.6.0 or above...
SJ77 Posted June 14, 2016 Author Posted June 14, 2016 47 minutes ago, Woodsman said: @superj707 What version of MySQL is presently on your server? The last statement in your example appears to be pointing to an older version of MySQL. You will need 5.6.0 or above... Server version: 5.6.30 - MySQL Community Server (GPL) It shouldn't be this difficult to move a website. I am so confused.
SJ77 Posted June 14, 2016 Author Posted June 14, 2016 Fatal error: Undefined constant 'IPS\LOG_FALLBACK_DIR' in /home/root/public_html/mysite/forum/system/Log/Log.php on line 126Fatal error: Uncaught exception 'IPS\Db\Exception' with message 'Table 'htb_mydatabase.core_sessions' doesn't exist' in /home/ root /public_html/ mysite /forum/system/Db/Db.php:388 Stack trace: #0 /home/ root /public_html/ mysite /forum/system/Db/Db.php(688): IPS\_Db->preparedQuery('REPLACE INTO `c...', Array) #1 /home/ root /public_html/ mysite /forum/system/Session/Front.php(300): IPS\_Db->replace('core_sessions', Array, true) #2 [internal function]: IPS\Session\_Front->write('ec5e3ca5ba0a7af...', '') #3 {main} thrown in /home/ root /public_html/ mysite /forum/system/Db/Db.php on line 388
Adlago Posted June 14, 2016 Posted June 14, 2016 try this - Create a new empty data base - Upload new conf_global.php - Install suites in the new database - Rename a backup named the new database - Import backup to new database
Colonel_mortis Posted June 14, 2016 Posted June 14, 2016 12 hours ago, superj707 said: Fatal error: Undefined constant 'IPS\LOG_FALLBACK_DIR' in /home/root/public_html/mysite/forum/system/Log/Log.php on line 126Fatal error: Uncaught exception 'IPS\Db\Exception' with message 'Table 'htb_mydatabase.core_sessions' doesn't exist' in /home/ root /public_html/ mysite /forum/system/Db/Db.php:388 Stack trace: #0 /home/ root /public_html/ mysite /forum/system/Db/Db.php(688): IPS\_Db->preparedQuery('REPLACE INTO `c...', Array) #1 /home/ root /public_html/ mysite /forum/system/Session/Front.php(300): IPS\_Db->replace('core_sessions', Array, true) #2 [internal function]: IPS\Session\_Front->write('ec5e3ca5ba0a7af...', '') #3 {main} thrown in /home/ root /public_html/ mysite /forum/system/Db/Db.php on line 388 That means that it's connecting to the DB correctly now, but the IPS tables are not there. Have you imported the the database from the backup of your old server?
SJ77 Posted June 15, 2016 Author Posted June 15, 2016 13 hours ago, Colonel_mortis said: That means that it's connecting to the DB correctly now, but the IPS tables are not there. Have you imported the the database from the backup of your old server? Thank you.. I don't know if I did something right or not but now I have this error (just 1 problem after another) *sigh* Fatal error: Undefined constant 'IPS\CACHEBUST_KEY' in /home/root/public_html/mysite/forum/system/Output/Output.php on line 227 any ideas now?
Colonel_mortis Posted June 15, 2016 Posted June 15, 2016 1 hour ago, superj707 said: Thank you.. I don't know if I did something right or not but now I have this error (just 1 problem after another) *sigh* Fatal error: Undefined constant 'IPS\CACHEBUST_KEY' in /home/root/public_html/mysite/forum/system/Output/Output.php on line 227 any ideas now? It sounds like init.php is a different version to the rest of the files. Download the full zip from the client area, and upload it to overwrite everything.
SJ77 Posted June 16, 2016 Author Posted June 16, 2016 Getting closer every day! LOL now I've got the site loading but my CSS isn't working. ugh!! LOL
SaltyBart Posted June 16, 2016 Posted June 16, 2016 Have you tried run the support tool, to clear all cached data ?
SJ77 Posted June 16, 2016 Author Posted June 16, 2016 13 hours ago, R-023 said: Have you tried run the support tool, to clear all cached data ? Yes it was of no help
Adlago Posted June 16, 2016 Posted June 16, 2016 Check the source of the page - there links to load css? Possible wrong address css.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.