Fatal error with modifiercompiler.escape.php

293 views
Skip to first unread message

Fran Dieguez

unread,
Jan 21, 2012, 2:00:45 PM1/21/12
to Smarty Developers
I'm testing Smarty 3.1.7 in my project but every time I use the
modifier escape I get this fatal error.

Fatal error: Access to undeclared static property: Smarty::$_CHARSET
in ###SMARTYPATH###/plugins/modifiercompiler.escape.php on line 30

This is the code snippet where I use the escape modifier:

{$information['title']|escape:"html"}

if I set Smarty::$_CHARSET to UTF-8 all seems to work.

uwe.tews

unread,
Jan 22, 2012, 5:30:53 AM1/22/12
to Smarty Developers
It does look like that you did not update the Smarty.class.php file

Francisco Diéguez

unread,
Jan 18, 2012, 6:04:36 PM1/18/12
to Smarty Developers

Fran Dieguez

unread,
Jan 23, 2012, 8:35:59 AM1/23/12
to smarty-d...@googlegroups.com, uwe.tews
My Smarty.class.php file and all the smarty files are directly extracted
from the tarball that I have downloaded from:
http://www.smarty.net/files/Smarty-3.1.7.tar.gz

Let me test deeper cause this error only raises in some situations and I
think that is not Smarty library related.

Thanks after all

Fran Di�guez
http://www.mabishu.com
GPG: 43DD 1B00 035F A764 4986 E695 98BB 6626 A2A4 F9B8

En 22/01/12 11:30, uwe.tews escribiu:

Reply all
Reply to author
Forward
0 new messages