Prestashop error message

On this page
  1. Change the PHP Version in the mybox Panel
  2. Step 1: Open the Websites Section
  3. Step 2: Edit the Website Settings
  4. Step 3: Select a Different PHP Version
  5. What to Expect
  6. If the Error Persists
  7. Summary

If your PrestaShop store displays the following error:

Fatal error: Declaration of AdminLoginControllerCore::viewAccess() must be compatible with AdminControllerCore

the issue is often related to PHP version compatibility.

This error may occur after:

  • Migrating a store to a new hosting environment
  • Updating the server configuration
  • Restoring a backup
  • Changing the PHP version
  • Running an older version of PrestaShop on a newer PHP release

In many cases, switching to a PHP version supported by your PrestaShop installation resolves the problem.

Change the PHP Version in the mybox Panel

Step 1: Open the Websites Section

Log in to the mybox Panel.

Navigate to the Websites section.

Step 2: Edit the Website Settings

Locate the website affected by the error.

Click Actions next to the website and select Edit.

Step 3: Select a Different PHP Version

In the website settings, locate the PHP version selector.

Choose the PHP version recommended for your PrestaShop installation.

Click Save to apply the changes.

What to Expect

PHP version changes are not applied immediately.

In most cases, the new configuration becomes active within a few minutes after saving the settings.

Once the change has been applied, refresh your website and verify whether the error has been resolved.

If the Error Persists

If changing the PHP version does not resolve the issue, additional investigation may be required.

Possible causes include:

  • Outdated PrestaShop files
  • Incompatible modules
  • Custom modifications to the store
  • Incomplete updates or migrations

Checking the PHP error logs can help identify the exact source of the problem.

Summary

The error indicating that AdminLoginControllerCore::viewAccess() is not compatible with AdminControllerCore is commonly caused by PHP version incompatibilities. Switching to a PHP version supported by your PrestaShop installation is often sufficient to restore normal operation of the store.

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.