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

Smarty error: problem writing temporary file

 
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 -> Installation and Setup
View previous topic :: View next topic  
Author Message
Angel
Smarty n00b


Joined: 12 Aug 2003
Posts: 3

PostPosted: Tue Aug 12, 2003 6:03 pm    Post subject: Smarty error: problem writing temporary file Reply with quote

Code:
Warning: Smarty error: problem writing temporary file '/web/www.my_server.dk/www/smarty_test/templates_c/_smarty_cached_paths/3f392aa56b6d9' in /web/www.my_server.dk/www/smarty_test/libs/Smarty.class.php on line 1156

Warning: SAFE MODE Restriction in effect. The script whose uid is 671 is not allowed to access /web/www.my_server.dk/www/smarty_test/templates_c/_smarty_cached_paths owned by uid 502 in /web/www.my_server.dk/www/smarty_test/libs/core/core.write_compiled_resource.php on line 31

Warning: Smarty error: problem writing temporary file '/web/www.my_server.dk/www/smarty_test/templates_c/%%117/%%1172603085/3f392aa57530d' in /web/www.my_server.dk/www/smarty_test/libs/Smarty.class.php on line 1156

Warning: SAFE MODE Restriction in effect. The script whose uid is 671 is not allowed to access /web/www.my_server.dk/www/smarty_test/templates_c/%%117 owned by uid 502 in /web/www.my_server.dk/www/smarty_test/libs/core/core.write_compiled_resource.php on line 31

Warning: Unable to access /web/www.my_server.dk/www/smarty_test/templates_c/%%117/%%1172603085/index.tpl.php in /web/www.my_server.dk/www/smarty_test/libs/Smarty.class.php on line 1323

Warning: Failed opening '/web/www.psycotics.dk/www/smarty_test/templates_c/%%117/%%1172603085/index.tpl.php' for inclusion (include_path='.:/usr/local/lib/php') in /web/www.psycotics.dk/www/smarty_test/libs/Smarty.class.php on line 1323





here is my index.tpl:
Code:
{* Smarty *}

Hello, {$name}!


and my index.php:
Code:
<?
define('SMARTY_DIR','/web/www.my_server.dk/www/smarty_test/libs/');
require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty;

$smarty = new Smarty;

$$smarty->use_sub_dirs=false;

$smarty->template_dir = '/web/www.my_server.dk/www/smarty_test/templates/';
$smarty->compile_dir = '/web/www.my_server.dk/www/smarty_test/templates_c';
$smarty->config_dir = '/web/www.my_server.dk/www/smarty_test/configs/';
$smarty->cache_dir = '/web/www.my_server.dk/www/smarty_test/cache/';

$smarty->assign('name','Martin');

$smarty->display('index.tpl');

?>


the path's seems to be correct, I checked with getcwd(); - what am I doing wrong?


Last edited by Angel on Wed May 05, 2010 10:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
Angel
Smarty n00b


Joined: 12 Aug 2003
Posts: 3

PostPosted: Tue Aug 12, 2003 6:07 pm    Post subject: Reply with quote

by the way, I chmod'ed all the 4 dirs to "CHMOD 777"

I couldn't seem to do as the installation says:

chmod 777 /web/www.my_server.dk/www/smarty_test/templates_c/
this worked fine, next didnt:


chown nobody:nobody /web/www.my_server.dk/www/smarty_test/templates_c/

-i get:
500 'SITE CHOWN' not understood

-is that important?


Last edited by Angel on Wed May 05, 2010 10:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
Angel
Smarty n00b


Joined: 12 Aug 2003
Posts: 3

PostPosted: Tue Aug 12, 2003 6:09 pm    Post subject: Reply with quote

*doh* nevermind.


I changed $$smarty->use_sub_dirs=false; to $smarty->use_sub_dirs=false;

and it works now.

hope this helps others though.
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 -> Installation and Setup 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