Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [SMARTY] bizzare problem
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

Report this thread to moderator Post Follow-up to this message
Old Post
Mark Rogers
10-27-04 01:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:03 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.