PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 02-18-2004, 05:51 PM   #1
LowRdrCrzy
Green Mole
 
Join Date: Feb 2004
Posts: 3
Undefined index: SCRIPT_FILENAME

I have followed the installationg and configuration instructions found on this site but have not been able to spider my intranet or get access to /admin/install.php or /admin/index.php, all I get is a blank screen.

When I go to search.php I get the search box but above it I get the following errors:


Notice: Undefined index: SCRIPT_FILENAME in E:\inetpub\wwwroot\search\includes\config.php on line 48

Notice: Undefined index: REQUEST_URI in E:\inetpub\wwwroot\search\includes\config.php on line 48

Warning: Cannot modify header information - headers already sent by (output started at E:\inetpub\wwwroot\search\includes\config.php:48) in E:\inetpub\wwwroot\search\includes\config.php on line 293


My line 48 reads as follows:

if (eregi("config.php",$_SERVER['SCRIPT_FILENAME']) || eregi("config.php",$_SERVER['REQUEST_URI'])) {


My line 293 Reads as follows:
header("location:$relative_script_path/admin/install.php");


HELP!!!
__________________
-LowRDrCrzy
http://www.LowRdrCrzy.com
LowRdrCrzy is offline   Reply With Quote
Old 02-18-2004, 06:16 PM   #2
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Welcome to the forums, LowRdrCrzy!

Sorry to hear about your problems installing phpdig. If you can't get install.php to work for you, try creating your database and tables manually, using the instructions located here . I ended up having to do that myself.

The other thing that might trip you up is making sure that the appropriate permission is in place for those three folders listed in the documentation.

Hope this helps. If you still have problems, post back here. We'll be glad to help.
vinyl-junkie is offline   Reply With Quote
Old 02-18-2004, 06:22 PM   #3
LowRdrCrzy
Green Mole
 
Join Date: Feb 2004
Posts: 3
I did create the database manually, that is all ready to go, as far as I know the permissions are ok, but I will double check.
__________________
-LowRDrCrzy
http://www.LowRdrCrzy.com
LowRdrCrzy is offline   Reply With Quote
Old 02-19-2004, 06:21 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. The "cannot modify header information" error is likely showing because of the onscreen printing of the "undefined index" errors. The "undefined index" errors are showing because $_SERVER['SCRIPT_FILENAME'] and $_SERVER['REQUEST_URI'] are not recognized. From php.net is the following:

$_SERVER is an array containing information such as headers, paths, and script locations. The entries in this array are created by the webserver. There is no guarantee that every webserver will provide any of these; servers may omit some, or provide others not listed here. That said, a large number of these variables are accounted for in the CGI 1.1 specification, so you should be able to expect those.

One thing to try is to replace:
PHP Code:
if (eregi("config.php",$_SERVER['SCRIPT_FILENAME']) || eregi("config.php",$_SERVER['REQUEST_URI'])) { 
with the following:
PHP Code:
if (eregi("config.php",$_SERVER['SCRIPT_NAME'])) { 
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 02-19-2004, 12:52 PM   #5
LowRdrCrzy
Green Mole
 
Join Date: Feb 2004
Posts: 3
That didnt work. When I replaced that line with the one you suggested the search page redirected to the /admin/install.php page and all I got was a blank screen again.

Also, i checked the webserver security settings for those folders and they all have permission to be written to.

Still cant get the thing to work.
__________________
-LowRDrCrzy
http://www.LowRdrCrzy.com
LowRdrCrzy is offline   Reply With Quote
Old 02-19-2004, 01:16 PM   #6
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Perhaps comment out that code and then protect the config.php file with an htaccess file if your OS/setup allows.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Call to undefined function: mb_eregi() PHPfranky Troubleshooting 0 12-03-2005 06:40 AM
Undefined variable: user_agent noel Bug Tracker 6 10-30-2005 04:32 PM
Undefined Offset Notice Charter Bug Tracker 0 09-27-2004 08:11 PM
Undefined Variable: $reg blackfeather Bug Tracker 2 05-01-2004 11:02 AM
Call to undefined function: is_executable() switch Troubleshooting 3 03-13-2004 08:13 AM


All times are GMT -8. The time now is 01:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.