Jump to content

[PS 8] Update Kunden-datenschutz


Ritter

Recommended Posts

Nach dem Update des Moduls Kunden-Datenschutz ist das FO des Shops defekt:


Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "PrestaShop\Module\Psgdpr\Repository\ConsentRepository". Did you mean one of these: "PrestaShop\Module\Psgdpr\Repository\CustomerRepository", "PrestaShop\Module\Psgdpr\Repository\LoggerRepository"? in xxx/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:289 Stack trace: #0 xxx/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make('PrestaShop\\Modu...', 1) #1 xxx/classes/module/Module.php(3435): Symfony\Component\DependencyInjection\Container->get('PrestaShop\\Modu...') #2 xxx/modules/psgdpr/psgdpr.php(740): ModuleCore->get('PrestaShop\\Modu...') #3 xxx/classes/Hook.php(968): Psgdpr->hookDisplayGDPRConsent(Array) #4 xxx/classes/Hook.php(407): HookCore::coreCallHook(Object(Psgdpr), 'hookDisplayGDPR...', Array) #5 xxx/classes/Hook.php(903): HookCore::callHookOn(Object(Psgdpr), 'displayGDPRCons...', Array) #6 xxx/config/smarty.config.inc.php(167): HookCore::exec('displayGDPRCons...', Array, NULL) #7 xxx/classes/Smarty/SmartyLazyRegister.php(81): smartyHook(Array, Object(SmartyDevTemplate)) #8 xxx/var/cache/dev/smarty/compile/classic/15/1d/67/151d670159b90f77b41deed089352c0debc66c64_2.file.contactform.tpl.php(157): SmartyLazyRegister->__call('smartyHook', Array) #9 xxx/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_643542a8bd31b4_37181241(Object(SmartyDevTemplate)) #10 xxx/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(SmartyDevTemplate)) #11 xxx/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(SmartyDevTemplate)) #12 xxx/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0) #13 xxx/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(SmartyDevTemplate), NULL, NULL, NULL, 0) #14 xxx/classes/Smarty/SmartyDevTemplate.php(55): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL) #15 xxx/classes/module/Module.php(2227): SmartyDevTemplateCore->fetch() #16 xxx/modules/contactform/contactform.php(243): ModuleCore->display('/is/htdocs/wp11...', 'views/templates...') #17 xxx/classes/Hook.php(979): Contactform->renderWidget('displayHome', Array) #18 xxx/classes/Hook.php(923): HookCore::coreRenderWidget(Object(Contactform), 'displayHome', Array) #19 xxx/controllers/front/IndexController.php(40): HookCore::exec('displayHome') #20 xxx/classes/controller/Controller.php(319): IndexControllerCore->initContent() #21 xxx/classes/Dispatcher.php(503): ControllerCore->run() #22 xxx/index.php(28): DispatcherCore->dispatch() #23 {main} Next PrestaShop\PrestaShop\Core\Exception\CoreException: You have requested a non-existent service "PrestaShop\Module\Psgdpr\Repository\ConsentRepository". Did you mean one of these: "PrestaShop\Module\Psgdpr\Repository\CustomerRepository", "PrestaShop\Module\Psgdpr\Repository\LoggerRepository"? in xxx/classes/Hook.php:420 Stack trace: #0 xxx/classes/Hook.php(903): HookCore::callHookOn(Object(Psgdpr), 'displayGDPRCons...', Array) #1 xxx/config/smarty.config.inc.php(167): HookCore::exec('displayGDPRCons...', Array, NULL) #2 xxx/classes/Smarty/SmartyLazyRegister.php(81): smartyHook(Array, Object(SmartyDevTemplate)) #3 xxx/var/cache/dev/smarty/compile/classic/15/1d/67/151d670159b90f77b41deed089352c0debc66c64_2.file.contactform.tpl.php(157): SmartyLazyRegister->__call('smartyHook', Array) #4 xxx/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_643542a8bd31b4_37181241(Object(SmartyDevTemplate)) #5 xxx/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(SmartyDevTemplate)) #6 xxx/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(SmartyDevTemplate)) #7 xxx/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0) #8 xxx/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(SmartyDevTemplate), NULL, NULL, NULL, 0) #9 xxx/classes/Smarty/SmartyDevTemplate.php(55): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL) #10 xxx/classes/module/Module.php(2227): SmartyDevTemplateCore->fetch() #11 xxx/modules/contactform/contactform.php(243): ModuleCore->display('/is/htdocs/wp11...', 'views/templates...') #12 xxx/classes/Hook.php(979): Contactform->renderWidget('displayHome', Array) #13 xxx/classes/Hook.php(923): HookCore::coreRenderWidget(Object(Contactform), 'displayHome', Array) #14 xxx/controllers/front/IndexController.php(40): HookCore::exec('displayHome') #15 xxx/classes/controller/Controller.php(319): IndexControllerCore->initContent() #16 xxx/classes/Dispatcher.php(503): ControllerCore->run() #17 xxx/index.php(28): DispatcherCore->dispatch() #18 {main} Next PrestaShop\PrestaShop\Core\Exception\CoreException: You have requested a non-existent service "PrestaShop\Module\Psgdpr\Repository\ConsentRepository". Did you mean one of these: "PrestaShop\Module\Psgdpr\Repository\CustomerRepository", "PrestaShop\Module\Psgdpr\Repository\LoggerRepository"? in xxx/classes/Hook.php:983 Stack trace: #0 xxx/classes/Hook.php(923): HookCore::coreRenderWidget(Object(Contactform), 'displayHome', Array) #1 xxx/controllers/front/IndexController.php(40): HookCore::exec('displayHome') #2 xxx/classes/controller/Controller.php(319): IndexControllerCore->initContent() #3 xxx/classes/Dispatcher.php(503): ControllerCore->run() #4 xxx/index.php(28): DispatcherCore->dispatch() #5 {main} thrown in xxx/classes/Hook.php on line 983

Das deaktivieren des Moduls bringt keine Änderung.
Aus der Vielzahl der Fehlermeldungen werde ich nicht wirklich schlau, wo das eigentliche Problem liegt.

Link to comment
Share on other sites

Ja, im BO mehrfach gelöscht und auf dem Server kontrolliert:
.../cache/smarty/cache und compile komplett leer.

Update: ich habe den Debug-Modus deaktiviert, jetzt wird der Shop wieder angezeigt. Anscheinend ist es ein Symfony/Container-Problem ... was mir aber überhaupt nichts sagt :(

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

Insgesamt gibt es 4 Einträge zu .../var/cache in der Fehlermeldung, hier die erste:

xxx/var/cache/dev/smarty/compile/classic/15/1d/67/151d670159b90f77b41deed089352c0debc66c64_2.file.contactform.tpl.php(157): 

Cache ist im BO ausgeschaltet und "Cache Löschen" habe ich mehrfach aktiviert, .../var/cache habe ich jetzt händisch per FTP gelöscht und

vor 3 Stunden schrieb Ritter:

.../cache/smarty/cache und compile komplett leer.

Debug-Modus aktiviert und das FO sieht so aus:

image.thumb.png.2d158708cf6a21590032fff926d66c10.pngimage.thumb.png.40124ce75f4cd62ef2fcb50840d255cf.png

Debug-Modus deaktiviert und der Shop funktioniert wieder.

Link to comment
Share on other sites

Ja, mit diesen Fehlermeldungen stehe ich auch auf Kriegsfuß, nur das mit dem Löschen des Inhalts des Ordners var/cache ist bei Prestashop 1.7 nun einmal ein Standard-Tipp und hat dann ja offenbar auch hier geholfen. Wenn ich dich richtig verstehe, denn ich hatte ehrlich gesagt in deinem Post vor 3 Stunden zunächst gelesen, du habest den Debug-Modus aktiviert und nicht wie du geschrieben hast deaktiviert weil dieser Modus ja normalerweise deaktiviert ist und nur bei Problemen aktiviert wird ...

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

Wenn der Shop ohne Debug Modus funktioniert und mit nicht (oder umgekehrt) ist was im Cache kaputt/veraltet - Debug und Prod Modus legen nämlich eigene Caches an. Da hilft löschen von /var/cache, wie schon von rictools erwähnt  (nicht die alten Cache Ordner wie im 3. Beitrag von Ritter geschrieben).

Edited by JBW (see edit history)
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...