|
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 |
79TA462 Smarty Rookie
Joined: 12 Nov 2009 Posts: 5
|
Posted: Mon Jan 11, 2010 10:55 pm Post subject: Config File parser broke? [B4/B5/SVN] |
|
|
I'm having a problem with any of the newer smarty3 (including svn) config file parser. It's horrible? It complains about an error that doesn't exist.
this is the format of my config (over 200+ lines)
Quote: |
foo1 = "blah"
foo2 = "blah blah"
foo_something = "blah blah $i"
|
I've even tried adding a complete blank line between each line, still same error. Ive checked for blank spaces after the end quote, but their is none.
This is the error I receive. If i put a comment on that line, than push the actual good line down, it seems to OK it, and skip to the next random error...
Quote: |
- Unexpected "=", expected one of: ID , NEWLINE , COMMENTSTART' in /var/www/libs/sysplugins/smarty_internal_config_file_compiler.php:109
|
or has the syntax changed?
EDIT: Seems Smarty v3 beta2 works, but 3,4,5, and SVN do not with the same config files?
Thanks. |
|
Back to top |
|
ChrisFah Smarty Pro
Joined: 02 Nov 2009 Posts: 159 Location: Traun, Austria
|
Posted: Tue Jan 12, 2010 12:41 pm Post subject: |
|
|
I think, there was a similar problem some weeks ago.
Try a blank line at the end of the config file.
Regards, Chris |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue Jan 12, 2010 8:27 pm Post subject: |
|
|
I can't reproduce the problem.
Could you please retry with the latest SVN version? |
|
Back to top |
|
79TA462 Smarty Rookie
Joined: 12 Nov 2009 Posts: 5
|
Posted: Tue Jan 12, 2010 8:59 pm Post subject: |
|
|
Switching from beta2 to latest SVN yields the error:
All i did was switch libs dir.
Quote: |
" - Unexpected "=", expected one of: ID , NEWLINE , COMMENTSTART' in /var/www/libs/sysplugins/smarty_internal_config_file_compiler.php:109 Stack trace: #0 /var/www/libs/sysplugins/smarty_internal_configfileparser.php(756): Smarty_Internal_Config_File_Compiler->trigger_config_file_error() #1 /var/www/libs/sysplugins/smarty_internal_configfileparser.php(821): Smarty_Internal_Configfileparser->yy_syntax_error(5, '=') #2 /var/www/libs/sysplugins/smarty_internal_config_file_compiler.php(56): Smarty_Internal_Configfileparser->doParse(5, '=') #3 /var/www/libs/sysplugins/smarty_internal_config.php(206): Smarty_Internal_Config_File_Compiler->compileSource(Object(Smarty_Internal_Config)) #4 /var/www/libs/sysplugins/smarty_internal_config.php(187): Smarty_Internal_Config->compileConfigSource() #5 /var/www/libs/sysplugins/smarty_internal_config.php(232): Smarty_In in /var/www/libs/sysplugins/smarty_internal_config_file_compiler.php on line 1
|
|
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue Jan 12, 2010 10:16 pm Post subject: |
|
|
The config file parser did fail on large config files.
The fix is in the SVN now. |
|
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
|