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

Smarty error: unable to read resource: "index.tpl"

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


Joined: 14 Feb 2008
Posts: 1

PostPosted: Thu Feb 14, 2008 8:17 am    Post subject: Smarty error: unable to read resource: "index.tpl" Reply with quote

I've been messing with this friggin install for hours now, and I simply can't get it going.
I know PHP pretty well, but I don't understand what's going on.
I searched the forum for posts with the same subject and tried everything I could find that was relevant.

This is the error log:
Smarty error: unable to read resource: "index.tpl"

PHP Warning: file_exists(): open_basedir restriction in effect. File(../smarty/templates/index.tpl) is not within the allowed path(s):


I've not been able to get any templates to display correctly.
I've chmoded and chowned everything in the template_c, template, cahce, etc

775

What am I doing wrong? Lil' Help??!

Thanks Very Happy
Back to top
View user's profile Send private message
koejkje
Smarty Rookie


Joined: 27 Nov 2003
Posts: 30
Location: Miami, Florida

PostPosted: Sat Mar 22, 2008 12:06 am    Post subject: Reply with quote

Why is it this forum is full of people with this problem and NEVER has it been resolved. My log files too are full of this error and I have tried everything short of killing myself to resolve it.

Stary.class.php unable to read resource

*.tpl.php

everyone says chmod 777 isn't this insecure??

I hope this is not just another ignored post.
_________________
R. Stacy Cook
Edit-X :: Control Your Content
www.edit-x.com
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Sat Mar 22, 2008 12:13 am    Post subject: Reply with quote

I think the problem is mentioned right here:

Code:
PHP Warning: file_exists(): open_basedir restriction in effect. File(../smarty/templates/index.tpl) is not within the allowed path(s):


That says to me that you have PHP open_basedir restrictions on, and file_exists() can only be executed within your allowed paths, and that tpl file path is not within your allowed paths.
Back to top
View user's profile Send private message Visit poster's website
koejkje
Smarty Rookie


Joined: 27 Nov 2003
Posts: 30
Location: Miami, Florida

PostPosted: Sat Mar 22, 2008 12:46 am    Post subject: Reply with quote

I appreciate the prompt reply, obviously I am frustrated here. Here are my exact error messages and maybe it will help you. Your reply didn't make much sense...

[21-Mar-2008 19:43:09] PHP Warning: _smarty_include() [<a href='function.include'>function.include</a>]: Failed opening 'smarty/templates_c/%%605/%%605133217/cart.tpl.php' for inclusion (include_path='.:/php/includes;/usr/local/apache2/htdocs/domain.com/web/') in /usr/local/apache2/htdocs/domain.com/web/smarty/Smarty.class.php on line 1937
[21-Mar-2008 19:13:30] PHP Warning: Smarty error: unable to read resource: "article_related" in /usr/local/apache2/htdocs/domain.com/web/smarty/Smarty.class.php on line 1144
[21-Mar-2008 19:12:59] PHP Warning: touch() [<a href='function.touch'>function.touch</a>]: Utime failed: No such file or directory in /usr/local/apache2/htdocs/domain.com/web/smarty/core/core.write_compiled_resource.php on line 31
_________________
R. Stacy Cook
Edit-X :: Control Your Content
www.edit-x.com
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
koejkje
Smarty Rookie


Joined: 27 Nov 2003
Posts: 30
Location: Miami, Florida

PostPosted: Sat Mar 22, 2008 1:21 am    Post subject: Reply with quote

Are you suggesting that I need to add the complied templates folder for each virtual host to my include path in my PHP ini?
_________________
R. Stacy Cook
Edit-X :: Control Your Content
www.edit-x.com
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
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