Ritter Posted 18 hours ago Share Posted 18 hours ago Bevor ich Prestashop 8.0 (PHP 8.3) auf die aktuelle Version 9 update würde ich gerne einige bestehenden Probleme lösen, damit sie nicht auf die neue Version mit übertragen werden. Das größte Problem ist z.Z., dass der Debug-Modus nicht funktioniert. Schalte ich den Debug-Modus ein erscheint das Fontend mit folgenden Fehlermeldungen: Zitat 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 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:289 Stack trace: #0 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(231): Symfony\Component\DependencyInjection\Container->make('PrestaShop\\Modu...', 1) #1 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/module/Module.php(3435): Symfony\Component\DependencyInjection\Container->get('PrestaShop\\Modu...') #2 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/modules/psgdpr/psgdpr.php(740): ModuleCore->get('PrestaShop\\Modu...') #3 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Hook.php(968): Psgdpr->hookDisplayGDPRConsent(Array) #4 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Hook.php(407): HookCore::coreCallHook(Object(Psgdpr), 'hookDisplayGDPR...', Array) #5 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Hook.php(903): HookCore::callHookOn(Object(Psgdpr), 'displayGDPRCons...', Array) #6 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/config/smarty.config.inc.php(167): HookCore::exec('displayGDPRCons...', Array, NULL) #7 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Smarty/SmartyLazyRegister.php(81): smartyHook(Array, Object(SmartyDevTemplate)) #8 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/var/cache/dev/smarty/compile/classic/15/1d/67/151d670159b90f77b41deed089352c0debc66c64_2.file.contactform.tpl.php(157): SmartyLazyRegister->__call('smartyHook', Array) #9 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6964c18ee1da26_42693642(Object(SmartyDevTemplate)) #10 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(SmartyDevTemplate)) #11 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(SmartyDevTemplate)) #12 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0) #13 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(SmartyDevTemplate), NULL, NULL, NULL, 0) #14 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Smarty/SmartyDevTemplate.php(55): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL) #15 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/module/Module.php(2227): SmartyDevTemplateCore->fetch() #16 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/modules/contactform/contactform.php(243): ModuleCore->display('/is/htdocs/wp11...', 'views/templates...') #17 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Hook.php(979): Contactform->renderWidget('displayHome', Array) #18 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Hook.php(923): HookCore::coreRenderWidget(Object(Contactform), 'displayHome', Array) #19 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/controllers/front/IndexController.php(40): HookCore::exec('displayHome') #20 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/controller/Controller.php(319): IndexControllerCore->initContent() #21 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Dispatcher.php(503): ControllerCore->run() #22 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/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 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Hook.php:420 Stack trace: #0 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Hook.php(903): HookCore::callHookOn(Object(Psgdpr), 'displayGDPRCons...', Array) #1 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/config/smarty.config.inc.php(167): HookCore::exec('displayGDPRCons...', Array, NULL) #2 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Smarty/SmartyLazyRegister.php(81): smartyHook(Array, Object(SmartyDevTemplate)) #3 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/var/cache/dev/smarty/compile/classic/15/1d/67/151d670159b90f77b41deed089352c0debc66c64_2.file.contactform.tpl.php(157): SmartyLazyRegister->__call('smartyHook', Array) #4 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6964c18ee1da26_42693642(Object(SmartyDevTemplate)) #5 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(SmartyDevTemplate)) #6 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(SmartyDevTemplate)) #7 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 0) #8 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(SmartyDevTemplate), NULL, NULL, NULL, 0) #9 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Smarty/SmartyDevTemplate.php(55): Smarty_Internal_TemplateBase->fetch(NULL, NULL, NULL, NULL) #10 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/module/Module.php(2227): SmartyDevTemplateCore->fetch() #11 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/modules/contactform/contactform.php(243): ModuleCore->display('/is/htdocs/wp11...', 'views/templates...') #12 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Hook.php(979): Contactform->renderWidget('displayHome', Array) #13 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Hook.php(923): HookCore::coreRenderWidget(Object(Contactform), 'displayHome', Array) #14 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/controllers/front/IndexController.php(40): HookCore::exec('displayHome') #15 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/controller/Controller.php(319): IndexControllerCore->initContent() #16 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Dispatcher.php(503): ControllerCore->run() #17 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/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 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Hook.php:983 Stack trace: #0 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Hook.php(923): HookCore::coreRenderWidget(Object(Contactform), 'displayHome', Array) #1 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/controllers/front/IndexController.php(40): HookCore::exec('displayHome') #2 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/controller/Controller.php(319): IndexControllerCore->initContent() #3 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Dispatcher.php(503): ControllerCore->run() #4 /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/index.php(28): DispatcherCore->dispatch() #5 {main} thrown in /is/htdocs/xxxxxxxxx_P0JXD1MK8I/www/shop/classes/Hook.php on line 983 Ein Verzeichnis "Repository" unter Module wurde bei der Installation des DSGVO-Moduls "Psgdpr"nicht angelegt. Liegt darin das Problem? Ein weiteres Problem: Kunden die z.Z. den Gruppenzugang „Kunde 10% Rabatt“ und als Standard-Kundengruppe ebenfalls „Kunde 10% Rabatt“ eingetragen haben, bekommen nach der Anmeldung eine leere Seite ohne Artikel zu sehen. Füge ich dem Gruppenzugang zusätzlich noch „Kunde“ hinzu (also „Kunde“ und „Kunde 10% Rabatt), werden die Artikel wieder angezeigt. Mir ist die Logik dahinter nicht ganz klar, weshalb ein „Kunde 10% Rabatt“ zusätzlich noch in der Gruppe Kunde eingetragen sein muss. Also in 2 unterschiedlichen Gruppen, obwohl eigentlich nur die Rabattgruppe relevant sein sollte. Link to comment Share on other sites More sharing options...
rictools Posted 17 hours ago Share Posted 17 hours ago Bei meinem 1.6er-Shop dürfen die Namen von Kundengruppen keine Zahlen enthalten, auch Sonderzeichen können Probleme machen. Link to comment Share on other sites More sharing options...
Ritter Posted 16 hours ago Author Share Posted 16 hours ago Hallo rictools, vielen Dank für den Hinweis. Ich habe testweise die Gruppe "10% Rabatt" in "zehn" umbenannt. Jetzt werden immerhin 2(!) Artikel auf der Startseite angezeigt - angelegt am 07.11.24 & 18.08.25, alle Artikel davor, dazwischen und danach nicht. Füge ich zusätzlich zu "zehn" noch die Gruppe "Kunde" hinzu erscheinen wieder alle Artikel. Verstehen muss ich das nicht. Ich aktiviere jetzt bei allen Rabattkundengruppen einfach noch die Gruppe "Kunde", um das Problem aus der Welt zu schaffen. Link to comment Share on other sites More sharing options...
rictools Posted 16 hours ago Share Posted 16 hours ago Vielleicht muss noch der Cache gelöscht werden. 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