mati7716 Posted January 8, 2024 Share Posted January 8, 2024 When updating Prestashop from 1.7 to 8.x, an error occurs. I noticed that this is a global problem, does anyone already have a solution? When updating Prestashop to version 8.x, the following errors were displayed -> [INTERNAL] /var/www/prestashop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/DefinitionErrorExceptionPass.php line 54 - Symfony\Component\DependencyInjection\Exception\RuntimeException: You have requested a non-existent parameter "api_private_key". #0 /var/www/prestashop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(83): Symfony\Component\DependencyInjection\Compiler\DefinitionErrorExceptionPass->processValue() #1 /var/www/prestashop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/DefinitionErrorExceptionPass.php(32): Link to comment Share on other sites More sharing options...
cnoulette Posted March 21, 2024 Share Posted March 21, 2024 (edited) This error cam from file app/config/parameters.php In Prestashop 8.x, 2 new attributes have been added : "api_public_key" and "api_private_key". In my case, I rolled back to the previous file (to have old batabase names) and error comes because those 2 attributes were missing. I got them in my history so I could let them back and it's ok. When upgrading 1.7 to 8, always manually backup your files and your bdd to replay upgrade if it is necessary (and it was for me !) Hope it helps for futur upgraders. Edited March 21, 2024 by cnoulette (see edit history) Link to comment Share on other sites More sharing options...
mudol Posted June 13 Share Posted June 13 (edited) I have too problem with this update 1.7.7.5 -> 1.7.8.11 OK then 1.7.8.11 -> 8.2.1 and get this error, how to fix this? Where i can get this two parameters? "[INTERNAL] /home/DOMAIN/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/DefinitionErrorExceptionPass.php line 54 - Symfony\Component\DependencyInjection\Exception\RuntimeException: You have requested a non-existent parameter "api_private_key". #0 /home/DOMAIN/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(83): " Edited June 13 by mudol (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted June 24 Share Posted June 24 On 6/13/2025 at 8:22 AM, mudol said: I have too problem with this update 1.7.7.5 -> 1.7.8.11 OK then 1.7.8.11 -> 8.2.1 and get this error, how to fix this? Where i can get this two parameters? "[INTERNAL] /home/DOMAIN/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/DefinitionErrorExceptionPass.php line 54 - Symfony\Component\DependencyInjection\Exception\RuntimeException: You have requested a non-existent parameter "api_private_key". #0 /home/DOMAIN/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/AbstractRecursivePass.php(83): " maybe this will help. ps 1.7 modules themes are not compliant with ps8, you would need to disable non prestashop modules and use default theme to upgrade to ps8.. 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