Page 1 of 1

Problem with the function "CallUserTag" (class UserTagOperations)

Posted: Tue Nov 28, 2006 8:42 am
by leweby
Hello,

function "CallUserTag" (class UserTagOperations) return a error :

Code: Select all

   if ( !@eval('function '.$functionname.'(&$params, &$smarty) {'.$code.'}') === FALSE)) 
when a UserTag is called more one times
Fatal error: Cannot redeclare tmpcallusertag_moulinette_userplugin_function() (previously declared in E:\Intranet\v4\lib\classes\class.usertagoperations.inc.php(169) : eval()'d code:1) in E:\Intranet\v4\lib\classes\class.usertagoperations.inc.php(169) : eval()'d code on line 3

I fix this problem :

   

Code: Select all

if (function_exists($functionname) ||  !(eval('function '.$functionname.'(&$params, &$smarty) {'.$code.'}') === FALSE))

Good morning

JB

-------------------
version : CMS Made Simple 1.0.2 "Maui"

Re: Problem with the function "CallUserTag" (class UserTagOperations)

Posted: Wed Dec 27, 2006 9:12 pm
by Elijah Lofgren
I can't seem to reproduce this problem on CMSMS 1.0.3 (svn). Please file a bug here if you continue to experience this problem: http://dev.cmsmadesimple.org/tracker/?f ... 6&atid=101

Thanks,

Elijah

Re: Problem with the function "CallUserTag" (class UserTagOperations)

Posted: Thu Dec 28, 2006 8:39 am
by leweby