preston654 Posted December 6, 2017 Share Posted December 6, 2017 Hi Im trying to get PrestaShop 1.7.2.4 installed on server. But when I'm trying to access backend (admin) i see error 500 In PHP error logs i've got this: [06-Dec-2017 16:48:44 Europe/Warsaw] PHP Fatal error: Declaration of AdminDashboardControllerCore::setMedia() must be compatible with AdminControllerCore::setMedia($isNewTheme = false) in C:\pr77777.myfreespace.us\www\controllers\admin\AdminDashboardController.php on line 539 [06-Dec-2017 16:48:44 Europe/Warsaw] PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalErrorException: Compile Error: Declaration of AdminDashboardControllerCore::setMedia() must be compatible with AdminControllerCore::setMedia($isNewTheme = false) in C:\pr77777.myfreespace.us\www\controllers\admin\AdminDashboardController.php:539 Stack trace: #0 {main} Next LogicException: Request stack is empty in C:\pr77777.myfreespace.us\www\app\bootstrap.php.cache:3224 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalErrorException)) #1 C:\pr77777.myfreespace.us\www\vendor\symfony\symfony\src\Symfony\Component\Debug\ErrorHandler.php(606): call_user_func(Array, Object(Symfony\Component\Debug\Exception\FatalErrorException)) #2 C:\pr77777.myfreespace.us\www\vendor\symfony\symfony\src\Symfony\Component\Debug\ErrorHandler.php(668): Symfony\Component\Debug\ErrorHandler->handleException(Object(Symfony\Component\Debug\Exception\FatalErrorException), Array) #3 [internal in C:\pr77777.myfreespace.us\www\app\bootstrap.php.cache on line 3224 Do someone know how to fix this? Link to comment Share on other sites More sharing options...
Guest Posted December 6, 2017 Share Posted December 6, 2017 Try here: https://www.prestashop.com/forums/topic/639177-fatalerrorexception-in-admin-page/ Link to comment Share on other sites More sharing options...
bellini13 Posted December 7, 2017 Share Posted December 7, 2017 You are likely using PHP 7.2 which is brand new version of PHP. Don't use it, downgrade PHP to 7.1 or preferable 7.0.x Link to comment Share on other sites More sharing options...
Sashok Posted August 27, 2018 Share Posted August 27, 2018 for php 7.2 change public function setMedia() on public function setMedia($isNewTheme = false) PS 1.7.4.2 - fly is good 4 1 Link to comment Share on other sites More sharing options...
Jaxon Posted March 17, 2020 Share Posted March 17, 2020 On 8/27/2018 at 2:12 PM, Sashok said: for php 7.2 change public function setMedia() on public function setMedia($isNewTheme = false) PS 1.7.4.2 - fly is good Thanks, worked perfectly for PS 1.7.2.1 and PHP 7.2 Link to comment Share on other sites More sharing options...
fectous Posted April 23, 2022 Share Posted April 23, 2022 On 8/27/2018 at 7:12 AM, Sashok said: for php 7.2 change public function setMedia() on public function setMedia($isNewTheme = false) PS 1.7.4.2 - fly is good This solution works for me. PHP7.4. Downgrade to PHP 7.0 or 7.1 is not an option. That versions don't have support anymore. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now