|
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 |
fabiensen Smarty n00b
Joined: 08 Sep 2014 Posts: 3
|
Posted: Mon Sep 08, 2014 9:06 am Post subject: Even if I understand the error, no chance to find where |
|
|
Hi all,
long story short: a module in Prestashop 1.6 throw a compile error. Now, the problem is that Smarty does not give me any info where to find it. Could anybody address me to the right file somehow, or at least to make a proper recursive search for something to correct, like a particular string? I see that there are problems having to do with
{*
* 2007-2014
but I have them basically everywhere, as the tpl files have this copyright... Also, I am guessing what is xC3...
Code: | Fatal error: Uncaught exception 'SmartyCompilerException' in /home/compto5/public_html/e/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /home/compto5/public_html/e/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/compto5/public_html/e/tools/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(10, '\xC3') #2 /home/compto5/public_html/e/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(10, '\xC3') #3 /home/compto5/public_html/e/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(206): Smarty_Internal_SmartyTemplateCompiler->doCompile('{*\n* 2007-2014 ...') #4 /home/compto5/public_html/e/tools/smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Smarty_Internal_Template)) #5 /home/compto5/public_html/e/tools/sma in /home/compto5/public_html/e/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667 |
|
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue Sep 09, 2014 3:58 pm Post subject: |
|
|
It looks like a charset problem and your page is UTF-8 encoded but the copyright is not. |
|
Back to top |
|
fabiensen Smarty n00b
Joined: 08 Sep 2014 Posts: 3
|
Posted: Wed Sep 10, 2014 8:35 am Post subject: Thanks, but... |
|
|
Thank you for your reply,
but I have tons of files with this scenario. Maybe you know which string I can search for? Really nothing is coming to my mind when searching for the corrupted file.
I think that this message is truncated:
/home/compto5/public_html/e/tools/sma in
here I would expect the template file giving problems.
So, can we narrow the problem in your opinion?
Thank you very much for your time!
Fabio |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Wed Sep 10, 2014 8:11 pm Post subject: |
|
|
You can set
Code: | $smarty->_paserdebug = true; |
This will out trace information while the parser is processing the template source. With this you should be able to identify the location in the source which does create the problem. |
|
Back to top |
|
fabiensen Smarty n00b
Joined: 08 Sep 2014 Posts: 3
|
Posted: Thu Sep 11, 2014 8:01 am Post subject: |
|
|
Thanks,
although I have restored the smarty debug console in Prestashop 1.6 and activated the DEV mode, I get the console up and running, but only for pages that are reachable, basically everyone, except for the one giving me this error. The console is just ignored and does not pop-up, as it has not the time to load!
I really need some other ideas... how can I debug it in some other way you know?
I hate to say that this is urgent or important, but this is today the truth
Thank you very much! |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sat Sep 13, 2014 7:27 pm Post subject: |
|
|
$smarty->_paserdebug = true;
Does not activate the normal debugging consol.
It's an undocumneted internal flag which enables a trace output from the parser during debugging. As you got an compiler generated syntax error the trace should point you in the right direction. |
|
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
|