Kirill N Posted August 3, 2023 Share Posted August 3, 2023 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? Link to comment Share on other sites More sharing options...
Nathan Explosion Posted August 3, 2023 Share Posted August 3, 2023 3 minutes ago, 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 3 minutes ago, 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 4 minutes ago, 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. Link to comment Share on other sites More sharing options...
Kirill N Posted August 3, 2023 Author Share Posted August 3, 2023 1 minute ago, 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. Link to comment Share on other sites More sharing options...
Nathan Explosion Posted August 3, 2023 Share Posted August 3, 2023 1 minute ago, 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) Link to comment Share on other sites More sharing options...
Kirill N Posted August 3, 2023 Author Share Posted August 3, 2023 2 minutes ago, 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. Link to comment Share on other sites More sharing options...
Marc Posted August 3, 2023 Share Posted August 3, 2023 If you are getting a blank page, please check your PHP logs to see what the actual error is Link to comment Share on other sites More sharing options...
Kirill N Posted August 3, 2023 Author Share Posted August 3, 2023 10 minutes ago, 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 Link to comment Share on other sites More sharing options...
Marc Posted August 3, 2023 Share Posted August 3, 2023 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? Link to comment Share on other sites More sharing options...
Kirill N Posted August 3, 2023 Author Share Posted August 3, 2023 23 minutes ago, 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; ?> Link to comment Share on other sites More sharing options...
Stuart Silvester Posted August 3, 2023 Share Posted August 3, 2023 8 minutes ago, Kirill N said: $INFO['use_friendly_urls'] = ‘1’; This isn't using proper backticks. You can remove this line Marc 1 Link to comment Share on other sites More sharing options...
Kirill N Posted August 3, 2023 Author Share Posted August 3, 2023 6 minutes ago, Stuart Silvester said: This isn't using proper backticks. You can remove this line Oh wow, thank you. It worked! Link to comment Share on other sites More sharing options...
Kirill N Posted August 3, 2023 Author Share Posted August 3, 2023 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? Link to comment Share on other sites More sharing options...
Nathan Explosion Posted August 3, 2023 Share Posted August 3, 2023 (edited) 11 minutes ago, 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, 2023 by Nathan Explosion Kirill N and Jim M 2 Link to comment Share on other sites More sharing options...
Kirill N Posted August 3, 2023 Author Share Posted August 3, 2023 1 hour ago, 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. Link to comment Share on other sites More sharing options...
Kirill N Posted August 3, 2023 Author Share Posted August 3, 2023 Finally working! Thanks everyone! Link to comment Share on other sites More sharing options...
Recommended Posts