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

Problem: Page doesn't change anymore

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


Joined: 19 Apr 2003
Posts: 23

PostPosted: Wed Dec 17, 2003 7:20 pm    Post subject: Problem: Page doesn't change anymore Reply with quote

Hi everybody,

I deleted some directories of the template_c-dir and now some pages don't display any content!

I called every thinkable smarty-function in order to force compilation, clear cache, etc., but it doesn't want to work.

If anybody knows about the problem - and how to solve it: Please help me !!
Back to top
View user's profile Send private message
boots
Administrator


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

PostPosted: Wed Dec 17, 2003 7:24 pm    Post subject: Reply with quote

Clear both your templates_c and cache dirs. If it is not working, you have introduced an error into your application and/or templates since the last compile.
Back to top
View user's profile Send private message
Dummkopf
Smarty Rookie


Joined: 19 Apr 2003
Posts: 23

PostPosted: Wed Dec 17, 2003 7:39 pm    Post subject: Reply with quote

I deleted the whole dir, but it still doesn't display anything !!

On my local system, everything is fine and the files are just uploaded ...
Back to top
View user's profile Send private message
mohrt
Administrator


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

PostPosted: Wed Dec 17, 2003 8:11 pm    Post subject: Reply with quote

Make sure both templates_c and cache directories exist, they are writable by the apache user, and the paths to these directories are setup correctly in your application.
Back to top
View user's profile Send private message Visit poster's website
Dummkopf
Smarty Rookie


Joined: 19 Apr 2003
Posts: 23

PostPosted: Wed Dec 17, 2003 8:18 pm    Post subject: Reply with quote

I just copied all the compiled files from my localhost to the server and now it displays at least something ...

But it still doesn't change the content if I change a content file.

These are included via the index.tpl with {include ...} and come from a db.

Help is still appreciated ... Wink
Back to top
View user's profile Send private message
Dummkopf
Smarty Rookie


Joined: 19 Apr 2003
Posts: 23

PostPosted: Wed Dec 17, 2003 8:44 pm    Post subject: Reply with quote

Does anybody know how to set the chmod-numbers of a directory also to all the sub-dirs ??

I think that is the solution of my probs ...
Back to top
View user's profile Send private message
Dummkopf
Smarty Rookie


Joined: 19 Apr 2003
Posts: 23

PostPosted: Wed Dec 17, 2003 9:25 pm    Post subject: Reply with quote

If anybody will ever have the same problem:

Take flashFXP - it can chmod dirs recursivly ...

With the write permissions everything works fine!
Back to top
View user's profile Send private message
mohrt
Administrator


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

PostPosted: Wed Dec 17, 2003 10:04 pm    Post subject: Reply with quote

Dummkopf wrote:
Does anybody know how to set the chmod-numbers of a directory also to all the sub-dirs ??

I think that is the solution of my probs ...


In a unix environment you do this

Code:

chmod -R [mod] /path/to/templates_c/


If you want to change _just_ the directories (no files)

Code:

find /path/to/templates_c/ -type dir -exec chmod [mod] {} \;


It would be easiest to just clean out those directories though, let the files recompile.
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 -> 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