|
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 |
grmblfx Smarty n00b
Joined: 19 Jun 2003 Posts: 2
|
Posted: Thu Jun 19, 2003 11:45 am Post subject: newbie: smarty error writing tpls_c... |
|
|
Hi,
I had a script running perfectly Now I made some changes in the template and PHP-code and (while it still works on my local apache) after uploading I get the message:
"Warning: Smarty error: problem writing 'tpls_c/%%-19/%%-1951166846/myweeks.tpl.php.' in [...]Smarty.class.php on line 1021"
The attributes/permissions for the directory and files are set correctly (it worked before!), and I have no idea what could be the reason for this message.
Line 1021 is the following
function trigger_error($error_msg, $error_type = E_USER_WARNING)
{
trigger_error("Smarty error: $error_msg", $error_type);
}
which doesn't really help...
Any ideas are welcome!
Daniel |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Thu Jun 19, 2003 1:36 pm Post subject: |
|
|
try clearing out the templates_c directory ? |
|
Back to top |
|
grmblfx Smarty n00b
Joined: 19 Jun 2003 Posts: 2
|
Posted: Sat Jun 21, 2003 12:58 pm Post subject: |
|
|
I did this. I deleted all files in the directory, but it still doesn't work.
I now tested the most simple smarty-programm possible, but still i get this message. So it's not a problem of my script, but a more fundamental thing ;-/ It seems to be a server-problem, but I don't know where to look for.
Daniel |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sat Jun 21, 2003 11:46 pm Post subject: |
|
|
try $smarty->use_sub_dirs = false; |
|
Back to top |
|
Enquest Smarty Regular
Joined: 14 May 2003 Posts: 79
|
Posted: Sun Jun 22, 2003 11:16 am Post subject: |
|
|
Look at the chmod setting of your template_c dir. Make it on your testing machine.
Code: |
chmod 777 -R template_c
|
_________________ -----------------------
Learning my self by trying to help others |
|
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
|