Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Warning: Failed opening 'templates_c

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


Joined: 28 May 2003
Posts: 2

PostPosted: Wed May 28, 2003 1:18 am    Post subject: Warning: Failed opening 'templates_c Reply with quote

Just installed Smarty today. Can't get it to work yet. I can't get past the following:
Warning: Failed opening 'templates_c\N117\N1172603085\index.tpl.php' for inclusion (include_path='C:\FoxServ\php\pear') in C:\FoxServ\www\paranormal\Smarty\Smarty.class.php on line 650

Smarty creates the compiled files & directories in templates_c folders but then can't open them.
Does this have something to do with my Pear include path??
Back to top
View user's profile Send private message
AZTEK
Smarty Pro


Joined: 16 Apr 2003
Posts: 235
Location: Purdue University

PostPosted: Wed May 28, 2003 1:37 am    Post subject: Reply with quote

Well looking at your include path it doesn't have "." which should be in there. At the top of your php file run something like.
[php:1:4b783d6e40]ini_set("include_path", ".;" . ini_get("include_path"));[/php:1:4b783d6e40]

That will add "." to your include path.
_________________
"Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane
Back to top
View user's profile Send private message Visit poster's website
jwallz
Smarty n00b


Joined: 28 May 2003
Posts: 2

PostPosted: Wed May 28, 2003 8:47 pm    Post subject: Reply with quote

It worked. Thank You.
However, I actually edited the include path in my php.ini to now read:
include_path='.;C:\FoxServ\php\pear'.
That took care of it.
Back to top
View user's profile Send private message
jirka
Guest





PostPosted: Sun Jun 01, 2003 12:57 am    Post subject: thanks man Reply with quote

it worked great ... Embarassed
Back to top
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