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

Warning: Smarty error: problem creating directory

 
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 -> Bugs
View previous topic :: View next topic  
Author Message
sachincrp
Smarty n00b


Joined: 10 May 2003
Posts: 2

PostPosted: Sat May 10, 2003 2:13 am    Post subject: Warning: Smarty error: problem creating directory Reply with quote

Warning: Smarty error: problem creating directory "./smartyfiles/templates_c//%%117/%%1172603085" in /home/desiball/public_html/Smarty/Smarty.class.php on line 999

Warning: Smarty error: problem writing './smartyfiles/templates_c//%%117/%%1172603085/index.tpl.php.' in /home/desiball/public_html/Smarty/Smarty.class.php on line 999

Can anyone please help me with this? I checked out the other thread where they told me to modify _create_dir_structure function in Smarty.class.php. I dont know why i'm still receiving these errors?

Can some one please help??

here's part of my Setup.php file:

class Smarty_DesiballApp extends Smarty {

function Smarty_DesiballApp() {

// Class Constructor. These automatically get set with each new instance.

$this->Smarty();



$this->template_dir = './smartyfiles/templates/';
$this->compile_dir = './smartyfiles/templates_c/';
$this->config_dir = './smartyfiles/configs/';
$this->cache_dir = './smartyfiles/cache/';

$this->caching = false;
$this->assign('app_name','Guest Book');


}
Back to top
View user's profile Send private message Send e-mail
Santo
Smarty n00b


Joined: 10 May 2003
Posts: 1
Location: Belgium

PostPosted: Sat May 10, 2003 1:54 pm    Post subject: Reply with quote

I'm experiencing the same problem with the latest stable Smarty release (2.5.0).

Any help or insights would be greatly appreciated.
_________________
So let's do it again mami, you and a friend mami
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Sat May 10, 2003 3:16 pm    Post subject: Reply with quote

turn $smarty->use_sub_dirs to false or try to use full-paths for compile_dir.

you can configure full-paths, but keep your scripts relocatible, if you do sth. like:
define('BASEDIR', realpath(dirname(__FILE__)));
$smarty->compile_dir = BASEDIR.DIRECTORY_SEPARATOR.'templates_c';

maybe you have to emit some ".." here and there depending on your setup.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dthought
Smarty Regular


Joined: 21 Apr 2003
Posts: 55
Location: Melbourne, Australia

PostPosted: Sun May 11, 2003 8:13 am    Post subject: Reply with quote

Also, your templates_c directory must be chowned by apache.apache (or whatever your webserver is) - not sure if this will resolve your problem, but it always pays to be sure (-:
Back to top
View user's profile Send private message Visit poster's website
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 -> Bugs 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