Re: [SMARTY] problem creating directory
| From: | messju mohr | Date: | Thu, 24 Apr 2003 16:11:06 +0000 |
| Subject: | Re: [SMARTY] problem creating directory | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9374@lists.php.net to get a copy of this message | ||
On Thu, Apr 24, 2003 at 04:29:54PM +0100, Pete Morganic wrote:
> This is a really strange one...
>
> new installation of smarty 2.50 and I get the errors below
>
> I've set the $smarty->use_sub_dirs to true (even thought I'm not in safe
> mode and I want to keep the application in sub dirs anyway);
>
> error_reporting is set to all.
>
> I've chown the templates_c dir to "web" user and group
> I've chmod the dir with chmod -R +777 templates_c
>
> it does'nt give me a permission denied error
> it works on my local server great
> Its driving me nuts
>
> tia
> pete
>
> -------------------------------------------------------------------------------------------------------------
>
> Warning: Smarty error: problem creating directory
> "templates_c/%%200/%%2001463753" in
> /usr/local/home/httpd/vhtdocs/ukds/dev/tracker/includes/Smarty/Smarty.class.php
> on line 1042
these error message indicate that use_sub_dirs are definately off
(false).
are you sure you use right $smarty and the right files to set it up ?
try to set templates_c to a complete path to be sure the right
directory is used.
and (may sound stupid, if so, sorry) if you use caching, ensure the
errors you see are real error-messages and not text in a cached
template.
greetings
messju
> Warning: Smarty error: problem writing temporary file
> 'templates_c/%%200/%%2001463753/3ea7fe379c2bc' in
> /usr/local/home/httpd/vhtdocs/ukds/dev/tracker/includes/Smarty/Smarty.class.php
> on line 1042
>
> Warning: touch() [function.touch]: Unable to create file
> templates_c/%%200/%%2001463753/index.html.php because No such file or
> directory in
> /usr/local/home/httpd/vhtdocs/ukds/dev/tracker/includes/Smarty/Smarty.class.php
> on line 1575
>
> Warning: fetch(templates_c/%%200/%%2001463753/index.html.php)
> [function.fetch]: failed to create stream: No such file or directory in
> /usr/local/home/httpd/vhtdocs/ukds/dev/tracker/includes/Smarty/Smarty.class.php
> on line 1158
>
> Warning: fetch() [function.fetch]: Failed opening
> 'templates_c/%%200/%%2001463753/index.html.php' for inclusion
> (include_path='.:/opt/php-4.3/lib/php:/usr/local/include') in
> /usr/local/home/httpd/vhtdocs/ukds/dev/tracker/includes/Smarty/Smarty.class.php
> on line 1158
>
> Warning: Smarty error: problem creating directory
> "templates_c/%%519/%%519164477" in
> /usr/local/home/httpd/vhtdocs/ukds/dev/tracker/includes/Smarty/Smarty.class.php
> on line 1042
>
> Warning: Smarty error: problem writing temporary file
> 'templates_c/%%519/%%519164477/3ea7fe37b499a' in
> /usr/local/home/httpd/vhtdocs/ukds/dev/tracker/includes/Smarty/Smarty.class.php
> on line 1042
>
> Warning: touch() [function.touch]: Unable to create file
> templates_c/%%519/%%519164477/debug.tpl.php because No such file or
> directory in
> /usr/local/home/httpd/vhtdocs/ukds/dev/tracker/includes/Smarty/Smarty.class.php
> on line 1575
>
> Warning:
> _generate_debug_output(templates_c/%%519/%%519164477/debug.tpl.php)
> [function.-generate-debug-output]: failed to create stream: No such file
> or directory in
> /usr/local/home/httpd/vhtdocs/ukds/dev/tracker/includes/Smarty/Smarty.class.php
> on line 1258
>
> Warning: _generate_debug_output() [function.-generate-debug-output]:
> Failed opening 'templates_c/%%519/%%519164477/debug.tpl.php' for
> inclusion (include_path='.:/opt/php-4.3/lib/php:/usr/local/include') in
> /usr/local/home/httpd/vhtdocs/ukds/dev/tracker/includes/Smarty/Smarty.class.php
> on line 1258
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php