EricPrestashop Posted March 7, 2014 Share Posted March 7, 2014 Buenos días, instalé un tema que compré en prestashop addons y cuando hago click en cualquier link o producto se me pone la pantalla en blanco, actualizo y se carga la página sin problema. Después modifiqué el defines.inc.php para ver que error salta. ( www.ecomotorbikebarcelona.com ) El Error es: Normas estrictas: Declaración de frontController :: displayHeader () debe ser compatible con el de FrontControllerCore :: displayHeader () in / home / ecomotorbikebarcelona / www / override / classes / controlador / FrontController.php on line 0 Notice: Undefined index: unifunc en / home / ecomotorbikebarcelona / www / tools / smarty / sysplugins / smarty_internal_templatebase.php on line 281 Fatal error: Nombre de la función debe ser una cadena en / home / ecomotorbikebarcelona / www / tools / smarty / sysplugins / smarty_internal_templatebase.php on line 281 El fichero smarty_internal_templatebase.php es el original que lleva mi prestashop 1.5.5 a ver si alguien puede ayudarme...gracias! Link to comment Share on other sites More sharing options...
Feliz Garcia Posted March 7, 2014 Share Posted March 7, 2014 Parece que te esta dando un error el override : /override/classes/controlador/FrontController.php ¿La plantilla te instalo ese override, o de lo instalo algun módulo o lo creastes tu? ¿Que contenido tiene ese fichero? Link to comment Share on other sites More sharing options...
EricPrestashop Posted March 7, 2014 Author Share Posted March 7, 2014 Gracias Felix Garcia por tu interés, imagino que este fichero lo instaló la plantilla, el fichero FrontController.php contiene: <?phpclass FrontController extends FrontControllerCore{ /** * @deprecated 1.5.0 */ public function displayHeader() { // This method will be removed in 1.6 Tools::displayAsDeprecated(); $this->initHeader(); $hook_header = Hook::exec('displayHeader'); if ((Configuration::get('PS_CSS_THEME_CACHE') || Configuration::get('PS_JS_THEME_CACHE')) && is_writable(_PS_THEME_DIR_.'cache')) { // CSS compressor management if (Configuration::get('PS_CSS_THEME_CACHE')) $this->css_files = Media::cccCSS($this->css_files); //JS compressor management if (Configuration::get('PS_JS_THEME_CACHE')) $this->js_files = Media::cccJs($this->js_files); } // Call hook before assign of css_files and js_files in order to include correctly all css and javascript files $this->context->smarty->assign(array( 'HOOK_HEADER' => $hook_header, 'HOOK_TOP' => Hook::exec('displayTop'), 'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''), 'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''), 'HOOK_FOOTER' => Hook::exec('displayFooter'), 'HOOK_MENUBAR' => Hook::exec('menuBar'), 'HOOK_BANNER' => Hook::exec('banner'), 'HOOK_TOPCONTENT' => Hook::exec('topContent'), 'HOOK_BOTTOMCONTENT' => Module::hookExec('bottomContent'), 'HOOK_BOTTOM' => Module::hookExec('bottom'), 'HOOK_TOPBOX' => Module::hookExec('topBox') )); $this->context->smarty->assign('css_files', $this->css_files); $this->context->smarty->assign('js_files', array_unique($this->js_files)); $this->display_header = $display; $this->smartyOutputContent(_PS_THEME_DIR_.'header.tpl'); } /** * @deprecated 1.5.0 */ public function displayFooter($display = true) { // This method will be removed in 1.6 Tools::displayAsDeprecated(); $this->smartyOutputContent(_PS_THEME_DIR_.'footer.tpl'); } public function initContent() { $this->process(); if (!isset($this->context->cart)) $this->context->cart = new Cart(); if ($this->context->getMobileDevice() == false) { // These hooks aren't used for the mobile theme. // Needed hooks are called in the tpl files. if (!isset($this->context->cart)) $this->context->cart = new Cart(); $this->context->smarty->assign(array( 'HOOK_HEADER' => Hook::exec('displayHeader'), 'HOOK_TOP' => Hook::exec('displayTop'), 'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''), 'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''), 'HOOK_MENUBAR' => Hook::exec('menuBar'), 'HOOK_BANNER' => Hook::exec('banner'), 'HOOK_TOPCONTENT' => Hook::exec('topContent'), 'HOOK_TOPBOX' => Module::hookExec('topBox'), )); $enable_custom = Configuration::get('custom_tpl'); if( $enable_custom == 'on'){ $tpl_params = new StdClass(); $tpl_params->width = Configuration::get('width'); $tpl_params->column_layout = Configuration::get('layout'); $tpl_params->LayoutStyle = Configuration::get('Otcontrol_LayoutStyle'); self::$smarty->assign('tpl_params', $tpl_params); } } else { $this->context->smarty->assign(array( 'HOOK_MOBILE_HEADER' => Hook::exec('displayMobileHeader'), )); } } public function initFooter() { $this->context->smarty->assign(array( 'HOOK_FOOTER' => Hook::exec('displayFooter'), 'HOOK_BOTTOMCONTENT' => Module::hookExec('bottomContent'), 'HOOK_BOTTOM' => Module::hookExec('bottom'), 'conditions' => Configuration::get('PS_CONDITIONS'), 'id_cgv' => Configuration::get('PS_CONDITIONS_CMS_ID'), 'PS_SHOP_NAME' => Configuration::get('PS_SHOP_NAME'), 'PS_ALLOW_MOBILE_DEVICE' => isset($_SERVER['HTTP_USER_AGENT']) && (bool)Configuration::get('PS_ALLOW_MOBILE_DEVICE') && @filemtime(_PS_THEME_MOBILE_DIR_) )); $enable_custom = Configuration::get('custom_tpl'); if( $enable_custom == 'on'){ $tpl_params = new StdClass(); $tpl_params->width = Configuration::get('width'); $tpl_params->column_layout = Configuration::get('layout'); $tpl_params->LayoutStyle = Configuration::get('Otcontrol_LayoutStyle'); self::$smarty->assign('tpl_params', $tpl_params); } }} No veo que puede estar mal...bueno gracias de antemano. Link to comment Share on other sites More sharing options...
EricPrestashop Posted March 7, 2014 Author Share Posted March 7, 2014 He probado de eliminar el fichero FrontController.php pero sigue pasando lo mismo Link to comment Share on other sites More sharing options...
Feliz Garcia Posted March 7, 2014 Share Posted March 7, 2014 (edited) Revisa este tema: http://www.prestashop.com/forums/topic/282905-error-strict-standards-declaration-of-frontcontrollerdisplayheader-should/ a ver si te puede servir.... Edited March 7, 2014 by Feliz Garcia (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts