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

Parse error : Smarty.class.php on line 575 with smarty-2.6

 
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
xyphos07
Smarty n00b


Joined: 05 Sep 2018
Posts: 2

PostPosted: Wed Sep 05, 2018 11:39 pm    Post subject: Parse error : Smarty.class.php on line 575 with smarty-2.6 Reply with quote

Hello, i 'm installing smarty in a new server and i have this error message :

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /mnt/112/sda/2/0/gestionloyer07/libs/Smarty.class.php on line 575

it's appear when y load the smarty file

require("libs/Smarty.class.php");

can you help me please ??

Thank you
Back to top
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Thu Sep 06, 2018 5:00 am    Post subject: Reply with quote

We may ask that you develop in Smarty 3, as the latest version will show which line of the template is causing the error.

Until then, it will be onerous to look through the templates looking for a possible missing closing brace.
Back to top
View user's profile Send private message
xyphos07
Smarty n00b


Joined: 05 Sep 2018
Posts: 2

PostPosted: Thu Sep 06, 2018 2:58 pm    Post subject: Reply with quote

bsmither wrote:
We may ask that you develop in Smarty 3, as the latest version will show which line of the template is causing the error.

Until then, it will be onerous to look through the templates looking for a possible missing closing brace.



I can't use the Smart 3 version because my PHP version is 4.4.3-dev and i can't update the server.

I'm using the original file so it's curious if he have a missimg closing brace
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Thu Sep 06, 2018 3:00 pm    Post subject: Reply with quote

Can't provide support for unsupported PHP versions.
http://php.net/eol.php
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