|
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 |
liviu.gelea Smarty Rookie
Joined: 25 Nov 2015 Posts: 16
|
Posted: Wed Dec 02, 2015 1:11 pm Post subject: debugging_ctrl and debugging |
|
|
Hi.
I was faced with the following error:
Code: |
Call to a member function debugUrl() on a non-object in .....\smarty_internal_template.php on line 145
|
The documentation states that debugging should be off and debugging_ctrl should be "URL" in order to debug based on url parameters.
However, in smarty.class.php we only set "_debug" if $this->debugging is set to true:
Code: |
if ($this->debugging) {
$tpl->smarty->_debug = new Smarty_Internal_Debug();
} |
so the following code in smarty_internal_template can never work:
Code: | if ( !$this->smarty->debugging && ( $this->smarty->debugging_ctrl == 'URL') ) {
$this->smarty->_debug->debugUrl($this);
} |
Is this a bug or did I understand it all wrong?
Thanks |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Dec 10, 2015 5:09 am Post subject: |
|
|
You are right. I will get that fixed tomorrow. |
|
Back to top |
|
liviu.gelea Smarty Rookie
Joined: 25 Nov 2015 Posts: 16
|
Posted: Thu Dec 10, 2015 9:36 am Post subject: Thanks |
|
|
Thanks a lot |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Dec 13, 2015 9:14 am Post subject: |
|
|
The fix is now on github in the master branch |
|
Back to top |
|
liviu.gelea Smarty Rookie
Joined: 25 Nov 2015 Posts: 16
|
Posted: Mon Dec 14, 2015 9:40 am Post subject: Works perfectly |
|
|
Thanks a lot |
|
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
|