Jump to content

Recommended Posts

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

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

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

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

×
×
  • Create New...