Loading...
 
Skip to main content

Architecture / Installation


modifier.escape and embedded error

I'm trying to embed a gallery page within my tiki wiki.

After I call the embedded gallery, when I call $smarty->display I get the following in my PHP error logs.

21-Sep-2008 10:00:50 PHP Fatal error: Cannot redeclare smarty_modifier_escape() (previously declared in /home/content/g/r/e/greisz/html/tatanka2/gallery225/lib/smarty/plugins/modifier.escape.php:22) in /home/content/g/r/e/greisz/html/tatanka2/lib/smarty_tiki/modifier.escape.php on line 100

I checked the gallery embedded code and they have code to not reload modifier.escape if it's been loaded. So I assume the issue is that TikiWiki display is trying to load it after the gallery has loaded it. Where would I find the code that loads this, so I can try to keep it from loading twice.

Jon

Okay, found the error and added a work around.

I updated the core.load_plugins.php in Smarty to only load a plugin if the function doesn't exist:

code
$_plugin_func = 'smarty_' . $_type . '_' . $_name;
if (!function_exists($_plugin_func))
{
include_once $_plugin_file;
}
/code