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

First day on Smarty. Little help please.

 
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
Gibberish
Smarty Rookie


Joined: 07 Oct 2003
Posts: 7

PostPosted: Tue Oct 07, 2003 2:45 am    Post subject: First day on Smarty. Little help please. Reply with quote

Ok so I got everything together I think, I had a database problem but I fixed that now I am getting this error and I cannot figure out why for the life of me, any help is well appreciated.

Here is the error:

Warning: Smarty error: unable to read template resource: "templates/home.tpl" in *edited* Smarty.class.php on line 1042

Now line 1042 in smart.class.php says:

trigger_error("Smarty error: $error_msg", $error_type);

So I am guessing that is just the generic error shoing up?

that resource the error is talking about is being called by this:

$smarty->display("templates/home.tpl");

which is in my index.php

There is a home.tpl in my templates folder. Any suggestions?


Thanks in advance


Last edited by Gibberish on Tue Oct 07, 2003 3:36 am; edited 1 time in total
Back to top
View user's profile Send private message
Gibberish
Smarty Rookie


Joined: 07 Oct 2003
Posts: 7

PostPosted: Tue Oct 07, 2003 3:35 am    Post subject: Reply with quote

ok I think I firgured it out. Now the error I get is this:

Warning: filemtime(): SAFE MODE Restriction in effect. The script whose uid is 10245 is not allowed to access / owned by uid 0 in *edited*Smarty.class.php on line 1650
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Tue Oct 07, 2003 4:36 am    Post subject: Reply with quote

This thread should explain it (including the solution): Smarty doesn't work with safe_mode on
Back to top
View user's profile Send private message
Gibberish
Smarty Rookie


Joined: 07 Oct 2003
Posts: 7

PostPosted: Tue Oct 07, 2003 5:11 am    Post subject: Reply with quote

yea tried all those, I either get a bunch of errors or if I do just the false one I just get it this error:

Warning: filemtime(): SAFE MODE Restriction in effect. The script whose uid is 10245 is not allowed to access / owned by uid 0 in *edited* Smarty.class.php on line 1650

this is line 1650:

$template_timestamp = filemtime($resource_name);
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 -> 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