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

unable to read resource: "libs/debug.tpl"

 
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 -> Installation and Setup
View previous topic :: View next topic  
Author Message
coolant
Smarty Rookie


Joined: 03 May 2004
Posts: 14

PostPosted: Wed Jul 07, 2004 2:35 pm    Post subject: unable to read resource: "libs/debug.tpl" Reply with quote

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


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

PostPosted: Wed Jul 07, 2004 2:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
coolant
Smarty Rookie


Joined: 03 May 2004
Posts: 14

PostPosted: Wed Jul 07, 2004 2:47 pm    Post subject: Reply with quote

Ah! Thank you sir. Smile
Back to top
View user's profile Send private message
Pjotr
Smarty n00b


Joined: 04 Sep 2004
Posts: 2

PostPosted: Sat Sep 04, 2004 9:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Pjotr
Smarty n00b


Joined: 04 Sep 2004
Posts: 2

PostPosted: Sat Sep 04, 2004 9:58 am    Post subject: Reply with quote

Well, I just fixed it. It seems that the debugging template won't work if SMARTY_DIR is a relative path Surprised
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Sat Sep 04, 2004 10:09 am    Post subject: Reply with quote

That's correct.

http://smarty.php.net/manual/en/smarty.constants.php#constant.smarty.dir says:
"This should be the full system path to the location of the Smarty class files."

that's "full" in the sense of "absolute".
Back to top
View user's profile Send private message Send e-mail 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 -> Installation and Setup 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