Jump to content

PHP 7 backend error 500


preston654

Recommended Posts

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

  • 8 months later...
  • 1 year later...
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

  • 2 years later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...