RaWMotorsports Posted November 2, 2016 Share Posted November 2, 2016 Hello guys,I have an issue apparently related to customer as this happen only for two customer in my shop. All order of those customer when I try to enter on their order on the back office, I have the following message.AnyOne can help ? Thank you in advance [PrestaShopException]Invalid dateat line 881 in file classes/Tools.php 876. if ($date == '0000-00-00 00:00:00' || $date == '0000-00-00') {877. return '';878. }879.880. if (!Validate::isDate($date) || !Validate::isBool($full)) {881. throw new PrestaShopException('Invalid date');882. }883.884. $context = Context::getContext();885. $date_format = ($full ? $context->language->date_format_full : $context->language->date_format_lite);886. return date($date_format, $time); ToolsCore::displayDate - [line 851 - classes/Tools.php] - [3 Arguments] ToolsCore::dateFormat - [line - ] - [2 Arguments] call_user_func_array - [line 268 - config/smarty.config.inc.php] - [2 Arguments] SmartyLazyRegister->__call - [line 2272 - cache/smarty/compile/78/2b/46/782b46cca89dfb63a4b731a9928dfd4ff2158f99.file.view.tpl.php] - [2 Arguments] SmartyLazyRegister->dateFormat - [line 2272 - cache/smarty/compile/78/2b/46/782b46cca89dfb63a4b731a9928dfd4ff2158f99.file.view.tpl.php] - [2 Arguments] content_5813f9600ae240_56978651 - [line 407 - cache/smarty/compile/78/2b/46/782b46cca89dfb63a4b731a9928dfd4ff2158f99.file.view.tpl.php] - [1 Arguments] content_5813f961c55ee5_25422531 - [line 188 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [1 Arguments] Smarty_Internal_TemplateBase->fetch - [line 317 - classes/SmartyCustom.php] - [7 Arguments] Smarty_Custom_Template->fetch - [line 113 - classes/helper/Helper.php] HelperCore->generate - [line 59 - classes/helper/HelperView.php] HelperViewCore->generateView - [line 2403 - classes/controller/AdminController.php] AdminControllerCore->renderView - [line 1805 - controllers/admin/AdminOrdersController.php] AdminOrdersControllerCore->renderView - [line 2028 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 189 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 58 - admin/index.php] Link to comment Share on other sites More sharing options...
RaWMotorsports Posted November 2, 2016 Author Share Posted November 2, 2016 Prestashop 1.6.1.5 Link to comment Share on other sites More sharing options...
rocky Posted November 3, 2016 Share Posted November 3, 2016 I don't know how an invalid date was added, but you can check the orders in the ps_order table using phpMyAdmin and try to correct the date for those orders. 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