Chespiro Posted January 30, 2012 Share Posted January 30, 2012 Hello everyone, Yesterday, by error, I changed the smarty preference from version 3 to 2. The problem is that I can't have any kind of acces to the backoffice to change that property back. I want to get the things running but i don't know what file i have to modify to have acces again. The error i'm receiving every time i try to acces is the following: Warning: require_once(/home/content/94/8241994/html/tools/smarty_v2/Smarty.class.php) [function.require-once]: failed to open stream: No such file or directory in/home/content/94/8241994/html/config/smarty.config.inc.php on line 33 Fatal error: require_once() [function.require]: Failed opening required '/home/content/94/8241994/html/tools/smarty_v2/Smarty.class.php' (include_path='.:/usr/local/php5/lib/php') in/home/content/94/8241994/html/config/smarty.config.inc.php on line 33 Thanks. Link to comment Share on other sites More sharing options...
musicmaster Posted January 30, 2012 Share Posted January 30, 2012 The setting is in the configuration table of the database. Changing this is the most direct way. You might also consider (temporarily) editing the "smarty.config.inc.php" file in the config directory. There is the line that sets the directory: if (Configuration::get('PS_FORCE_SMARTY_2')) define('_PS_SMARTY_DIR_', _PS_TOOL_DIR_.'smarty_v2/'); else define('_PS_SMARTY_DIR_', _PS_TOOL_DIR_.'smarty/'); I hope this helps you find your way. Link to comment Share on other sites More sharing options...
Chespiro Posted January 30, 2012 Author Share Posted January 30, 2012 Thanks musicmaster but i still cannot solve the problem. When you talk about the table of the database are do you mean the config.inc file? This is the configuration of *Smarty* i have in it. /* Smarty */ require_once(dirname(__FILE__).'/smarty.config.inc.php'); /* Possible value are true, false, 'URL' (for 'URL' append SMARTY_DEBUG as a parameter to the url) default is false for production environment */ define('SMARTY_DEBUG_CONSOLE', false); What exactly do you suggest should be the replacement in the smarty.config.inc.php you mentioned? Actually it seems that the configuration is "correct" because i reinstalled a backup i had in my pc with the old configuration, but the error keeps appearing, and it al begun when i made the mistake of changing the preference from smarty v3 to smarty v2. What can you suggest? Link to comment Share on other sites More sharing options...
musicmaster Posted January 30, 2012 Share Posted January 30, 2012 If you don't know what a database is you are in trouble and might better consult someone who does. If you can't find one editing the "smarty.config.inc.php" is your only option: remove the first three of the four lines I quoted in my previous post. After that the BO should start correctly and you should be able to correct the Smarty setting. After you have done this you restore the "smarty.config.inc.php" file to its old setting. Link to comment Share on other sites More sharing options...
Chespiro Posted January 31, 2012 Author Share Posted January 31, 2012 Thanks, just one last question. What field and table do i have to change in the database? Thanks Link to comment Share on other sites More sharing options...
Chespiro Posted February 1, 2012 Author Share Posted February 1, 2012 Okay, problem solved by modifying the smarty setting in the configuration table of the database as it was told in the first comment. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts