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

the $compile_dir 'templates_c' does not exist

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


Joined: 17 Dec 2003
Posts: 2

PostPosted: Thu Dec 18, 2003 2:37 am    Post subject: the $compile_dir 'templates_c' does not exist Reply with quote

Hi,

I am installing smarty and I always have the same problem:
Fatal error: Smarty error: the $compile_dir 'templates_c' does not exist, or is not a directory. in C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\Smarty.class.php on line 1144

My directories are:
C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\cache
C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\templates
C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\templates_c
C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\configs
C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\templates\mep.tpl
C:\Document\cours_2info\php\www\Projet_pharmacie\messages\mep.php

The mep.php code is:
<?php
require('Smarty.class.php');
$mySmarty = new Smarty;
$mySmarty->template_dir= 'c:\document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\templates ';
$mySmarty->compile_dir= 'c:\document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\templates_c ';
$mySmarty->config_dir= 'c:\document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\config ';
$mySmarty->cache_dir= 'c:\document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\cache ';
...
$mySmarty->display('mep.tpl');
?>

the safe_mode in php.ini is 'off' .
the include_path =".;C:\Document\cours_2info\php\www\Projet_pharmacie\Smarty\libs\;... in php.ini

What's wrong?

Thanks for your regards,
Yvan
Back to top
View user's profile Send private message
boots
Administrator


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

PostPosted: Thu Dec 18, 2003 2:39 am    Post subject: Reply with quote

It looks like you need to replace your backslashes (\) either with forward slashes (/) or (\\) -- or use the php DIRECTORY_SEPARATOR constant for portability. Windows is a bit of a killer like that Smile

This does NOT apply to your php.ini settings which look correct as is.
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