|
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 |
mstdmstd Smarty Rookie
Joined: 04 Jan 2013 Posts: 20
|
Posted: Mon Aug 11, 2014 3:00 pm Post subject: I want more info in case of smarty error |
|
|
Hallo,
If in my smarty template there is error like undefined var, I get error like :
Code: | A PHP Error was encountered
Severity: Notice
Message: Undefined index: PriUUcing
Filename: sysplugins/smarty_internal_templatebase.php(157) : eval()'d code
Line Number: 87
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: sysplugins/smarty_internal_templatebase.php(157) : eval()'d code
Line Number: 87
|
The problem is that in this error name of tpl file and line of error are not shown.If there is a way to show it ?
Also if in this error can I show output of debug_backtrace function ?
Thanks! |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Aug 11, 2014 5:16 pm Post subject: |
|
|
Sorry, currently there is no solution for tracing the PHP E_NOTICE error back to the template source file and line number.
This is already on the TODO list for the next major release of Smarty but at this time I have no date for it. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Mon Aug 11, 2014 9:45 pm Post subject: |
|
|
Start using PHP debuggers already... There's several out in the webs. |
|
Back to top |
|
mstdmstd Smarty Rookie
Joined: 04 Jan 2013 Posts: 20
|
Posted: Tue Aug 12, 2014 3:28 am Post subject: |
|
|
AnrDaemon wrote: | Start using PHP debuggers already... There's several out in the webs. | Please, mention which ones are good for this ? |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Aug 12, 2014 2:16 pm Post subject: |
|
|
Anything you can get used to. They all have similar capabilities. |
|
Back to top |
|
mstdmstd Smarty Rookie
Joined: 04 Jan 2013 Posts: 20
|
Posted: Wed Aug 13, 2014 2:14 pm Post subject: |
|
|
AnrDaemon wrote: | Anything you can get used to. They all have similar capabilities. |
I use xdebug, it helps in many cases, but not with smarty errors.
If there are some tools with show more info with smarty, please, write. |
|
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
|