This is a bit of an odd one. I followed the directions (http://drupal.org/documentation/install/multi-site) for creating sub folder multisites.

I have drupal 7.14 installed in /var/www/drupal
I then have sites in /var/www/drupal/sites/site_1 and /var/www/drupal/sites/site_2

In sites.php I have:

$sites['site_1.drupal.dev'] = 'site_1'
$sites['site_1.drupal.dev.site_2'] = 'sites_2'

This works fine but when you hit a page that runs file_scan_directory it proceeds to get itself into a recursive loop. Below is a sample of a var_dump of $dir from file_scan_directory

string './/site_2/site_2/site_2/site_2/site_2/site_2/sites/all/modules/custom_formatters/includes' (length=101)
string './/site_2/site_2/site_2/site_2/site_2/site_2/sites/all/modules/custom_formatters/plugins' (length=100)
string './/site_2/site_2/site_2/site_2/site_2/site_2/sites/all/modules/custom_formatters/plugins/export_ui' (length=110)
string './/site_2/site_2/site_2/site_2/site_2/site_2/sites/all/modules/custom_formatters/scripts' (length=100)
string './/site_2/site_2/site_2/site_2/site_2/site_2/sites/all/modules/date' (length=79)
string './/site_2/site_2/site_2/site_2/site_2/site_2/sites/all/modules/date/date_all_day' (length=92)
string './/site_2/site_2/site_2/site_2/site_2/site_2/sites/all/modules/date/date_api' (length=88)
string './/site_2/site_2/site_2/site_2/site_2/site_2/sites/all/modules/date/date_api/images' (length=95)
string './/site_2/site_2/site_2/site_2/site_2/site_2/sites/all/modules/date/date_api/theme' (length=94)

Eventually it just times out and throws the following:

https://skitch.com/digital006/e8git/bcdev.drupal.dev-8080-admin-modules

Is there anyway to stop this?

Comments

mikebell_’s picture

Status: Active » Closed (won't fix)

Advanced help is causing it.

budda’s picture

Project: Drupal core » Advanced Help
Version: 7.x-dev » 7.x-1.x-dev
Component: file system » Code
Status: Closed (won't fix) » Active

Looking in to the module code I think it's triggered via the cron run wanting to possibly update the advanced help search index advanced_help_update_index().
This in turn calls advanced_help_get_topics() -> _advanced_help_parse_ini() which kicks off a call to file_scan_directory() where it all goes wrong.

budda’s picture

Status: Active » Closed (duplicate)