|
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 |
Cronet Smarty Rookie
Joined: 21 May 2003 Posts: 15
|
Posted: Wed May 21, 2003 4:42 pm Post subject: Problems installing Smarty under windows... |
|
|
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 |
|
toma Smarty Regular
Joined: 25 Apr 2003 Posts: 62
|
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed May 21, 2003 5:23 pm Post subject: |
|
|
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 |
|
Back to top |
|
Cronet Smarty Rookie
Joined: 21 May 2003 Posts: 15
|
Posted: Wed May 21, 2003 8:13 pm Post subject: |
|
|
Hi there
Thanx for your replies...
$smarty->use_sub_dirs=false;
solved the problem for me ...
Greets...
Cronet |
|
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
|