|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
sirfragalot Smarty Rookie
Joined: 31 Jul 2008 Posts: 5
|
Posted: Sun Jun 05, 2016 4:16 pm Post subject: upgrading to 3.1 |
|
|
Upgrading from v2 to v3.1, I get the error:
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/Applications/XAMPP/xamppfiles/htdocs/wikindx5/trunk/templates/default/menu.tpl" on line 5 "{menu data=$menu}" unknown tag "menu"
Line 5 in menu.tpl has:
{menu data=$menu}
menu is assigned in a .php file as:
$this->template->tpl->assign('menu', $menu);
where $menu is my (smartMenu) menu array
and
$this->template->tpl is assigned as new Smarty();
BTW -- searching on this forum for "unknown tag" produces results that do not include either of those words. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sun Jun 05, 2016 10:01 pm Post subject: |
|
|
It complains about {menu} tag itself. Not the $menu variable.
If you have any custom plugins aiding rendering, you'll have to port them over as well. |
|
Back to top |
|
sirfragalot Smarty Rookie
Joined: 31 Jul 2008 Posts: 5
|
Posted: Mon Jun 06, 2016 8:02 am Post subject: |
|
|
AnrDaemon wrote: | It complains about {menu} tag itself. Not the $menu variable.
If you have any custom plugins aiding rendering, you'll have to port them over as well. |
I have no smarty custom plugins.
I've noticed that v3.1 seems to be stricter about assign template values so have added:
{assign var=menu value=$menu|default:false}
before calling:
{menu}
Same error:
'unknown tag "menu" |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Mon Jun 06, 2016 11:12 am Post subject: |
|
|
For the second and last time. The tag itself is your problem, and the error message is rather explicit about it.
Until you stop ducking around and start investigating your codebase, you will not fix this issue. |
|
Back to top |
|
sirfragalot Smarty Rookie
Joined: 31 Jul 2008 Posts: 5
|
Posted: Mon Jun 06, 2016 11:24 am Post subject: |
|
|
AnrDaemon wrote: | For the second and last time. The tag itself is your problem, and the error message is rather explicit about it.
Until you stop ducking around and start investigating your codebase, you will not fix this issue. |
What a rude and puerile little boy/girl you are. Do us all a favour and go away. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Mon Jun 06, 2016 11:37 am Post subject: |
|
|
Denial of the problem will not solve it.
Try again. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|