Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
ArgumentCountError: Too few arguments to function Solarium\Core\Client\Client::__construct(), 0 passed in docroot\modules\contrib\acquia_connector\acquia_search\src\Plugin\SolrConnector\SearchApiSolrAcquiaConnector.php on line 189 and at least 2 expected in Solarium\Core\Client\Client->__construct() (line 277 of D:\Projects\P-KWALL\P-ERWC\vendor\solarium\solarium\src\Core\Client\Client.php).
Steps to reproduce
- Step1:- Update Acquia Connector to latest version which is 8.x-1.26
- Step2:- Update Search API to latest version which is search_api_solr 1.10.0
- Step3:- Go to status report page /admin/reports/status
Comment | File | Size | Author |
---|---|---|---|
#7 | 3209105.patch | 400 bytes | mkalkbrenner |
Issue fork search_api_solr-3209105
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
japerryThis is an issue in Search API Solr, it looks like composer.json isn't configured right, because 1.10 says its compatible with Acquia Connector 1.25+. This is false. If you're using Acquia Connector 8.x-1.x with Acquia Search, you must use Search API Solr 8.x-1.7. All newer versions of Search API Solr 8.x-1.x require Acquia Connector 3.x and Acquia Search 2.x
Remaining task:
Update composer.json to fix the conflict clause.
Comment #3
mkalkbrennerCan you provide a patch?
Comment #4
mkalkbrennerI would prefer to remove the compatibility statement entirely as it just was a temporary workaround.
Comment #5
DamienMcKennaThis is a problem with the Acquia search module that shows up because Search API Solr 8.x-1.x was updated to Solarium 6, the Pantheon module has the same problem in #3197199: Compatibility with Solarium 6 and Search API Solr 8.x-1.8+. This should be moved to the Acquia search module's issue queue and worked on there.
Comment #6
DamienMcKennaComment #7
mkalkbrennerAll these Acquia modules are very confusing ;-)
Comment #9
mkalkbrenner