Notice: Undefined index: env_id in apachesolr_settings() (line 352 of /Users/Shared/www/modules/apachesolr/apachesolr.admin.inc).
Notice: Undefined index: env_id in apachesolr_settings() (line 362 of /Users/Shared/www/modules/apachesolr/apachesolr.admin.inc).
Notice: Undefined index: env_id in apachesolr_settings() (line 370 of /Users/Shared/www/modules/apachesolr/apachesolr.admin.inc).
Notice: Undefined index: env_id in apachesolr_settings() (line 377 of /Users/Shared/www/modules/apachesolr/apachesolr.admin.inc).
Notice: Undefined index: env_id in apachesolr_settings() (line 385 of /Users/Shared/www/modules/apachesolr/apachesolr.admin.inc).
Notice: Undefined index: name in apachesolr_settings() (line 389 of /Users/Shared/www/modules/apachesolr/apachesolr.admin.inc).
Notice: Undefined index: env_id in apachesolr_settings() (line 389 of /Users/Shared/www/modules/apachesolr/apachesolr.admin.inc).
Notice: Undefined index: env_id in apachesolr_settings() (line 413 of /Users/Shared/www/modules/apachesolr/apachesolr.admin.inc).
Notice: Undefined index: service_class in apachesolr_settings() (line 423 of /Users/Shared/www/modules/apachesolr/apachesolr.admin.inc).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pwolanin’s picture

And when enabling a module:

Notice: Undefined index: name in apachesolr_facetapi_searcher_info() (line 273 of /Users/Shared/www/modules/apachesolr/apachesolr.module).
Notice: Undefined index: name in apachesolr_facetapi_searcher_info() (line 273 of /Users/Shared/www/modules/apachesolr/apachesolr.module).
Notice: Undefined index: name in apachesolr_facetapi_searcher_info() (line 273 of /Users/Shared/www/modules/apachesolr/apachesolr.module).
Notice: Undefined index: name in apachesolr_facetapi_searcher_info() (line 273 of /Users/Shared/www/modules/apachesolr/apachesolr.module).
Notice: Undefined index: name in apachesolr_facetapi_searcher_info() (line 273 of /Users/Shared/www/modules/apachesolr/apachesolr.module).
Notice: Undefined index: name in apachesolr_facetapi_searcher_info() (line 273 of /Users/Shared/www/modules/apachesolr/apachesolr.module).

Tom.Camp’s picture

Did you define an environment in your settings.php file and then define one in the Solr admin page? When I did that I received the same notices that you are getting. Once I commented out my environment in settings.php, the errors went away.

mkalkbrenner’s picture

Status: Needs work » Active

apachesolr_environment_load_subrecords() is full of undefined vars, too

no, they are defined by extract()

mkalkbrenner’s picture

Status: Active » Needs work
FileSize
755 bytes

I started some cleanup.
Here's a first patch to declare the right return type of apachesolr_entity_get_callback() for static code analyzer.

Status: Active » Needs work