|
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 |
Eriki Smarty n00b
Joined: 14 Jan 2004 Posts: 3
|
Posted: Wed Jan 14, 2004 8:32 am Post subject: Smarty TMP dir privileges error |
|
|
Dear all,
Me and mine server are having te following errors/problems with Smarty:
After a smarty error;
for example a missing template, or
a syntax error in a template
Smarty sends out and prints the smarty error like it should, but also the following happans:
changes to the privileges of the defined Smarty temp/compile dir to drw-r--r--
After this point Smarty can't compile templates anymore, and because of this all of mine site's aren't working no longer.
Does anyone know something about this issue?
Smarty's configuration is practily standard, exept of forced_compile. This one is set to true (had some trouble with same template names)
p.s. It could be that it's not Smarty but mine FreeBSD server that's creating the problem _________________ # die(); # |
|
Back to top |
|
Eriki Smarty n00b
Joined: 14 Jan 2004 Posts: 3
|
Posted: Wed Jan 14, 2004 2:46 pm Post subject: A little solutions |
|
|
Dear All,
The problem seems to come from the fact that force_compile is set to 'true'. So something is going wrong @ writing to the tmp dir if there's an error.
My issue is still open. I need force compile because i've got more then just one site on my server.
Can anybody help? _________________ # die(); # |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Jan 14, 2004 3:02 pm Post subject: |
|
|
first: force_compile is the wrong way to solve your problem. you need to configure a distinct templates_c-directory for each templates-directory you have. everything else is plain wrong. you are just trying to cure the symptoms with force_compile.
second: i cannot reproduce the error you describe. which version of smarty do you use? |
|
Back to top |
|
Eriki Smarty n00b
Joined: 14 Jan 2004 Posts: 3
|
Posted: Wed Jan 14, 2004 3:09 pm Post subject: |
|
|
I believe i use something like 2.4.x
But i allready sollved my problem. I'd like to use force_compile zo i can use just 1 dir for al my compiled smarty templates.
The problem was created by Smarty trying to compile a undefined template. If i forgot to define a template or let the name empty, Smarty tried to use the dir in stead of a file. After failing Smarty gave the dir te file_perms, 644. And that aint working _________________ # die(); # |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Jan 14, 2004 3:26 pm Post subject: |
|
|
Eriki wrote: | I'd like to use force_compile zo i can use just 1 dir for al my compiled smarty templates. |
that's stupid. you are missing the whole point of compiling templates if you do it on each request.
the bug regarding empty filenames is fixed in 2.6.0, AFAIR. |
|
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
|