Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Parisian Posted January 3, 2020 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?
Adriano Faria Posted January 3, 2020 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.
Martin A. Posted January 3, 2020 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
Management Matt Posted January 3, 2020 Management Posted January 3, 2020 As above, we're working on 7.4 compatibility with Invision Community 4.5.
Daniil145 Posted May 27, 2021 Posted May 27, 2021 What version of php do you want to use at the moment, on the last update?
Daniel F Posted May 27, 2021 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
Daniil145 Posted December 31, 2021 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'
Recommended Posts