Problem/Motivation
After applying a patch from https://www.drupal.org/project/acquia_connector/issues/3330332, in case local credentials are not set (acquia_identifier, acquia_key, acquia_application_uuid variables), when we try to visit the cofiguration page (admin/config), then we get following error:
TypeError: Argument 1 passed to Drupal\acquia_search\AcquiaSearchSolrMessages::getNoPreferredIndexError() must be of the type array, null given, called in /mnt/www/html/jnjnab5d1cdev/docroot/profiles/jjbos/modules/contrib/acquia_connector/acquia_search/src/v3/AcquiaSearchSolrApi.php on line 120 in Drupal\acquia_search\AcquiaSearchSolrMessages::getNoPreferredIndexError() (line 93 of /mnt/www/html/jnjnab5d1cdev/docroot/profiles/jjbos/modules/contrib/acquia_connector/acquia_search/src/AcquiaSearchMessages.php).
Comments
Comment #2
mglamanI see:
return array_keys($this->availableCores);. The propertyavailableCoresis null by default.Comment #7
alena_stanul commentedComment #8
driverok commentedMR!29 looks good to me.
After applying the above MR, there is no error, mentioned in the description.
Thanks Alena!
Comment #9
renat33 commentedHello,
I've checked the issue with the fix from @alena_stanul. There is no error on 'admin/config' page after the fix.
Comment #10
japerry