Jump to content

Prestashop Upgrade 1.7 to 8.X - api_private_key


mati7716

Recommended Posts

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

  • 2 months later...

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 by cnoulette (see edit history)
Link to comment
Share on other sites

  • 1 year later...

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 by mudol (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
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

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