|
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 |
mehboob Smarty Rookie
Joined: 15 Aug 2009 Posts: 8
|
Posted: Thu Mar 10, 2011 2:44 pm Post subject: Smarty3 Fatal Error : Upgrading from 2 to 3 |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Mar 10, 2011 7:03 pm Post subject: |
|
|
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 |
|
mehboob Smarty Rookie
Joined: 15 Aug 2009 Posts: 8
|
Posted: Mon Mar 14, 2011 8:13 pm Post subject: |
|
|
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 |
|
mehboob Smarty Rookie
Joined: 15 Aug 2009 Posts: 8
|
Posted: Mon Mar 14, 2011 8:35 pm Post subject: |
|
|
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 |
|
mehboob Smarty Rookie
Joined: 15 Aug 2009 Posts: 8
|
Posted: Wed Mar 16, 2011 5:15 pm Post subject: |
|
|
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 |
|
IvTurist Smarty n00b
Joined: 31 Jul 2011 Posts: 1
|
Posted: Sun Jul 31, 2011 7:19 pm Post subject: |
|
|
can easily install from scratch? |
|
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
|