|
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 |
coolant Smarty Rookie
Joined: 03 May 2004 Posts: 14
|
Posted: Wed Jul 07, 2004 2:35 pm Post subject: unable to read resource: "libs/debug.tpl" |
|
|
I just installed Smarty 2.6.3.
I set all my permissions correctly, but when I go to demo/ - I get the following error
Code: | Warning: Smarty error: unable to read resource: "file:../libs/debug.tpl" in ../libs/Smarty.class.php on line 1083 |
I see the rest of the document, "Title: Welcome To Smarty!, The current date and time is 2004-07-07 09:17:04, blah, blah"...but that error is curious. BTW, the file does exist and I set the permissions to 777.
Anybody got any ideas?
Last edited by coolant on Wed Jul 07, 2004 2:39 pm; edited 1 time in total |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Jul 07, 2004 2:39 pm Post subject: |
|
|
Make sure the debug.tpl file is installed directly under SMARTY_DIR (same dir as Smarty.class.php), or change its default path:
$smarty->debug_tpl = '/my/path/to/debug.tpl';
Its permissions should be something like 666 or 444, not 777 (it's not executable) |
|
Back to top |
|
coolant Smarty Rookie
Joined: 03 May 2004 Posts: 14
|
Posted: Wed Jul 07, 2004 2:47 pm Post subject: |
|
|
Ah! Thank you sir. |
|
Back to top |
|
Pjotr Smarty n00b
Joined: 04 Sep 2004 Posts: 2
|
Posted: Sat Sep 04, 2004 9:28 am Post subject: |
|
|
Hi,
I've got the same problem. Smarty 2.6.3, the debug.tpl file is directly under SMARTY_DIR, my templates are working fine, but when I try to switch debugging on, I get the same error as coolant did.
Code: | Warning: Smarty error: unable to read resource: "funkce/smarty/debug.tpl" in /funkce/smarty/Smarty.class.php on line 1083 |
I tried to set the debug_tpl and it wasn't any different. |
|
Back to top |
|
Pjotr Smarty n00b
Joined: 04 Sep 2004 Posts: 2
|
Posted: Sat Sep 04, 2004 9:58 am Post subject: |
|
|
Well, I just fixed it. It seems that the debugging template won't work if SMARTY_DIR is a relative path |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
|
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
|