Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 3, 20231 yr Hello, I’m trying to upgrade my community to the latest version and after uploading the files, this is the error I’m seeing in my Admin CP: We're sorry, but a temporary technical error has occurred which means we cannot display this site right now.syntax error, unexpected '->' (T_OBJECT_OPERATOR)You can try again by clicking the button below, or try again later. I believe it has to do with the PHP version, but when I switch the server to PHP 8, the site won’t load at all. Any ideas on how to fix this and proceed with the upgrade?
August 3, 20231 yr On 8/3/2023 at 9:58 AM, Kirill N said: I believe it has to do with the PHP version Correct - you need to switch to PHP 8.0 or 8.1, but not 8.2 On 8/3/2023 at 9:58 AM, Kirill N said: but when I switch the server to PHP 8, the site won’t load at all. Correct - because 4.5 doesn't support PHP 8.x On 8/3/2023 at 9:58 AM, Kirill N said: Any ideas on how to fix this and proceed with the upgrade? Leave the ACP and instead go straight to https://domain.com/admin/upgrade to begin the upgrade.
August 3, 20231 yr Author On 8/3/2023 at 10:03 AM, Nathan Explosion said: Correct - you need to switch to PHP 8.0 or 8.1, but not 8.2 Correct - because 4.5 doesn't support PHP 8.x Leave the ACP and instead go straight to https://domain.com/admin/upgrade to begin the upgrade. Thanks for such a quick response, Nathan. /admin/upgrade gives me a blank page with any PHP version, including 8.1. I believe I’m having the exact same issue as this client — would appreciate it if someone from IPS could open a ticket for me.
August 3, 20231 yr On 8/3/2023 at 10:07 AM, Kirill N said: /admin/upgrade gives me a blank page with any PHP version, including 8.1. In that case, you need to ensure that your PHP 8.1 installation meets the requirements. Download the following, upload it to the root of your IPS install and run it in the browser, correcting any flagged issues (most common one is that the SQL extensions aren't enabled)
August 3, 20231 yr Author On 8/3/2023 at 10:10 AM, Nathan Explosion said: In that case, you need to ensure that your PHP 8.1 installation meets the requirements. Download the following, upload it to the root of your IPS install and run it in the browser, correcting any flagged issues (most common one is that the SQL extensions aren't enabled) Already did this, everything is green.
August 3, 20231 yr If you are getting a blank page, please check your PHP logs to see what the actual error is
August 3, 20231 yr Author On 8/3/2023 at 10:25 AM, Marc Stridgen said: If you are getting a blank page, please check your PHP logs to see what the actual error is Hi Marc! This is the latest error: [03-Aug-2023 10:34:39 UTC] PHP Fatal error: Uncaught Error: Undefined constant "‘1’" in /home/***/public_html/conf_global.php:20 Stack trace: #0 /home/***/public_html/system/Settings/Settings.php(56): require() #1 /home/***/public_html/system/Patterns/Singleton.php(41): IPS\_Settings->__construct() #2 /home/***/public_html/system/Http/Url.php(771): IPS\Patterns\_Singleton::i() #3 /home/***/public_html/system/Http/Url.php(248): IPS\Http\_Url::baseUrl() #4 /home/***/public_html/system/Request/Request.php(276): IPS\Http\_Url::createFromString('https://***...', true, true) #5 /home/***/public_html/system/Log/Log.php(106): IPS\_Request->url() #6 /home/***/public_html/init.php(1034): IPS\_Log::log('Error: Undefine...', 'uncaught_except...') #7 [internal function]: IPS\IPS::exceptionHandler(Object(Error)) #8 {main} thrown in /home/***/public_html/conf_global.php on line 20
August 3, 20231 yr You need to take a look at your conf_global.php file, as something is not correct in there. Have you manually changed something in there?
August 3, 20231 yr Author On 8/3/2023 at 11:05 AM, Marc Stridgen said: You need to take a look at your conf_global.php file, as something is not correct in there. Have you manually changed something in there? This is what it looks like. I haven’t changed it in years. <?php $INFO['sql_driver'] = 'mysql'; $INFO['sql_host'] = 'localhost'; $INFO['sql_database'] = '***'; $INFO['sql_user'] = '***'; $INFO['sql_pass'] = '***'; $INFO['sql_tbl_prefix'] = ''; $INFO['sql_debug'] = '0'; $INFO['sql_charset'] = ''; $INFO['board_start'] = '1318618567'; $INFO['installed'] = '1'; $INFO['php_ext'] = 'php'; $INFO['safe_mode'] = '0'; $INFO['board_url'] = '***'; $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'] = 'InnoDB'; $INFO['use_memcache'] = '1'; $INFO['memcache_server_1'] = '127.0.0.1'; $INFO['memcache_port_1'] = '11211'; $INFO['sql_utf8mb4'] = TRUE; ?>
August 3, 20231 yr On 8/3/2023 at 11:30 AM, Kirill N said: $INFO['use_friendly_urls'] = ‘1’; This isn't using proper backticks. You can remove this line
August 3, 20231 yr Author On 8/3/2023 at 11:38 AM, Stuart Silvester said: This isn't using proper backticks. You can remove this line Oh wow, thank you. It worked!
August 3, 20231 yr Author Hi again! My upgrade went smoothly, but I’m getting the following errors: Data Storage Not Working Cache Not Working The Redis option is greyed out and says “In order to use this method, the Redis extension must be installed on your server.” I contacted my host and Redis is installed and working. Any idea what is wrong?
August 3, 20231 yr On 8/3/2023 at 4:07 PM, Kirill N said: Redis is installed and working. That it may be, as it is a separate server software - but is the PHP extension for Redis loaded? Go to the Support page in the ACP, click on the PHPInfo button and review what is loaded - no redis, contact your host. Edited August 3, 20231 yr by Nathan Explosion
August 3, 20231 yr Author On 8/3/2023 at 4:17 PM, Nathan Explosion said: That it may be, as it is a separate server software - but is the PHP extension for Redis loaded? Go to the Support page in the ACP, click on the PHPInfo button and review what is loaded - no redis, contact your host. Thank you for the response! Here’s what my phpinfo says: The “Data Storage Not Working” error is now gone, but “Cache Not Working” is still there.