Re: [Tiki-devel] Call to undefined method in fresh installed 27.2

Jonny Bradley via TikiWiki-devel <[email protected]> Wed, 28 May 2025 17:35:47 +0100
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hi Karsten

Looks like that has been fixed (i.e. removed) since 27.2 was released but no new version has been released yet sadly.

   https://gitlab.com/tikiwiki/tiki/-/commit/406bea4f

So for now just put it back to how is was in 27.1 or indeed how it is now in get, here:

   https://gitlab.com/tikiwiki/tiki/-/blob/27.x/lib/wiki-plugins/wikiplugin_includetpl.php?ref_type=heads

Sorry about that, hope this gets you going again!

jonny



> On 28 May 2025, at 16:50, Karsten Wemheuer via TikiWiki-devel <[email protected]> wrote:
> 
> Hi,
> 
> I just do a fresh install of Tiki 27.2 LTS.
> 
> I got this error message
>  Call to undefined method TikiLib::sanitizeEvalExpression() 
> 
> 
> As I understand it, line 56 in file lib/wiki-
> plugins/wikiplugin_includetpl.php is the cause.
> 
> I checked the previous version and see this diff between 27.1 and 27.2.
> 
> --- tiki-27.1/lib/wiki-plugins/wikiplugin_includetpl.php
> +++ tiki-27.2/lib/wiki-plugins/wikiplugin_includetpl.php
> @@ -53,5 +53,5 @@
>    }
> 
>    $smarty->assign('values', $defvalues);
> -    return $smarty->fetch($params["filename"]);
> +    return $smarty-
>> fetch(TikiLib::sanitizeEvalExpression($params["filename"]));
> }
> 
> I can not find the method TikiLib::sanitizeEvalExpression in the tar
> ball of 27.2. How can I to fix this?
> 
> Thank you for any advice!
> 
> Best regards
> Karsten
> 
> 
> 
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel