|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
r-zo Smarty n00b
Joined: 11 May 2006 Posts: 1
|
Posted: Thu May 11, 2006 10:45 am Post subject: Inclusion des plugins impossibles - safe mode activé |
|
|
Bonjour à tous,
j'espère trouver l'aide espérée directelent auprès de la communauté de Smarty car là je patauge.
j'ai le message suivant :
Code: |
Fatal error: Smarty error: [in index.html line 7]: [plugin] modifier 'replace' is not implemented (core.load_plugins.php, line 118) in /home/repertoire_commun/libs/smarty/Smarty.class.php on line 1095
|
Smarty fonctionne très bien s'il est placé dans le compte utilisateur du site à exploiter. or dans ce cas précis, j'ai mis Smarty dans un répertoire commun (qui s'apelle repertoire_commun). Le site en lui-même est dans /home/mon_site/
Pour pouvoir inclure les libs, j'ai du modifier ma config PHP en modifiant la variable 'safe_mode_include_dir' qui contient maintenant '/home/repertoire_commun/'.
D'autres librairies comme adoDB s'incluent à merveille mais là, les plugins de smarty posent des problèmes et je n'arrive pas à savoir où ?
Pour rappel le code qui génére ce message d'erreur est le suivant :
Code: |
foreach ($params['plugins'] as $_plugin_info) {
list($_type, $_name, $_tpl_file, $_tpl_line, $_delayed_loading) = $_plugin_info;
$_plugin = &$smarty->_plugins[$_type][$_name];
/*
* We do not load plugin more than once for each instance of Smarty.
* The following code checks for that. The plugin can also be
* registered dynamically at runtime, in which case template file
* and line number will be unknown, so we fill them in.
*
* The final element of the info array is a flag that indicates
* whether the dynamically registered plugin function has been
* checked for existence yet or not.
*/
if (isset($_plugin)) {
if (empty($_plugin[3])) {
if (!is_callable($_plugin[0])) {
$smarty->_trigger_fatal_error("[plugin] $_type '$_name' is not implemented", $_tpl_file, $_tpl_line, __FILE__, __LINE__);
} else {
$_plugin[1] = $_tpl_file;
$_plugin[2] = $_tpl_line;
$_plugin[3] = true;
if (!isset($_plugin[4])) $_plugin[4] = true; /* cacheable */
}
}
continue;
}
... blabla ba
|
Merci d'avance pour votre aide ou pour me donner une poste à explorer. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|