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.
I would like to ask for support to decode the error.
SearchApiException: Doch nicht. in SearchApiDbService->getFacets() (line 996 of /users/planiram/public_html/planiram/sites/all/modules/search_api/contrib/search_api_db/service.inc).
Comments
Comment #1
kansaj CreditAttribution: kansaj commentedafter removing the line everything works fine
Comment #2
drunken monkeyOh, god, thanks for spotting this! As the comment next to it suggests, this was for debugging purposes and never meant to be committed.
However, I actually thought that this would never be executed, and apparently it also never was for anyone else. Could you please test this by replacing the line with the following:
throw new SearchApiException(print_r($db_query->getFields(), TRUE));
and then post the exception message (the HTML source of the message would be the best, to preserve the formatting)? I would really be interested in what case I didn't think of, there …
In any case, this will be fixed right away, thanks again!
By the way, the message right now roughly translates to "Not after all." in German.
Comment #3
drunken monkeyAlso interesting would be what kind of search you are executing. Search page, Views, custom? As said, I don't really know what kind of query could cause this error.
Comment #4
kansaj CreditAttribution: kansaj commentedtest was done , but the problem persists. It is actually normal Search page.
After completely removing the line it's working and producing the next error message
Fatal error: Call to a member function entityWrapper() on a non-object in /users/planiram/public_html/planiram/sites/all/modules/search_api/contrib/search_api_facets/search_api_facets.module on line 888
Comment #5
drunken monkeyOh, damn, now I know what's going on here. And of course I completely forgot this issue yesterday and now there's a Beta release with a German debugging message triggering in certain circumstances. Hilarious. -_-
I fixed this issue, the other one seems to be unrelated, though. Please open another issue if this problem persists.
I'll do another Beta release once your problems are solved.
Comment #6
drunken monkey