pantheon-systems / search_api_pantheon

ApachSolr on Pantheon for Drupal 8/9 via Search API
https://pantheon.io
MIT License
7 stars 23 forks source link

ArgumentCountError when posting schema #158

Closed jms-pantheon closed 1 year ago

jms-pantheon commented 1 year ago

Describe the bug When trying to post default schema:

ArgumentCountError: Too few arguments to function Drupal\search_api_solr\Controller\SolrConfigSetController::construct(), 0 passed in /code/web/modules/composer/search_api_pantheon/src/Services/SchemaPoster.php on line 245 and exactly 1 expected in Drupal\search_api_solr\Controller\SolrConfigSetController->construct() (Zeile 52 in /code/web/modules/composer/search_api_solr/src/Controller/SolrConfigSetController.php)

To Reproduce Steps to reproduce the behavior:

  1. Submit form on: /admin/config/search/search-api/server/pantheon_solr8/pantheon-admin/schema

Says leave empty to use default, but gives above error.

Additional context Using 8.1

A community patch solves this issue:

https://www.drupal.org/project/search_api_pantheon/issues/3320326

rwagner00 commented 1 year ago

An internal issue has been created to get the patch reviewed and merged, thank you!