Closed (fixed)
Project:
Drupal core
Version:
6.19
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2010 at 21:34 UTC
Updated:
23 Jan 2013 at 02:50 UTC
This is on a fresh install using nginx+php-5.3 and fpm. The issue is with installation which gets interrupted by these notices but does continue with install. The problem is that
"Notice: Undefined index: SCRIPT_NAME in includes/bootstrap.inc on line 328"
stay on the header of the page after installation and was able to get rid off
"Notice: Undefined index: SCRIPT_NAME in includes/bootstrap.inc on line 426"
by setting $base_url in settings.php but this doesn't get rid of the first notice above.
Details:
nginx-0.8.52
php-5.3.3-r3 w/ fpm
mysql-5.1.51
P.S phpinfo(); shows correct SCRIPT_NAME location
Comments
Comment #1
damien tournoud commentedYou have configured your nginx server incorrectly, and it is not passing the correct FastCGI parameters.
Be careful, a poorly configured nginx can present serious security vulnerabilities. Be sure you know what you are doing.
Comment #2
likewhoa commentednginx is properly configured to avoid such issues stated above so it's something else.. here is what it's being used for the domain in nginx.conf
I stripped down all the custom statements on the above nginx server setting and just left what normally would be standard settings, also cgi.fix_pathinfo=0 was already set. I don't see how nginx was mis-configured here when this same setup works with php-5.2, so it must be something else maybe something with php-5.3's fpm settings?
Thanks for your input.
Comment #3
likewhoa commentedswitching to bug report since i cannot reproduce this with an older php version using fpm and same nginx settings.
Comment #4
likewhoa commentedok this has been fixed after removing a comment on
Thanks Damien for your feedback.
Comment #6
dandv commentedI've had the same issue with Drupal 7.2.
Comment #4 is vague to the point of being useless. What needs to be added to the nginx configuration in the
locationblock is:Comment #7
mymainmanbrown commentedComment #4 was actually how I was able to fix having this problem myself.
In the file he mentions,
I had a line that was commented out that was the SCRIPT_NAME definition:
Which I changed to:
I had to restart the nginx server (which I forgot how to do so I just rebooted the machine) and then it worked!
Comment #8
likewhoa commented@dandv if you paid attention to the issue title it would have given you a clue as to what line to uncomment ;)