Smarty error: problem writing temporary file

This is a discussion on Smarty error: problem writing temporary file within the PHP General forums, part of the PHP Programming Forums category; Hi. I'm trying to execute a very simple Smarty project on my server: foo.php -------------------------------------------------- $Smarty_class_path = "/home/my_project/...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-16-2006
francescomoi@usa.com
 
Posts: n/a
Default Smarty error: problem writing temporary file

Hi.

I'm trying to execute a very simple Smarty project on my server:

foo.php
--------------------------------------------------
$Smarty_class_path = "/home/my_project/smartylibs/Smarty.class.php";
require_once($Smarty_class_path);
$template = new Smarty;
$template->compile_dir = "/home/my_project/templates_c";
$template->template_dir = "/home/my_project/templates";
$template->display("foo.tpl");
----------------------------------------------------

foo.tpl
-------------------
HELLO
-------------------

But I get this error message, and no "HELLO" message:
-------------------
Warning: Smarty error: problem writing temporary file
'/home/my_project/templates_c/wrt4469af176498c' in
/home/my_project/smartylibs/Smarty.class.php on line 1095

Warning: fetch(): Unable to access
/home/my_project/templates_c/%%FD^FDD^FDD1139B%%foo.tpl.php in
/home/my_project/smartylibs/Smarty.class.php on line 1258

Warning:
fetch(/home/my_project/templates_c/%%FD^FDD^FDD1139B%%foo.tpl.php):
failed to open stream: No such file or directory in
/home/my_project/smartylibs/Smarty.class.php on line 1258

Warning: fetch(): Failed opening
'/home/my_project/templates_c/%%FD^FDD^FDD1139B%%foo.tpl.php' for
inclusion (include_path='.:/usr/share/pear') in
/home/my_project/smartylibs/Smarty.class.php on line 1258
-----------------------

'/home/my_project/templates_c/' is owned by 'nobody' user, and whith
777 permissions

The same code runs ok on my local PC. Does anybody know any clue in
order to know what I
am doing wrong? Thank you very much.

Reply With Quote
  #2 (permalink)  
Old 05-18-2006
Drakazz
 
Posts: n/a
Default Re: Smarty error: problem writing temporary file

You might also need to consider the permissions no /home/my_project
directory.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:24 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0