ghostfr Posted December 1, 2014 Share Posted December 1, 2014 un client a un bug quand je le sélectionne en Back office voici le DEBUG il est clair qu'il y'a un problème de date mais comment le résoudre? Merci 1000x greg [PrestaShopException]Invalid dateat line 663 in file classes/Tools.php 657.658. if ($date == '0000-00-00 00:00:00' || $date == '0000-00-00')659. return '';660.661. if (!Validate::isDate($date) || !Validate::isBool($full))662. throw new PrestaShopException('Invalid date');663.664. $context = Context::getContext();665. $date_format = ($full ? $context->language->date_format_full : $context->language->date_format_lite);666. return date($date_format, $time);667. } ToolsCore::displayDate - [line 637 - classes/Tools.php] - [3 Arguments] ToolsCore::dateFormat - [line - ] - [2 Arguments] call_user_func_array - [line 241 - config/smarty.config.inc.php] - [2 Arguments] SmartyLazyRegister->__call - [line 461 - cache/smarty/compile/4d/d6/5f/4dd65f73413942fcc72168b1d81a4db9818eb0df.file.view.tpl.php] - [2 Arguments] SmartyLazyRegister->dateFormat - [line 461 - cache/smarty/compile/4d/d6/5f/4dd65f73413942fcc72168b1d81a4db9818eb0df.file.view.tpl.php] - [2 Arguments] content_547c67842616b7_46561229 - [line 180 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [1 Arguments] Smarty_Internal_TemplateBase->fetch - [line 114 - classes/helper/Helper.php] HelperCore->generate - [line 59 - classes/helper/HelperView.php] HelperViewCore->generateView - [line 2051 - classes/controller/AdminController.php] AdminControllerCore->renderView - [line 820 - controllers/admin/AdminCustomersController.php] AdminCustomersControllerCore->renderView - [line 1758 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 190 - controllers/admin/AdminCustomersController.php] AdminCustomersControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Link to comment Share on other sites More sharing options...
nympheur Posted December 1, 2014 Share Posted December 1, 2014 Bonjour Avez vous essayé de vider les différents caches via FTP? Sous quelle version de Prestashop êtes vous? 1 Link to comment Share on other sites More sharing options...
ghostfr Posted December 1, 2014 Author Share Posted December 1, 2014 (edited) merci de m aider avant tout jsuis sur 1.607 vider les caches via ftp? elles sont ou? ok trouvé des caches mais les quelles je vide? Edited December 1, 2014 by ghostfr (see edit history) Link to comment Share on other sites More sharing options...
nympheur Posted December 1, 2014 Share Posted December 1, 2014 Sur votre serveur FTP : à la racine vous avez tout un tas de dossier et fichiers admin cache classe etc... vous rentrez dans le dossier caches vous rentrez dans le sous dossier SMARTY et là vous trouverez 2 dossiers CACHE et COMPILE vous supprimez tout ce qu'il y à l'intérieur à l’exception de L'INDEX.PHP Faites cette opération dans ces 2 dossiers, supprimez le cache de votre ou vos navigateurs et rechargez votre page Link to comment Share on other sites More sharing options...
ghostfr Posted December 1, 2014 Author Share Posted December 1, 2014 (edited) bon idem le dossier cache est vide mais jai pas encore vidé compile je fais now En fait je ne trouve pas compile !!!?? [PrestaShopException] Invalid dateat line 663 in file classes/Tools.php 657.658. if ($date == '0000-00-00 00:00:00' || $date == '0000-00-00')659. return '';660.661. if (!Validate::isDate($date) || !Validate::isBool($full))662. throw new PrestaShopException('Invalid date');663.664. $context = Context::getContext();665. $date_format = ($full ? $context->language->date_format_full : $context->language->date_format_lite);666. return date($date_format, $time);667. } ToolsCore::displayDate - [line 637 - classes/Tools.php] - [3 Arguments] ToolsCore::dateFormat - [line - ] - [2 Arguments] call_user_func_array - [line 241 - config/smarty.config.inc.php] - [2 Arguments] SmartyLazyRegister->__call - [line 461 - cache/smarty/compile/4d/d6/5f/4dd65f73413942fcc72168b1d81a4db9818eb0df.file.view.tpl.php] - [2 Arguments] SmartyLazyRegister->dateFormat - [line 461 - cache/smarty/compile/4d/d6/5f/4dd65f73413942fcc72168b1d81a4db9818eb0df.file.view.tpl.php] - [2 Arguments] content_547cb283a1ec88_92888116 - [line 180 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [1 Arguments] Smarty_Internal_TemplateBase->fetch - [line 114 - classes/helper/Helper.php] HelperCore->generate - [line 59 - classes/helper/HelperView.php] HelperViewCore->generateView - [line 2051 - classes/controller/AdminController.php] AdminControllerCore->renderView - [line 820 - controllers/admin/AdminCustomersController.php] AdminCustomersControllerCore->renderView - [line 1758 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 190 - controllers/admin/AdminCustomersController.php] AdminCustomersControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Edited December 1, 2014 by ghostfr (see edit history) Link to comment Share on other sites More sharing options...
ghostfr Posted December 1, 2014 Author Share Posted December 1, 2014 En fait dans CACHE il y avait smarty et dans smarty il y avait cache et compile?? bon j'avais fais une boulette mais comme j'avais déplacé les autres dossier je les ai remis bon idem le dossier cache est vide mais jai pas encore vidé compile je fais now En fait je ne trouve pas compile !!!?? [PrestaShopException] Invalid dateat line 663 in file classes/Tools.php 657.658. if ($date == '0000-00-00 00:00:00' || $date == '0000-00-00')659. return '';660.661. if (!Validate::isDate($date) || !Validate::isBool($full))662. throw new PrestaShopException('Invalid date');663.664. $context = Context::getContext();665. $date_format = ($full ? $context->language->date_format_full : $context->language->date_format_lite);666. return date($date_format, $time);667. } ToolsCore::displayDate - [line 637 - classes/Tools.php] - [3 Arguments] ToolsCore::dateFormat - [line - ] - [2 Arguments] call_user_func_array - [line 241 - config/smarty.config.inc.php] - [2 Arguments] SmartyLazyRegister->__call - [line 461 - cache/smarty/compile/4d/d6/5f/4dd65f73413942fcc72168b1d81a4db9818eb0df.file.view.tpl.php] - [2 Arguments] SmartyLazyRegister->dateFormat - [line 461 - cache/smarty/compile/4d/d6/5f/4dd65f73413942fcc72168b1d81a4db9818eb0df.file.view.tpl.php] - [2 Arguments] content_547cb283a1ec88_92888116 - [line 180 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [1 Arguments] Smarty_Internal_TemplateBase->fetch - [line 114 - classes/helper/Helper.php] HelperCore->generate - [line 59 - classes/helper/HelperView.php] HelperViewCore->generateView - [line 2051 - classes/controller/AdminController.php] AdminControllerCore->renderView - [line 820 - controllers/admin/AdminCustomersController.php] AdminCustomersControllerCore->renderView - [line 1758 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 190 - controllers/admin/AdminCustomersController.php] AdminCustomersControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Link to comment Share on other sites More sharing options...
ghostfr Posted December 1, 2014 Author Share Posted December 1, 2014 maintenant smarty est vide le dossier index.php était avant dans le dossier cache et je ne lai pas touché mais dans le dossier Cache racine (pas celui de Smarty) il y'a bien autres caches : /cache/cachefs /Shopmc/cache/class_index.php /Shopmc/cache/index.php //www/Shopmc/cache/purifier /www/Shopmc/cache/push www/Shopmc/cache/sandbox //www/Shopmc/cache/smarty /www/Shopmc/cache/tcpdf 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