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

newbie: smarty error writing tpls_c...

 
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
grmblfx
Smarty n00b


Joined: 19 Jun 2003
Posts: 2

PostPosted: Thu Jun 19, 2003 11:45 am    Post subject: newbie: smarty error writing tpls_c... Reply with quote

Hi,

I had a script running perfectly Wink 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
View user's profile Send private message
boots
Administrator


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

PostPosted: Thu Jun 19, 2003 1:36 pm    Post subject: Reply with quote

try clearing out the templates_c directory ?
Back to top
View user's profile Send private message
grmblfx
Smarty n00b


Joined: 19 Jun 2003
Posts: 2

PostPosted: Sat Jun 21, 2003 12:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
boots
Administrator


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

PostPosted: Sat Jun 21, 2003 11:46 pm    Post subject: Reply with quote

try $smarty->use_sub_dirs = false;
Back to top
View user's profile Send private message
Enquest
Smarty Regular


Joined: 14 May 2003
Posts: 79

PostPosted: Sun Jun 22, 2003 11:16 am    Post subject: Reply with quote

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
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 -> 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