Jump to content

Upgrade from 8.2.1 to 9.0.0 fails Declaration of PrestaShop\Module\PsEditionBasic\Controller\AdminPsEditionBasicController::get($serviceName) must be compatible with PrestaShopBundle\Controller\Admin\FrameworkBundleAdminController::get(string $id)


Recommended Posts

Hello all,

after cleaning up the cache, removing ps_mbo etc. I am still stuck getting the following error during the upgrade step 4:

[...] Declaration of PrestaShop\Module\PsEditionBasic\Controller\AdminPsEditionBasicController::get($serviceName) must be compatible with PrestaShopBundle\Controller\Admin\FrameworkBundleAdminController::get(string $id): object

I checked and found a suggestion to edit /modules/ps_edition_basic/src/Controller/AdminPsEditionBasicController.php

from: public function get($serviceName)

to: public function get(string $serviceName): object

I see how that might work around the crash - but is that a good idea? I'd rather find the root cause. Any suggestions what might cause the crash?

Thanks in advance!

BJF

 

Link to comment
Share on other sites

15 hours ago, BeeJayF said:

I see how that might work around the crash - but is that a good idea? I'd rather find the root cause. Any suggestions what might cause the crash?

 

I believe it's simply an error from the Prestashop end. The ps_edition_basic module (PS8) is not compatible with the PS9, thus giving an error. The module upgrade is the last step of the upgrade process, so you are stuck until you do the manual changes before the upgrade. 

Link to comment
Share on other sites

Hello,

I have the same problem during upgrade from 8.2.1 to 9.0.0 with module ps_edition_basic ver. 1.0.20.

What do you mean by that "manual changes" - uninstallation of ps_edition_basic, please? I tried to disabled this module without success.

Thanks for help

my log:

[........] CRITICAL - ErrorHandler - .............../web/modules/ps_edition_basic/src/Controller/AdminPsEditionBasicController.php line 45 - Declaration of PrestaShop\Module\PsEditionBasic\Controller\AdminPsEditionBasicController::get($serviceName) must be compatible with PrestaShopBundle\Controller\Admin\FrameworkBundleAdminController::get(string $id): object
 

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...