Parisian Posted January 3, 2020 Share Posted January 3, 2020 PHP 7.4 deprecates unparenthesised ternary operators so upgrading to the 4.4.9.2 update fails with the error message: Quote [03-Jan-2020 07:52:50 UTC] PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in //www/community/applications/core/modules/setup/upgrade/license.php on line 98 [03-Jan-2020 07:52:50 UTC] PHP Stack trace: [03-Jan-2020 07:52:50 UTC] PHP 1. {main}() //www/community/admin/upgrade/index.php:0 [03-Jan-2020 07:52:50 UTC] PHP 2. IPS\Dispatcher\Setup->run() //www/community/admin/upgrade/index.php:34 [03-Jan-2020 07:52:50 UTC] PHP 3. class_exists() /www/community/system/Dispatcher/Setup.php:209 [03-Jan-2020 07:52:50 UTC] PHP 4. spl_autoload_call() /www/community/system/Dispatcher/Setup.php:209 [03-Jan-2020 07:52:50 UTC] PHP 5. IPS\IPS::autoloader() /www/community/system/Dispatcher/Setup.php:209 This should be an easy fix, can one be provided ASAP? Link to comment Share on other sites More sharing options...
Adriano Faria Posted January 3, 2020 Share Posted January 3, 2020 As far as I know IPS 4.5 will be compatible with PHP 7.4. You will have to use 7.3 on 4.4.X. Link to comment Share on other sites More sharing options...
Martin A. Posted January 3, 2020 Share Posted January 3, 2020 It should only throw a E_DEPRECATED error now, which can be suppressed in php.ini. Based on the path in your error stack I'm going to assume you have access to that. error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR PHP will only die on errors after you change error_reporting to this. The other option is to go back to PHP 7.3. Adriano Faria 1 Link to comment Share on other sites More sharing options...
Management Matt Posted January 3, 2020 Management Share Posted January 3, 2020 As above, we're working on 7.4 compatibility with Invision Community 4.5. Link to comment Share on other sites More sharing options...
Daniil145 Posted May 27, 2021 Share Posted May 27, 2021 What version of php do you want to use at the moment, on the last update? Link to comment Share on other sites More sharing options...
Daniel F Posted May 27, 2021 Share Posted May 27, 2021 We're requiring PHP 7.2 and recommending PHP 7.4.0 for IPS 4.6 , but I would personally recommend to use PHP 8 if it is available on your system ! NoSpy 1 Link to comment Share on other sites More sharing options...
Daniil145 Posted December 31, 2021 Share Posted December 31, 2021 I install php8.0 and recive error [Fri Dec 31 17:54:04.708553 2021] [proxy_fcgi:error] [pid 15263] AH01071: Got error 'PHP message: PHP Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /forum/system/Theme/Theme.php(860) : eval()'d code on line 1400' Link to comment Share on other sites More sharing options...
Recommended Posts