Page 1 of 1
Warning / Errors on index.php??? Admin section works fine...
Posted: Wed Sep 01, 2004 6:30 am
by jpwillms
Very strange, admin section works fine. Had a perfect install, but index.php spits out the following:
Warning: fetch(/home/directli/public_html/smarty/cms/templates_c//%%AA^AA2^AA247E45%%db%3A1.php): failed to open stream: Permission denied in /home/directli/public_html/smarty/Smarty.class.php on line 1254
Warning: fetch(): Failed opening '/home/directli/public_html/smarty/cms/templates_c//%%AA^AA2^AA247E45%%db%3A1.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/directli/public_html/smarty/Smarty.class.php on line 1254
Any clues what is going on? '/home/directli/public_html' is the proper root.... I am confused.
..jordan willms
Re: Warning / Errors on index.php??? Admin section works fin
Posted: Wed Sep 01, 2004 9:30 am
by Ted
jpwillms wrote:Warning: fetch(/home/directli/public_html/smarty/cms/templates_c//%%AA^AA2^AA247E45%%db%3A1.php): failed to open stream: Permission denied in /home/directli/public_html/smarty/Smarty.class.php on line 1254
Warning: fetch(): Failed opening '/home/directli/public_html/smarty/cms/templates_c//%%AA^AA2^AA247E45%%db%3A1.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/directli/public_html/smarty/Smarty.class.php on line 1254
I believe this is because the web server doesn't have access to write to smarty/cms/cache and smarty/cms/template_c. chmod 777 should fix that problem.
wishy
Warning / Errors on index.php??? Admin section works fine...
Posted: Tue Oct 19, 2004 7:41 am
by grendel
I believe I have a similar problem
The system path is correct, the URL isnt, it *should* be:
http://s92332057.onlinehome.us/site-name//
I did all of the chmods in the install:
userName:~/
www.mySite.com/smarty/cms > ls -ao
drwxrwxrwx 2 userName 4096 Oct 19 03:34 cache
drwxr-xr-x 2 userName 4096 Oct 11 20:18 configs
drwxr-xr-x 2 userName 4096 Oct 11 20:18 templates
drwxrwxrwx 2 userName 4096 Oct 11 20:18 templates_c
Admin works fine, as jpWilliams mentions.
I wonder if this is a bug due to symbols such as . or - in the path names :S
Edit: nope

still fails on directories w/o symbols.
Warning / Errors on index.php??? Admin section works fine...
Posted: Tue Oct 19, 2004 9:28 am
by Ted
Check your config.php. It sounds like the root_url isn't set properly. If you do change that, make sure you change the preview_path or anything else with the URL in it as well.
Warning / Errors on index.php??? Admin section works fine...
Posted: Wed Oct 20, 2004 9:05 pm
by grendel
The root_url is set to what it should be. Im going to reinstall, just incase i borked something. Im also going to put it on a real domain name this time, instead of the backup one.
Im pretty sure the error is somewhere between the chair and keyboard

Warning / Errors on index.php??? Admin section works fine...
Posted: Thu Nov 04, 2004 12:12 pm
by Marijn
I too have this problem:
Warning: Smarty error: unable to read resource: "db:/cmsms/index.php" in /var/www/html/cmsms/smarty/Smarty.class.php on line 1084
I've checked the config.php and permissions and the should be ok.
When I use the full URL:
http://www.timmerweb.com/cmsms/index.php
the page is displayed fine. The error only occurs when I ommit the index.php.
Warning / Errors on index.php??? Admin section works fine...
Posted: Fri Nov 05, 2004 4:23 pm
by sanjay
I have a similar problem:
Warning: Smarty error: unable to read resource: "db:/index.php" in /homepages/37/********/htdocs/****/smarty/Smarty.class.php on line 1084
I'm using 1and1 as the host (free previw account) - the mysql database is not 'localhost', could that have anything to do with this?
-sanjay
Warning / Errors on index.php??? Admin section works fine...
Posted: Fri Nov 05, 2004 5:25 pm
by Ted
These are all related to lines 58-61 in index.php. Please comment them out for now. I need to find a solution for this that will work on all versions of PHP, but haven't found it yet.
Warning / Errors on index.php??? Admin section works fine...
Posted: Fri Nov 05, 2004 5:26 pm
by Ted
If someone has time to help me debug this problem this weekend, please stop by the IRC channel. I'll need you to put some debug variables in index.php and then let me see the results.
Thanks!
The solution!!!
Posted: Wed Jan 19, 2005 10:47 pm
by Ivan
Had the same problem, windows 2000 server, php 4.
Give the IUSR (internet user) write pemisssion on these directories as stored in the config.php:
$config["previews_path"] = "C:\server\simplecms\tmp\cache";
$config["uploads_path"] = "C:\server\simplecms\uploads";
$config["image_uploads_path"] = "C:\server\simplecms\uploads\images";