Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

debugging_ctrl and debugging

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
liviu.gelea
Smarty Rookie


Joined: 25 Nov 2015
Posts: 16

PostPosted: Wed Dec 02, 2015 1:11 pm    Post subject: debugging_ctrl and debugging Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu Dec 10, 2015 5:09 am    Post subject: Reply with quote

You are right. I will get that fixed tomorrow.
Back to top
View user's profile Send private message
liviu.gelea
Smarty Rookie


Joined: 25 Nov 2015
Posts: 16

PostPosted: Thu Dec 10, 2015 9:36 am    Post subject: Thanks Reply with quote

Thanks a lot
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sun Dec 13, 2015 9:14 am    Post subject: Reply with quote

The fix is now on github in the master branch
Back to top
View user's profile Send private message
liviu.gelea
Smarty Rookie


Joined: 25 Nov 2015
Posts: 16

PostPosted: Mon Dec 14, 2015 9:40 am    Post subject: Works perfectly Reply with quote

Thanks a lot
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP