MODELISMO CASTELLON Posted January 14 Share Posted January 14 Buenos días, Tengo un error fatal al crear clientes en el prestashop 1.7.3.3 Me sale esto cuando pongo el debug: [PrestaShopException] Fatal error at line 985 in file classes/Tools.php 980. * @param bool $htmlentities By default at true for parsing error message with htmlentities 981. */ 982. public static function displayError($string = 'Fatal error', $htmlentities = true, Context $context = null) 983. { 984. if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_) { 985. throw new PrestaShopException($string); 986. } else if ('Fatal error' !== $string) { 987. return $string; 988. } 989. 990. return Context::getContext()->getTranslator()->trans('Fatal error', array(), 'Admin.Notifications.Error'); ToolsCore::displayError - [line 372 - classes/Cart.php] 367. { 368. if (!is_object($cart)) { 369. $cart = new Cart((int)$cart); 370. } 371. if (!Validate::isLoadedObject($cart)) { 372. die(Tools::displayError()); 373. } 374. 375. if (!Configuration::get('PS_TAX')) { 376. return 0; 377. } CartCore::getTaxesAverageUsed - [line 444 - src/Adapter/Cart/CartPresenter.php] - [1 Arguments] 439. private function getTemplateVarVouchers(Cart $cart) 440. { 441. $cartVouchers = $cart->getCartRules(); 442. $vouchers = array(); 443. 444. $cartHasTax = is_null($cart->id) ? false : $cart::getTaxesAverageUsed($cart); 445. 446. foreach ($cartVouchers as $cartVoucher) { 447. $vouchers[$cartVoucher['id_cart_rule']]['id_cart_rule'] = $cartVoucher['id_cart_rule']; 448. $vouchers[$cartVoucher['id_cart_rule']]['name'] = $cartVoucher['name']; 449. $vouchers[$cartVoucher['id_cart_rule']]['reduction_percent'] = $cartVoucher['reduction_percent']; PrestaShop\PrestaShop\Adapter\Cart\CartPresenter->getTemplateVarVouchers - [line 400 - src/Adapter/Cart/CartPresenter.php] - [1 Arguments] 395. ? $this->translator->trans('(tax included)', array(), 'Shop.Theme.Global') 396. : $this->translator->trans('(tax excluded)', array(), 'Shop.Theme.Global'), 397. ); 398. 399. $discounts = $cart->getDiscounts(); 400. $vouchers = $this->getTemplateVarVouchers($cart); 401. 402. $cartRulesIds = array_flip(array_map( 403. function ($voucher) { 404. return $voucher['id_cart_rule']; 405. }, PrestaShop\PrestaShop\Adapter\Cart\CartPresenter->present - [line 500 - classes/controller/FrontController.php] - [1 Arguments] 495. } 496. 497. protected function assignGeneralPurposeVariables() 498. { 499. $templateVars = array( 500. 'cart' => $this->cart_presenter->present($this->context->cart), 501. 'currency' => $this->getTemplateVarCurrency(), 502. 'customer' => $this->getTemplateVarCustomer(), 503. 'language' => $this->objectPresenter->present($this->context->language), 504. 'page' => $this->getTemplateVarPage(), 505. 'shop' => $this->getTemplateVarShop(), FrontControllerCore->assignGeneralPurposeVariables - [line 549 - classes/controller/FrontController.php] 544. /** 545. * Initializes common front page content: header, footer and side columns. 546. */ 547. public function initContent() 548. { 549. $this->assignGeneralPurposeVariables(); 550. $this->process(); 551. 552. if (!isset($this->context->cart)) { 553. $this->context->cart = new Cart(); 554. } FrontControllerCore->initContent - [line 89 - controllers/front/AuthController.php] 84. 'login_form' => $login_form->getProxy() 85. ]); 86. $this->setTemplate('customer/authentication'); 87. } 88. 89. parent::initContent(); 90. 91. if ($should_redirect && !$this->ajax) { 92. $back = urldecode(Tools::getValue('back')); 93. 94. if (Tools::secureReferrer($back)) { AuthControllerCore->initContent - [line 17 - override/controllers/front/AuthController.php] 12. public function initContent() 13. { 14. if ( Tools::isSubmit('submitCreate') ) { 15. Hook::exec('actionContactFormSubmitCaptcha'); 16. if ( ! sizeof( $this->context->controller->errors ) ) { 17. parent::initContent(); 18. } else { 19. $register_form = $this 20. ->makeCustomerForm() 21. ->setGuestAllowed(false) 22. ->fillWith(Tools::getAllValues()); AuthController->initContent - [line 253 - classes/controller/Controller.php] 248. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) { 249. $this->initHeader(); 250. } 251. 252. if ($this->viewAccess()) { 253. $this->initContent(); 254. } else { 255. $this->errors[] = $this->trans('Access denied.', array(), 'Admin.Notifications.Error'); 256. } 257. 258. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) { ControllerCore->run - [line 428 - classes/Dispatcher.php] 423. if (isset($params_hook_action_dispatcher)) { 424. Hook::exec('actionDispatcher', $params_hook_action_dispatcher); 425. } 426. 427. // Running controller 428. $controller->run(); 429. 430. // Execute hook dispatcher after 431. if (isset($params_hook_action_dispatcher)) { 432. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher); 433. } DispatcherCore->dispatch - [line 28 - index.php] 23. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 24. * International Registered Trademark & Property of PrestaShop SA 25. */ 26. 27. require(dirname(__FILE__).'/config/config.inc.php'); 28. Dispatcher::getInstance()->dispatch(); Pero no se por donde empezar a intentar arreglar este error. Alguien me puede ayudar? error.odtFetching info... Link to comment Share on other sites More sharing options...
ComGrafPL Posted January 15 Share Posted January 15 Prueba a deshabilitar las anulaciones. ¿La creación de pedidos funciona bien en Front? Link to comment Share on other sites More sharing options...
MODELISMO CASTELLON Posted January 15 Author Share Posted January 15 Buenos días, Donde se deshabilita eso? Los pedidos tampoco funcionan correctamente, dan errores y no se pueden hacer pedidos tampoco. Saludos 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