Jump to content

Backend error 500 after migration to new web server


kibiribi

Recommended Posts

Hello!

I've moved PrestaShop ver.1.7.4.4 to new server 

Frontend works fine.

When I try to enter BackEnd - first time. next page goes to 500 server error. 

Log told me - Got error 'PHP message: PHP Fatal error:  "AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException: The service "prestashop.module.link_block.grid.data_factory" has a dependency on a non-existent service "prestashop.core.hook.dispatcher". in /httpdocs/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php:31\nStack trace:\n#0 "

 

Debug mode told me - "

(1/1) ServiceNotFoundException

The service "prestashop.module.link_block.grid.data_factory" has a dependency on a non-existent service "prestashop.core.hook.dispatcher".

"

screenshot - https://prnt.sc/vdjzth

I investigated this problem

All Cache folders were deleted - /..../httpdocs/var/cache - didn't help

PHP version from 7.1.3 to 7.3 changed - didn't help 

test script shows me that it's ok - https://prnt.sc/vdk1ey

Any suggestion how to solve this cache OR Symphony problem during the migration to new server? 

This is not update - only migration. 

Thank for your advices in advance 🙂 

Edited by kibiribi (see edit history)
Link to comment
Share on other sites

In general, the problem with blocking the Admin for 500 was described in this post - https://github.com/PrestaShop/PrestaShop/issues/17393
I've changed the ps_linklist module to ps_linklist-old - disabled the module, deleted all the cache in the var / cache / folder - and BackOffice was active and operated. 

Later I downloaded an old module for ver.1.7.4 - https://github.com/PrestaShop/ps_linklist/tree/v2.1.6
replaced - took _old - and it all worked.
In debug mode - no errors occur.
Maybe someone can use a solution to this problem - that's why I added the solution.

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