Problem with the function "CallUserTag" (class UserTagOperations)

A place to discuss the testing process in beta cycles or against SVN for the CMS Made Simple CORE package.
Locked
leweby

Problem with the function "CallUserTag" (class UserTagOperations)

Post 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"
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

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

Post 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
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
Locked

Return to “[locked] Quality Assurance”