gormmo Posted September 16, 2014 Share Posted September 16, 2014 Hi. We have a problem with our webshop. Suddenly the site stopped working and the Fatal error appeared. We use Prestashop 1.4. We had a backup rolled out yesterday and the site worked fine. And then this morning it appeared blank again. We cannot get into the backend either. I tried to replace the file in mention with the original one form Prestashop but since the file has'nt been modified by any of us the result came up negative. Does anyone know what the problem might be? The site is the following: www.bhd.dk/webshop Thank you. Link to comment Share on other sites More sharing options...
vekia Posted September 16, 2014 Share Posted September 16, 2014 it's necessary to inspect file can you share its contents here, please? Link to comment Share on other sites More sharing options...
gormmo Posted September 16, 2014 Author Share Posted September 16, 2014 Hi Vekia. Sure thing. ------------------------- <?php /* * 2007-2012 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 14006 $ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class IndexControllerCore extends FrontController { public function __construct() { $this->php_self = Configuration::get('PS_HOMEPAGE_PHP_SELF'); parent::__construct(); } public function process() { parent::process(); self::$smarty->assign('HOOK_HOME', Module::hookExec('home')); } public function displayContent() { parent::displayContent(); self::$smarty->display(_PS_THEME_DIR_.'index.tpl'); } } ------------------------------------ Thank you. Link to comment Share on other sites More sharing options...
vekia Posted September 16, 2014 Share Posted September 16, 2014 try to reupload original file: /classes/frontController.php Link to comment Share on other sites More sharing options...
GERO4KA Posted February 2, 2016 Share Posted February 2, 2016 Hello Vekia! I have a similar problem like a gormmo. My front office show me a beautiful WHITE page. And error is Fatal error: Class 'FrontController' not found in /home/*******/www/controllers/front/IndexController.php on line 28 class IndexControllerCore extends FrontController { public $php_self = 'index'; /** * Assign template vars related to page content * @see FrontController::initContent() */ public function initContent() { parent::initContent(); $this->addJS(_THEME_JS_DIR_.'index.js'); $this->context->smarty->assign(array('HOOK_HOME' => Hook::exec('displayHome'), 'HOOK_HOME_TAB' => Hook::exec('displayHomeTab'), 'HOOK_HOME_TAB_CONTENT' => Hook::exec('displayHomeTabContent') )); $this->setTemplate(_PS_THEME_DIR_.'index.tpl'); } } I tried ur solution but it didn't work. Could u please help me?) thank u Link to comment Share on other sites More sharing options...
yutherink Posted October 30, 2016 Share Posted October 30, 2016 Buen día a todos. Tengo el mismo problema. Cuando cargo mi página me sale lo siguiente: PHP Fatal error: Class 'FrontController' not found in G:\PleskVhosts\midominio.com\httpdocs\controllers\front\IndexController.php on line 28 Ya cargué varias veces el archivo original y no me funciona. Así es la estructura del mismo: class FrontControllerCore extends Controller { public $errors = array(); /** * @deprecated Deprecated shortcuts as of 1.5 - Use $context->var instead */ protected static $smarty, $cookie, $link, $cart; public $iso; public $orderBy; public $orderWay; public $p; public $n; public $auth = false; public $guestAllowed = false; public $authRedirection = false; public $ssl = false; protected $restrictedCountry = false; protected $maintenance = false; public $display_column_left = true; public $display_column_right = true; public static $initialized = false; protected static $currentCustomerGroups; public $nb_items_per_page; public function __construct() { $this->controller_type = 'front'; global $useSSL; parent::__construct(); Agradezco me puedan ayudar éste año. Link to comment Share on other sites More sharing options...
Recommended Posts