- Issue created by @nitesh624
- 🇺🇸United States jeffm2001
Here's a patch. It simply restores the schema file from 8.2.2 and everything works fine.
- 🇮🇳India nitesh624 Ranchi, India
Still I am getting the schema issue after applying patch
Schema errors for search_api.server.pantheon_search with the following errors: search_api.server.pantheon_search:backend_config.disabled_request_handlers variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence, search_api.server.pantheon_search:backend_config.disabled_request_dispatchers variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence
- 🇮🇳India nitesh624 Ranchi, India
Still seeing the below error
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for search_api.server.pantheon_search with the following errors: search_api.server.pantheon_search:backend_config.disabled_request_handlers variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence, search_api.server.pantheon_search:backend_config.disabled_request_dispatchers variable type is NULL but applied schema class is Drupal\Core\Config\Schema\Sequence
previously I added ' { } ' instead of ' [ ] ' . Kindly review now.
- Status changed to Needs review
4 days ago 3:49pm 12 May 2025 - 🇮🇳India nitesh624 Ranchi, India
I am using https://www.drupal.org/files/issues/2025-03-06/search_api_pantheon-35053... → from #3 and it solved the missing schema but after that I was getting schema mismatch error
But apart from this I also had to make below changes--- a/config/install/search_api.server.pantheon_search.yml +++ b/config/install/search_api.server.pantheon_search.yml @@ -36,7 +36,10 @@ backend_config: disabled_field_types: { } disabled_caches: { } disabled_request_handlers: + - request_handler_replicationslave_default_7_0_0 + - request_handler_replicationmaster_default_7_0_0 disabled_request_dispatchers: + - request_dispatcher_httpcachingnever_default_7_0_0 rows: 10 index_single_documents_fallback_count: 10 index_empty_text_fields: false
- 🇮🇳India nitesh624 Ranchi, India
Here is my complete patch file content
diff --git a/config/install/search_api.server.pantheon_search.yml b/config/install/search_api.server.pantheon_search.yml index 9b2839b..f4fea43 100644 --- a/config/install/search_api.server.pantheon_search.yml +++ b/config/install/search_api.server.pantheon_search.yml @@ -36,7 +36,10 @@ backend_config: disabled_field_types: { } disabled_caches: { } disabled_request_handlers: + - request_handler_replicationslave_default_7_0_0 + - request_handler_replicationmaster_default_7_0_0 disabled_request_dispatchers: + - request_dispatcher_httpcachingnever_default_7_0_0 rows: 10 index_single_documents_fallback_count: 10 index_empty_text_fields: false diff --git a/config/schema/search_api_pantheon.connector.pantheon.schema.yml b/config/schema/search_api_pantheon.connector.pantheon.schema.yml new file mode 100644 index 0000000..122d171 --- /dev/null +++ b/config/schema/search_api_pantheon.connector.pantheon.schema.yml @@ -0,0 +1,3 @@ +plugin.plugin_configuration.search_api_solr_connector.pantheon: + type: plugin.plugin_configuration.search_api_solr_connector.standard + label: 'Search API Solr Pantheon connector settings'