|
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 |
DeadEye686 Smarty n00b
Joined: 28 Feb 2004 Posts: 2
|
Posted: Sat Feb 28, 2004 11:25 pm Post subject: Smarty naming files incorrectly? |
|
|
I have recently had some users reporting some fetch() errors to me. Here is one example:
Code: | Warning: fetch(D:\\WebSites\\clancbm\\phpua\\includes/smarty/templates_c/\%%196^%%1966028461^html_header.tpl.php) [function.fetch]: failed to create stream: No such file or directory in D:\WebSites\clancbm\phpua\includes\smarty\Smarty.class.php on line 1279
Warning: fetch() [function.fetch]: Failed opening 'D:\\WebSites\\clancbm\\phpua\\includes/smarty/templates_c/\%%196^%%1966028461^html_header.tpl.php' for inclusion (include_path='.;c:\php\includes') in D:\WebSites\clancbm\phpua\includes\smarty\Smarty.class.php on line 1279
Warning: fetch(D:\\WebSites\\clancbm\\phpua\\includes/smarty/templates_c/\%%679^%%679795774^body_header.tpl.php) [function.fetch]: failed to create stream: No such file or directory in D:\WebSites\clancbm\phpua\includes\smarty\Smarty.class.php on line 1279
Warning: fetch() [function.fetch]: Failed opening 'D:\\WebSites\\clancbm\\phpua\\includes/smarty/templates_c/\%%679^%%679795774^body_header.tpl.php' for inclusion (include_path='.;c:\php\includes') in D:\WebSites\clancbm\phpua\includes\smarty\Smarty.class.php on line 1279
Warning: fetch(D:\\WebSites\\clancbm\\phpua\\includes/smarty/templates_c/\%%132^%%13265073^error.tpl.php) [function.fetch]: failed to create stream: No such file or directory in D:\WebSites\clancbm\phpua\includes\smarty\Smarty.class.php on line 1279
Warning: fetch() [function.fetch]: Failed opening 'D:\\WebSites\\clancbm\\phpua\\includes/smarty/templates_c/\%%132^%%13265073^error.tpl.php' for inclusion (include_path='.;c:\php\includes') in D:\WebSites\clancbm\phpua\includes\smarty\Smarty.class.php on line 1279
Warning: fetch(D:\\WebSites\\clancbm\\phpua\\includes/smarty/templates_c/\%%-78^%%-784865041^body_footer.tpl.php) [function.fetch]: failed to create stream: No such file or directory in D:\WebSites\clancbm\phpua\includes\smarty\Smarty.class.php on line 1279
Warning: fetch() [function.fetch]: Failed opening 'D:\\WebSites\\clancbm\\phpua\\includes/smarty/templates_c/\%%-78^%%-784865041^body_footer.tpl.php' for inclusion (include_path='.;c:\php\includes') in D:\WebSites\clancbm\phpua\includes\smarty\Smarty.class.php on line 1279
Warning: fetch(D:\\WebSites\\clancbm\\phpua\\includes/smarty/templates_c/\%%-19^%%-1935932804^html_footer.tpl.php) [function.fetch]: failed to create stream: No such file or directory in D:\WebSites\clancbm\phpua\includes\smarty\Smarty.class.php on line 1279
Warning: fetch() [function.fetch]: Failed opening 'D:\\WebSites\\clancbm\\phpua\\includes/smarty/templates_c/\%%-19^%%-1935932804^html_footer.tpl.php' for inclusion (include_path='.;c:\php\includes') in D:\WebSites\clancbm\phpua\includes\smarty\Smarty.class.php on line 1279
Line 1279 of Smarty.class.php is : include($_smarty_compile_path); |
This is witnessed on a Windows 2000 Server running IIS 5.0 and PHP 4.3.0.
However, when he goes into the templates_c/ directory, he sees the following files:
Code: | -rw-rw-rw- 1 user group 436 Feb 28 21:51 40410d7d8fa3f
-rw-rw-rw- 1 user group 436 Feb 28 21:51 40410d7d914cb
-rw-rw-rw- 1 user group 386 Feb 28 21:51 40410d7d92a09
-rw-rw-rw- 1 user group 940 Feb 28 21:51 40410d7d94da8
-rw-rw-rw- 1 user group 917 Feb 28 21:51 40410d7d97f54
-rw-rw-rw- 1 user group 122 Feb 28 21:51 40410d7d99532 |
instead of the ones Smarty is looking for (such as %%196^%%1966028461^html_header.tpl.php)
Any ideas? |
|
Back to top |
|
Duncan Smarty Pro
Joined: 16 Dec 2003 Posts: 166
|
Posted: Sat Feb 28, 2004 11:38 pm Post subject: |
|
|
If this is a reproduceable error, then you should clean out the templates_c directory and see if that fixes the issue. |
|
Back to top |
|
DeadEye686 Smarty n00b
Joined: 28 Feb 2004 Posts: 2
|
Posted: Sun Feb 29, 2004 2:44 am Post subject: |
|
|
It's reproducible, and cleaning out the templates_c/ directory resulted in the exact same thing happening. |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sun Feb 29, 2004 2:58 am Post subject: |
|
|
hmmm. Is this pervasive across all users or intermitent? Perhaps post some of the setup code. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Sun Feb 29, 2004 10:06 am Post subject: |
|
|
It seems the webserver is not able to rename the intermediate files "40410d7d9xxx" to the correct temp-files. This could be a permission problem or an installation-problem of the php-module/cgi. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Mar 03, 2004 7:41 pm Post subject: |
|
|
@DeadEye686: I'm not sure if there is a bug in smarty (a race condition) or in your installation.
Does renaming of files inside templates_c work on this host?
I mean if you run a little script, that calls creates a file "foo" and calls php's "rename('foo','bar');" does that work on that host? |
|
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
|