Aleksandr Timashov Posted February 25, 2023 Share Posted February 25, 2023 I updated community from 4.6.12.1 version with php 7.4 to 4.7.7 with php 8.0 After update I have 500 error: Quote We're sorry, but a temporary technical error has occurred which means we cannot display this site right now. You can try again by clicking the button below, or try again later. In nginx logs I see: 2023/02/25 18:22:43 [error] 209149#209149: *336 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot use "parent" when current class scope has no parent in /var/www/site/system/Theme/Theme.php(2703) : eval()'d code on line 37" while reading response header from upstream, client: 18.17.83.224, server: site, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.0-fpm.sock:", host: "site" What happened? Link to comment Share on other sites More sharing options...
Adriano Faria Posted February 25, 2023 Share Posted February 25, 2023 Disable all your 3rd-party apps/plugins. At least one of them isn’t compatible with PHP 8. Enable one by one and go testing until you find the culprit and see if it has a new version to update. Link to comment Share on other sites More sharing options...
Aleksandr Timashov Posted February 25, 2023 Author Share Posted February 25, 2023 Just now, Adriano Faria said: our 3rd-party apps/plugins. At least one of them isn’t compatible with PHP 8. Ena How I can do it? I haven`t access to adminCP with same error.  Link to comment Share on other sites More sharing options...
Adriano Faria Posted February 25, 2023 Share Posted February 25, 2023 Take a look at RECOVERY MODE on: Â Link to comment Share on other sites More sharing options...
Solution Aleksandr Timashov Posted February 25, 2023 Author Solution Share Posted February 25, 2023 (edited) I tried to enable recovery mode, but I can`t change anything in AdminCP. Â I log out and login to adminCP and I have access in normal mode. Thanks. Edited February 25, 2023 by Aleksandr Timashov SeNioR- 1 Link to comment Share on other sites More sharing options...
Adriano Faria Posted February 25, 2023 Share Posted February 25, 2023 The error says it all: 1S107/3 Before you are able to use the Admin Control Panel, you must edit 'constants.php' and remove the following line: define( 'RECOVERY_MODE', TRUE ); Jim M 1 Link to comment Share on other sites More sharing options...
Jim M Posted February 25, 2023 Share Posted February 25, 2023 Glad to hear you have things sorted out 🙂 . Link to comment Share on other sites More sharing options...
Recommended Posts