Skip to content

Instantly share code, notes, and snippets.

@frkosk
Last active April 23, 2024 17:00
Show Gist options
  • Select an option

  • Save frkosk/936741d31425ea5b2dff5501c5d18cfd to your computer and use it in GitHub Desktop.

Select an option

Save frkosk/936741d31425ea5b2dff5501c5d18cfd to your computer and use it in GitHub Desktop.
PRESTASHOP 1.6.X ADMIN ERROR 500

PRESTASHOP 1.6.X ADMIN ERROR 500

A common error that could appear after you install prestashop is

Fatal error: Declaration of AdminLoginControllerCore::viewAccess() must be compatible with AdminControllerCore::viewAccess($disable = false) in /var/www/prestashop/controllers/admin/AdminLoginController.php on line 27

or, if you haven’t set prestashop into dev mode, you’ll get a 500 error.

The way to fix this is simple:

Go to ROOT/controllers\admin\AdminLoginController.php at line 153 you’ll have to change *public function viewAccess() to public function viewAccess($disable = false)

Thanks to https://stuffweb2016.wordpress.com/2018/08/26/prestashop-1-6-x-admin-error-500/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment