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

Debug console not displayed

 
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
c960657
Smarty Regular


Joined: 07 May 2003
Posts: 75
Location: Copenhagen, Denmark

PostPosted: Tue Mar 30, 2004 1:16 pm    Post subject: Debug console not displayed Reply with quote

When $default_resource_type is different from "file", the debug console is not displayed. Instead I get the following error:
Quote:
Warning: Smarty error: unable to read resource: "/var/home/dr/www/smarty/debug.tpl"


This can be fixed by explicitly specifying "file:" in core/core.display_debug_console.php line 24:
Code:

     if(empty($smarty->debug_tpl)) {
         // set path to debug template from SMARTY_DIR
-        $smarty->debug_tpl = SMARTY_DIR . 'debug.tpl';
+        $smarty->debug_tpl = 'file:' . SMARTY_DIR . 'debug.tpl';
         if($smarty->security && is_file($smarty->debug_tpl)) {
             $smarty->secure_dir[] = dirname(realpath($smarty->debug_tpl));
         }
Back to top
View user's profile Send private message Visit poster's website
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Mar 30, 2004 2:37 pm    Post subject: Reply with quote

fixed in CVS, thanks.
Back to top
View user's profile Send private message Visit poster's website
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