Jump to content

You have requested a non-existent service "prestashop.translation.translator_language_loader"


linkses

Recommended Posts

Hi,

I'm trying to insert new categories using the web service, and I receive the next exception, I attached petition details:

HTTP REQUEST HEADER
POST /fr//api/categories HTTP/1.1
Accept: */*
Content-Length: 282
Content-Type: application/x-www-form-urlencoded

HTTP RESPONSE HEADER
HTTP/1.1 200 OK
Date: Tue, 04 Jan 2022 12:04:02 GMT
Server: Apache/2.4.51 (Unix) OpenSSL/1.0.2k-fips
X-Powered-By: PHP/7.3.33
Vary: Accept-Encoding,User-Agent
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
XML SENT
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink"><category><id_parent>2</id_parent><name><language id="1">Actu, Politique et Société</language></name><active>1</active><link_rewrite><language id="1">actu-politique-et-societe</language></link_rewrite></category></prestashop>
RETURN HTTP BODY
Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "prestashop.translation.translator_language_loader". in /home/bookrev/public_html/fr/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:348
Stack trace:
#0 /home/bookrev/public_html/fr/classes/Context.php(448): Symfony\Component\DependencyInjection\Container->get('prestashop.tran...')
#1 /home/bookrev/public_html/fr/classes/Context.php(398): ContextCore->getTranslatorFromLocale('fr-FR')
#2 /home/bookrev/public_html/fr/classes/module/Module.php(3437): ContextCore->getTranslator()
#3 /home/bookrev/public_html/fr/classes/module/Module.php(3444): ModuleCore->getTranslator()
#4 /home/bookrev/public_html/fr/modules/ps_mainmenu/ps_mainmenu.php(76): ModuleCore->trans('Main menu', Array, 'Modules.Mainmen...')
#5 [internal function]: Ps_MainMenu->__construct()
#6 /home/bookrev/public_html/fr/src/Core/Foundation/IoC/Container.php(123): ReflectionClass->newInstance()
#7  in /home/bookrev/public_html/fr/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php on line 348

 

I'm using the Prestashop v. 1.7.8.2

Anyone had this error before and know how to solve it?

 

Thanks!

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