Clone of https://www.drupal.org/project/search_api/issues/2882347:
"
While editing a existing server a LogicException is thrown when I try to change between the "Basic Auth" and the "Standard" Solr Connector.
"A fatal error occurred: The database connection is not serializable. This probably means you are serializing an object that has an indirect reference to the database connection. Adjust your code so that is not necessary. Alternatively, look at DependencySerializationTrait as a temporary solution."
"
This happens when using:
Search API Solr | 8.x-1.10
Search API | 8.x-1.19
Drupal Core 8.9.13
I was able to reproduce on work and personal laptop by:
1. Install and enable Search API 8.x-1.19 and Search API Solr 8.x-1.10
2. From Admin UI, go to Config -> Search and Metadata -> Search API
3. Add a server, fill in required fills, save. Note: The bug is not present on initial add of server. You can switch connectors.
4. Now Edit the newly created server.
5. Try to switch the Solr Connector between Basic Auth and Standard.
6. Notice that the form does not update with the connector you select
7. You can see the exception with the fatal error above thrown by going to recent log messages (Reports -> Recent log messages).
Comment | File | Size | Author |
---|---|---|---|
#7 | 3207297.patch | 845 bytes | mkalkbrenner |
Comments
Comment #2
mkalkbrennerWhich Drupal Core version are you using?
Comment #3
bruce.yuen CreditAttribution: bruce.yuen as a volunteer and commented@mkalkbrenner This is happening to me on Drupal 8.9.13.
Comment #4
bruce.yuen CreditAttribution: bruce.yuen as a volunteer and commentedComment #5
DamienMcKennaI've just hit this problem myself switching between the Pantheon and Standard connectors :-\
Comment #6
mkalkbrennerThis issue is already fixed in 4.x.
Comment #7
mkalkbrennerComment #9
mkalkbrenner