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

Smarty3 Fatal Error : Upgrading from 2 to 3

 
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
mehboob
Smarty Rookie


Joined: 15 Aug 2009
Posts: 8

PostPosted: Thu Mar 10, 2011 2:44 pm    Post subject: Smarty3 Fatal Error : Upgrading from 2 to 3 Reply with quote

Hey Guys,
Any help would be greatly appropriated.

Code:
Fatal error: Uncaught exception 'Exception' with message 'Unexpected input at line1: /' in /lib/sysplugins/smarty_internal_configfilelexer.php:127 Stack trace: #0 /lib/sysplugins/smarty_internal_configfilelexer.php(51): Smarty_Internal_Configfilelexer->yylex1() #1 /lib/sysplugins/smarty_internal_config_file_compiler.php(54): Smarty_Internal_Configfilelexer->yylex() #2 /lib/sysplugins/smarty_internal_config.php(221): Smarty_Internal_Config_File_Compiler->compileSource(Object(Smarty_Internal_Config)) #3 /lib/sysplugins/smarty_internal_config.php(247): Smarty_Internal_Config->compileConfigSource() #4 /lib/sysplugins/smarty_internal_data.php(255): Smarty_Internal_Config->loadConfigVars(NULL) #5 /lib/sysplugins/smarty_internal_wrapper.php(104): Smarty_Interna in /lib/sysplugins/smarty_internal_configfilelexer.php on line 127


I went through this procedure located at http://www.smarty.net/forums/viewtopic.php?p=61116 but it did not work.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu Mar 10, 2011 7:03 pm    Post subject: Reply with quote

It looks like that the editor you have used to create the config file did create a BOM (byte order mask). You should save the config file with BOM's disabled.


See also http://www.smarty.net/forums/viewtopic.php?t=18244
Back to top
View user's profile Send private message
mehboob
Smarty Rookie


Joined: 15 Aug 2009
Posts: 8

PostPosted: Mon Mar 14, 2011 8:13 pm    Post subject: Reply with quote

Hello,
I have been using Smarty 2 without any problems. Could you tell me where does the default config file is located?
Back to top
View user's profile Send private message
mehboob
Smarty Rookie


Joined: 15 Aug 2009
Posts: 8

PostPosted: Mon Mar 14, 2011 8:35 pm    Post subject: Reply with quote

Hey,
I tried again by chainging the file to ASCII and removing the BOM.

Still the following error :

Code:
Fatal error: Uncaught exception 'Exception' with message 'Unexpected input at line1: /' in /home/usr/public_html/includes/smarty/sysplugins/smarty_internal_configfilelexer.php:127 Stack trace: #0 /home/usr/public_html/includes/smarty/sysplugins/smarty_internal_configfilelexer.php(51): Smarty_Internal_Configfilelexer->yylex1() #1 /home/usr/public_html/includes/smarty/sysplugins/smarty_internal_config_file_compiler.php(54): Smarty_Internal_Configfilelexer->yylex() #2 /home/usr/public_html/includes/smarty/sysplugins/smarty_internal_config.php(221): Smarty_Internal_Config_File_Compiler->compileSource(Object(Smarty_Internal_Config)) #3 /home/usr/public_html/includes/smarty/sysplugins/smarty_internal_config.php(247): Smarty_Internal_Config->compileConfigSource() #4 /home/usr/public_html/includes/smarty/sysplugins/smarty_internal_data.php(255): Smarty_Internal_Config->loadConfigVars(NULL) #5 /home/usr/public_html/includes/smarty/sysplugins/smarty_internal_wrapper.php(104): Smarty_Interna in /home/usr/public_html/includes/smarty/sysplugins/smarty_internal_configfilelexer.php on line 127

Please help!!
Back to top
View user's profile Send private message
mehboob
Smarty Rookie


Joined: 15 Aug 2009
Posts: 8

PostPosted: Wed Mar 16, 2011 5:15 pm    Post subject: Reply with quote

Anyone here who could help me upgrade from smarty2 to smarty3? I tried the tutorial on the main page, but could not get much success.
Back to top
View user's profile Send private message
IvTurist
Smarty n00b


Joined: 31 Jul 2011
Posts: 1

PostPosted: Sun Jul 31, 2011 7:19 pm    Post subject: Reply with quote

can easily install from scratch?
Back to top
View user's profile Send private message Visit poster's website
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