Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

upgrading to 3.1

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
sirfragalot
Smarty Rookie


Joined: 31 Jul 2008
Posts: 5

PostPosted: Sun Jun 05, 2016 4:16 pm    Post subject: upgrading to 3.1 Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sun Jun 05, 2016 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
sirfragalot
Smarty Rookie


Joined: 31 Jul 2008
Posts: 5

PostPosted: Mon Jun 06, 2016 8:02 am    Post subject: Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Jun 06, 2016 11:12 am    Post subject: Reply with quote

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
View user's profile Send private message
sirfragalot
Smarty Rookie


Joined: 31 Jul 2008
Posts: 5

PostPosted: Mon Jun 06, 2016 11:24 am    Post subject: Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Jun 06, 2016 11:37 am    Post subject: Reply with quote

Denial of the problem will not solve it.
Try again.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP