Warning / Errors on index.php??? Admin section works fine...

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
jpwillms

Warning / Errors on index.php??? Admin section works fine...

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Warning / Errors on index.php??? Admin section works fin

Post 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
grendel

Warning / Errors on index.php??? Admin section works fine...

Post by grendel »

I believe I have a similar problem :(
Warning: Smarty error: unable to read resource: "db:/www.site-Name.com/index.php" in /homepages/22/accountNumber/htdocs/www.site-Name.com/smarty/Smarty.class.php on line 1084
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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Warning / Errors on index.php??? Admin section works fine...

Post by Ted »

grendel wrote:The system path is correct, the URL isnt, it *should* be: http://s92332057.onlinehome.us/site-name//
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.
grendel

Warning / Errors on index.php??? Admin section works fine...

Post 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 ;)
Marijn

Warning / Errors on index.php??? Admin section works fine...

Post 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.
sanjay
Forum Members
Forum Members
Posts: 19
Joined: Fri Oct 15, 2004 7:28 am

Warning / Errors on index.php??? Admin section works fine...

Post 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
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Warning / Errors on index.php??? Admin section works fine...

Post 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.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Warning / Errors on index.php??? Admin section works fine...

Post 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!
Ivan

The solution!!!

Post 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";
Locked

Return to “[locked] Installation, Setup and Upgrade”