rbuelund Posted May 15, 2019 Share Posted May 15, 2019 (edited) When trying to manually upgrade PrestaShop from 1.7.4.4 to 1.7.5.2 it fails with this error: Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\RuntimeException: Invalid service "prestashop.module.link_block.cache": class "PrestaShop\Module\LinkList\Cache\LegacyLinkBlockCache" does not exist. in /var/www/www.xxxx-dev.dk/www/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php:123 Stack trace: #0 /var/www/www.xxxx-dev.dk/www/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(150): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->getConstructor(Object(Symfony\Component\DependencyInjection\Definition), true) #1 /var/www/www.xxxx-dev.dk/www/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/ResolveNamedArgumentsPass.php(50): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->getReflectionMethod(Object(Symfony\Component\DependencyInjection\Definition), '__construct') #2 /var/www/www.xxxx-dev.dk/www/shop/vendor/symfony/sy in /var/www/www.xxxx-dev.dk/www/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php on line 123 I followed this description: https://devdocs.prestashop.com/1.7/basics/keeping-up-to-date/upgrade/ This is really frustrating that it is SO hard to upgrade PrestaShop - this should just work !!! That makes me think about switching to another shop system ! Edited May 15, 2019 by rbuelund (see edit history) Link to comment Share on other sites More sharing options...
Janett Posted May 15, 2019 Share Posted May 15, 2019 Your problem come from a module (ps_linklist) not from Prestashop in this case. Moreover, clear cache manually : delete all folders and files in /var/cache/ it will be regenerated. 1 Link to comment Share on other sites More sharing options...
rbuelund Posted May 15, 2019 Author Share Posted May 15, 2019 Moved it to the english forum. Deleting var/cache did not help. Link to comment Share on other sites More sharing options...
Janett Posted May 15, 2019 Share Posted May 15, 2019 Remove module ps_linklist Link to comment Share on other sites More sharing options...
JBW Posted May 16, 2019 Share Posted May 16, 2019 Have you tried to use the 1-click-Upgrade module instead? Make sure to use the lastest version Link to comment Share on other sites More sharing options...
rbuelund Posted May 18, 2019 Author Share Posted May 18, 2019 But is ps_linklist not a "core" module of prestashop ? Why should I remove it - it is in use. Should it not also upgrade automatically ?? The ps_linklist module is version 2.1.6 in my installation. Link to comment Share on other sites More sharing options...
Janett Posted May 18, 2019 Share Posted May 18, 2019 (edited) Delete the current ps_linklist module on your ftp, but do not uninstall it to not lose your associated data. Check if error disappeared. Try to get the lastest version of this module 3.0.3 : https://github.com/PrestaShop/ps_linklist/releases Edited May 18, 2019 by Janett (see edit history) Link to comment Share on other sites More sharing options...
rbuelund Posted May 20, 2019 Author Share Posted May 20, 2019 If I remove the folder ps_linklist - yes, then the upgrade runs - but how do I get the module back again afterwards ?? Link to comment Share on other sites More sharing options...
rbuelund Posted May 21, 2019 Author Share Posted May 21, 2019 Finally got it working! What I did: 1) Set PHP version to 7.1.5 2) Deleted all files in folder modules/ps_linklist 3) Upgraded with 1-click (latest version) 4) Under modules - upgraded Linklist module to 3.0.3 5) Changed to PHP version 7.3.5 1 Link to comment Share on other sites More sharing options...
Janett Posted May 21, 2019 Share Posted May 21, 2019 (edited) Warning ! Prestashop is not compliant with PHP 7.3 : https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/ You can follow work in progress about support of PHP 7.3 here : https://github.com/PrestaShop/PrestaShop/issues/12461 Edited May 21, 2019 by Janett (see edit history) Link to comment Share on other sites More sharing options...
rbuelund Posted May 21, 2019 Author Share Posted May 21, 2019 Ok - downgraded to 7.1.5 and everything still works. Link to comment Share on other sites More sharing options...
MEG Venture Posted November 2, 2019 Share Posted November 2, 2019 On 5/15/2019 at 8:36 PM, Janett said: Your problem come from a module (ps_linklist) not from Prestashop in this case. Moreover, clear cache manually : delete all folders and files in /var/cache/ it will be regenerated. Lifesaver. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now