Barsoi007 Posted October 26, 2013 Share Posted October 26, 2013 (edited) Hallo, wenn ich die Datumsanzeige unter Sprachen- auf Y-m-d umstelle, wird das Datum bei Produktverfügbarkeit in Kombinationen richtig angezeigt 00.00.0000 Installiere ich das Germanext-Modul, bekomme ich bei Aufruf der Kombination eine weisse Seite. Bin ich an das Datumsformat falsch rangegegangen? Presta Version 1.5.4.1 Germanext für 1.5.4 Default Template etwas umgebaut. (Produkte/Kategorien nebeneinander) Hier mal die Meldung vom Debug-Modus [PrestaShopException] Invalid dateat line 622 in file classes/Tools.php 616. 617. if ($date == '0000-00-00 00:00:00' || $date == '0000-00-00')618. return '';619. 620. if (!Validate::isDate($date) || !Validate::isBool($full))621. throw new PrestaShopException('Invalid date');622. 623. $context = Context::getContext();624. $date_format = ($full ? $context->language->date_format_full : $context->language->date_format_lite);625. return date($date_format, $time);626. } ToolsCore::displayDate - [line 601 - classes/Tools.php] - [3 Arguments]595. * @param object $smarty Smarty object for language preferences596. * @return string Date597. */598. public static function dateFormat($params, &$smarty)599. {600. return Tools::displayDate($params['date'], Context::getContext()->language->id, (isset($params['full']) ? $params['full'] : false));601. }602. 603. /**604. * Display date regarding to language preferences605. * ToolsCore::dateFormat - [line 240 - config/smarty.config.inc.php] - [2 Arguments]234. if($a == 0)235. $args[] = $arguments[0]; 236. else237. $args[] = &$arguments[$a]; 238. 239. return call_user_func_array($item, $args);240. }241. }242. 243. public static function getInstance()244. { SmartyLazyRegister->__call - [line - ] - [2 Arguments] SmartyLazyRegister->dateFormat - [line 264 - cache/smarty/compile/63/66/ca/6366ca49773861242c213cc5b6f4176029deb757.file.product_js_header.tpl.php] - [2 Arguments] content_52282b51917694_09782944 - [line 180 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [2 Arguments] Smarty_Internal_TemplateBase->fetch - [line 286 - tools/smarty/sysplugins/smarty_internal_template.php] - [1 Arguments] Smarty_Internal_Template->getSubTemplate - [line 76 - cache/smarty/compile/8e/cb/d1/8ecbd1be2ab44196745cada3034b4d88ed230725.file.product.tpl.php] - [7 Arguments] content_52282b514ca6f7_93946070 - [line 180 - tools/smarty/sysplugins/smarty_internal_templatebase.php] - [7 Arguments] Smarty_Internal_TemplateBase->fetch - [line 538 - classes/controller/FrontController.php] - [1 Arguments] FrontControllerCore->display - [line 185 - classes/controller/Controller.php] - [1 Arguments] ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 28 - index.php] - [0 Argument] Grüße, Sabrina Edited October 26, 2013 by Barsoi007 (see edit history) 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