nubreed Posted October 31, 2021 Share Posted October 31, 2021 Καλησπέρα 4 μέρες τωρα στο τεταρτο βήμα αγοράς (checkout) Παίρνω αυτο το error σαν τιτλο και με 300 errors από κάτω >> ContextErrorException Notice: Trying to get property 'link_rewrite' of non-object Η βαση δεδομενων δειχνει no errors - και το τελευταιο update είναι οκ (1.7.8.0) Όλα τα modules ειναι up to date καποια απο τα errors: in ps_legalcompliance.php line 789 at Ps_LegalCompliance->hookTermsAndConditions(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 997 at HookCore::coreCallHook(object(Ps_LegalCompliance), 'hookTermsAndConditions', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 421 at HookCore::callHookOn(object(Ps_LegalCompliance), 'termsAndConditions', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 934 at HookCore::exec('termsAndConditions', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), null, true)in ConditionsToApproveFinder.php line 64 at ConditionsToApproveFinderCore->getConditionsToApprove()in ConditionsToApproveFinder.php line 104 at Smarty_Internal_TemplateBase->fetch('modules/ps_legalcompliance/views/templates/hook/hookDisplayOverrideTemplateFooter.tpl', null, 'classiclayouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40 at SmartyDev->fetch('modules/ps_legalcompliance/views/templates/hook/hookDisplayOverrideTemplateFooter.tpl', null, 'classiclayouts/layout-full-width.tpl')in FrontController.php line 727 at FrontControllerCore->smartyOutputContent('modules/ps_legalcompliance/views/templates/hook/hookDisplayOverrideTemplateFooter.tpl')in FrontController.php line 709 at FrontControllerCore->display()in Controller.php line 326 at ControllerCore->run()in Dispatcher.php line 518 at DispatcherCore->dispatch()in index.php line 28Τι μπορεί να φταίει? Link to comment Share on other sites More sharing options...
sanctusmob Posted October 31, 2021 Share Posted October 31, 2021 1 hour ago, nubreed said: Καλησπέρα 4 μέρες τωρα στο τεταρτο βήμα αγοράς (checkout) Παίρνω αυτο το error σαν τιτλο και με 300 errors από κάτω >> ContextErrorException Notice: Trying to get property 'link_rewrite' of non-object Η βαση δεδομενων δειχνει no errors - και το τελευταιο update είναι οκ (1.7.8.0) Όλα τα modules ειναι up to date καποια απο τα errors: in ps_legalcompliance.php line 789 at Ps_LegalCompliance->hookTermsAndConditions(array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 997 at HookCore::coreCallHook(object(Ps_LegalCompliance), 'hookTermsAndConditions', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 421 at HookCore::callHookOn(object(Ps_LegalCompliance), 'termsAndConditions', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 934 at HookCore::exec('termsAndConditions', array('cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), null, true)in ConditionsToApproveFinder.php line 64 at ConditionsToApproveFinderCore->getConditionsToApprove()in ConditionsToApproveFinder.php line 104 at Smarty_Internal_TemplateBase->fetch('modules/ps_legalcompliance/views/templates/hook/hookDisplayOverrideTemplateFooter.tpl', null, 'classiclayouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40 at SmartyDev->fetch('modules/ps_legalcompliance/views/templates/hook/hookDisplayOverrideTemplateFooter.tpl', null, 'classiclayouts/layout-full-width.tpl')in FrontController.php line 727 at FrontControllerCore->smartyOutputContent('modules/ps_legalcompliance/views/templates/hook/hookDisplayOverrideTemplateFooter.tpl')in FrontController.php line 709 at FrontControllerCore->display()in Controller.php line 326 at ControllerCore->run()in Dispatcher.php line 518 at DispatcherCore->dispatch()in index.php line 28Τι μπορεί να φταίει? Κάνε update το Module LegalCompliance. Αν δεν έχει κάντο disable και θα παίξει. Το πρόβλημα είναι εδώ ps_legalcompliance.php line 789 Το οποίο είναι ανάλογα την έκδοση του LegalCompliance. Από το github βλέπω αυτό $link_revocation = $this->context->link->getCMSLink($cms_revocation, $cms_revocation->link_rewrite, (bool) Configuration::get('PS_SSL_ENABLED')); Και το error λέει ότι δεν υπάρχει το link_rewrite στο object cms_revocation το οποίο δημιουργίτε ακριβώς από πάνω. $cms_revocation = $cms_repository->i10nFindOneById((int) $cms_page_revocation_associated->id_cms, (int) $this->context->language->id, (int) $this->context->shop->id); Αν θα θέλεις να το κάνεις debug θα πρέπει να κάνει ένα var dump. Link to comment Share on other sites More sharing options...
nubreed Posted October 31, 2021 Author Share Posted October 31, 2021 Solved!!! @sanctusmob είσαι φοβερός Ευχαριστώ πολύ!!! Καλή εβδομάδα! Link to comment Share on other sites More sharing options...
sanctusmob Posted October 31, 2021 Share Posted October 31, 2021 3 hours ago, nubreed said: Solved!!! @sanctusmob είσαι φοβερός Ευχαριστώ πολύ!!! Καλή εβδομάδα! Γράψε τι έκανες για να ξέρουν και οι υπόλιποι αν τους τύχει. Το έκανες update ή το έκανες disabled? Παρακαλώ. 2 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