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

Problems installing Smarty under windows...

 
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
Cronet
Smarty Rookie


Joined: 21 May 2003
Posts: 15

PostPosted: Wed May 21, 2003 4:42 pm    Post subject: Problems installing Smarty under windows... Reply with quote

Hi there...

I have problems installing smarty under windows...
the following message is in the error log:

Code:
PHP Warning:  Smarty error: problem creating directory "D:\web\site1\templates_c\%%117\%%1172603085" in D:\web\site1\smarty\Smarty.class.php on line 1042

PHP Warning:  Smarty error: problem writing temporary file 'D:\web\site1\templates_c\%%117\%%1172603085/3ecba9c275cc9' in D:\web\site1\smarty\Smarty.class.php on line 1042



My Config File (which I include in every .php file) looks like this:

Code:

define ( "ROOT", "D:\\web\\site1");
require( ROOT . "\\smarty\\Smarty.class.php" );
$app_root = ROOT.'\\test';

$smarty = new Smarty;
$smarty->config_dir = $app_root . "\\configs";
$smarty->template_dir = $app_root . "\\templates";
$smarty->compile_dir = ROOT . "\\templates_c";
$smarty->cache_dir = $app_root . "\\cache";
$smarty->force_compile = true;

session_start();


My ISP says that the folder site1/templates_c has write access....

The paths are correct i think... (i collected it from the phpinfo).

PHP Version 4.2.2 and Smarty 2.5.0 installed on Windows NT 5.0.
I have no access to the php.ini or the php inlcude dir...

Can anybody help me?

Greets from Germany,
Cronet


Last edited by Cronet on Tue Dec 12, 2006 3:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
toma
Smarty Regular


Joined: 25 Apr 2003
Posts: 62

PostPosted: Wed May 21, 2003 5:11 pm    Post subject: Reply with quote

Did you read the sticky thread at the top of this forum about 'unable to write temporary file'?
http://www.phpinsider.com/smarty-forum/viewtopic.php?t=191
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


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

PostPosted: Wed May 21, 2003 5:23 pm    Post subject: Reply with quote

Yes, you need to use absolute paths.

This is a really common problem -- I can't wait for messju's patch to be shaken out so that a the point release can eventually be made Wink
Back to top
View user's profile Send private message
Cronet
Smarty Rookie


Joined: 21 May 2003
Posts: 15

PostPosted: Wed May 21, 2003 8:13 pm    Post subject: Reply with quote

Hi there

Thanx for your replies...

$smarty->use_sub_dirs=false;

solved the problem for me ...


Greets...

Cronet
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