Re: [SMARTY] bizzare problem

From: Date: Wed, 27 Oct 2004 12:41:13 +0000
Subject: Re: [SMARTY] bizzare problem
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11926@lists.php.net to get a copy of this message
PeteM writes: > I keep getting this spurios error on a site > > Warning: _smarty_include(): Failed opening > 'templates_c/%%177^%%1774593520^testing.inc.html.php' for inclusion > (include_path='.:/opt/php-4.3/lib/php:/usr/local/include:/www/vhtdocs/ukds/ > > Happens ocassionally maybe 1 in 20 pages - hitting refresh clears the > error ?? Which PHP version? Is the include_path listed correct (ie should the file be there? Is it there?) There was a bug in some older PHP versions which meant that PHP settings set in one Apache virtual host (eg the include path) carry across to other vhosts. If the include_path is wrong, that's somewhere to look. Also I've seen file access permissions change in strange ways under similar circumstances, such that compiled templates are written but cannot later be read or overwritten, so look for strange permissions or ownserships in the templates_c directory. I suspect that the path is correct, in which case Messju's comments may be more appropriate. For test purposes, try dumping the output from 'ls -la /www/vhtdocs/ukds/templates_c' to your page immediately before you load the problematic template, and see what's actually there before the include fails. -- Mark Rogers, More Solutions Ltd

« previous php.smarty.general (#11926) next »