Hello!
I had some big problems with 4.7.0

In working with php, installed as cgi, when the value of variable
$_SERVER['SCRIPT_NAME'] is equal to /cgi-bin/php, base_path() are working
not properly and adding cgi-bin/ in front of the site's URLs.

When I use every buttons on my site (for example: Save or Upload or Submit) I have same problem with adding cgi-bin/ to link in adress field.

You could look this trouble here: http://ants.dp.ua/

Sorry of my English.
Thanks for pay attention with my message.

Comments

sun’s picture

Please have a look here, here and here.

Daniel F. Kudwien
unleashed mind

Daniel 'sun' Kudwien
makers99

Santa Claus’s picture

Thanks for links, but it's useless because settings.php is okay.
I'm using drupal about an half year and didn't had such problems.
But when I changed my drupal 4.7rc3 to release 4.7.0 I have this trouble with cgi-bin.

sun’s picture

Maybe Apache RewriteRules in base_path()/.htaccess are rewriting all of your urls to cgi-bin/php? You might have look on the commands RewriteBase and RewriteRule in there.

Just shooting your trouble. If of all of this is obvious for you please provide more information about your webserver configuration.

edit: What exactly is your $base_url? Do you have more than one site configured below sites/?

Seems like there have been major changes to generation of base_path() in bootstrap.inc since 4.7RC3. Maybe you should try to revert these changes in function conf_init() and drupal_get_filename() to rev. 1.92 in your local installation (for QA purposes only).

Daniel F. Kudwien
unleashed mind

Daniel 'sun' Kudwien
makers99

Santa Claus’s picture

Thanks for answer! But.... I revert changes in function conf_init() and drupal_get_filename to rev.1.92 and - nothing changes. So - error is still here. What can I do further to correct this, where to dig?

What exactly is your $base_url? Do you have more than one site configured below sites/?
Yeah, I have one and only one site configured below sites/

Santa Claus’s picture

The trouble was in settings.php
I didn't know that # mean :(

I had to erase # from base_url in file settings.php