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

TPL Error

 
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 -> General
View previous topic :: View next topic  
Author Message
insectis
Smarty n00b


Joined: 27 Aug 2003
Posts: 4

PostPosted: Thu Aug 28, 2003 9:33 pm    Post subject: TPL Error Reply with quote

Hey all,

I developed my TPL and PHP files locally and everything was working fine.. But when I uploaded them and tested them on the server, I got this error:

Warning: Smarty error: unable to read template resource: "../../clientaccess/clientaccess.tpl" in /var/www/html/includes/libs/Smarty.class.php on line 1042


The file structure is exactly the same on the server and my local box. The only difference is I'm running PHP 4.3.2 locally and the server has PHP 4.2.2...

Anyone know what this could be due to?

Thanks in advance!
Back to top
View user's profile Send private message
boots
Administrator


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

PostPosted: Thu Aug 28, 2003 9:44 pm    Post subject: Reply with quote

Did you remember to clear out the cache and templates_c directories?
Back to top
View user's profile Send private message
scdgro
Smarty Regular


Joined: 24 May 2003
Posts: 39
Location: Netherlands

PostPosted: Thu Aug 28, 2003 9:46 pm    Post subject: Reply with quote

Seems a bit the same to my problem.
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=983

when i use the construction to find the template bij $template_dir something are ok some not.

So i would suggest to fill in the complete path to the template file.

Please write your findings here.
Back to top
View user's profile Send private message Send e-mail
insectis
Smarty n00b


Joined: 27 Aug 2003
Posts: 4

PostPosted: Thu Aug 28, 2003 11:07 pm    Post subject: Reply with quote

Thanks for the replies!

What is was, is, Safe Mode was set to ON, and I wasn't putting the TPL files in the template folder, so Smarty didn't know where to look for them.
Back to top
View user's profile Send private message
scdgro
Smarty Regular


Joined: 24 May 2003
Posts: 39
Location: Netherlands

PostPosted: Thu Aug 28, 2003 11:34 pm    Post subject: Reply with quote

Mine is also solved now. See link in my first post .
Back to top
View user's profile Send private message Send e-mail
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 -> General 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