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 ignores $use_sub_dirs

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


Joined: 21 Apr 2004
Posts: 2

PostPosted: Wed Apr 21, 2004 4:43 pm    Post subject: smarty ignores $use_sub_dirs Reply with quote

$use_sub_dirs has been set to false in Smarty.class.php (and I have tried setting it again when creating a new smarty object), but I still get errors like this when migrating a previously working site to a new server:

Warning: Smarty error: problem writing temporary file '/home/virtual/site215/fst/var/www/html/templates_c/4086a41bf1ac7' in /home/virtual/site215/fst/var/www/html/lib/Smarty.class.php on line 1102

Warning: fetch(): Unable to access /home/virtual/site215/fst/var/www/html/templates_c/%%-30^%%-308163127^display_pointer.html.php in /home/virtual/site215/fst/var/www/html/lib/Smarty.class.php on line 1266

Warning: fetch(/home/virtual/site215/fst/var/www/html/templates_c/%%-30^%%-308163127^display_pointer.html.php): failed to open stream: No such file or directory in /home/virtual/site215/fst/var/www/html/lib/Smarty.class.php on line 1266

Warning: fetch(): Failed opening '/home/virtual/site215/fst/var/www/html/templates_c/%%-30^%%-308163127^display_pointer.html.php' for inclusion (include_path='/home/virtual/site215/fst/var/www/html/lib:/home/virtual/site215/fst/var/www/html/templates/') in /home/virtual/site215/fst/var/www/html/lib/Smarty.class.php on line 1266

any ideas? templates_c and cache have both been chown'd and chmod'd correctly, I believe.
Back to top
View user's profile Send private message
boots
Administrator


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

PostPosted: Wed Apr 21, 2004 10:30 pm    Post subject: Reply with quote

By the looks of the filenames, it appears that Smarty is observing the use_sub_dirs option. The fact that it can not write files, is another matter. Are you certain that you can write files to that location from a PHP script?

I hate to ask, but just in-case--you did empty templates_c and cache out after the migration, yes?
Back to top
View user's profile Send private message
ethangl
Smarty n00b


Joined: 21 Apr 2004
Posts: 2

PostPosted: Thu Apr 22, 2004 2:00 pm    Post subject: Reply with quote

Quote:
Are you certain that you can write files to that location from a PHP script?


I just wrote a test script using fopen and got a safe mode error... so I guess that would be it...
Back to top
View user's profile Send private message
boots
Administrator


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

PostPosted: Thu Apr 22, 2004 4:53 pm    Post subject: Reply with quote

Yup Smile

You probably have it solved by now, but if not, also try this:

http://www.phpinsider.com/smarty-forum/viewtopic.php?t=1519

Cheers!
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