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

Unexpected ";", expected one of: "}"

 
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 -> Smarty Development
View previous topic :: View next topic  
Author Message
semi
Smarty n00b


Joined: 08 Sep 2017
Posts: 2

PostPosted: Fri Sep 08, 2017 6:19 pm    Post subject: Unexpected ";", expected one of: "}" Reply with quote

So the line below triggers this error from smarty
That if statement seems to trigger the error

Code:
{if is_array($data.page_images[0]) && count($data.page_images[0]) > 0 }





The error thrown by smart is this one

Quote:
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "string:{nocache}<!DOCTYPE html> <html lang="en"..." on line 266 "{if is_array($data.page_images[0]) &amp;&amp; count($data.page_images[0]) &gt; 0 }" - Unexpected ";", expected one of: "}" <-- thrown in

Can someone please help ?
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Mon Sep 11, 2017 3:13 pm    Post subject: Reply with quote

Please don't multi-post.
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 -> Smarty Development 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