Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Can't v2b to work:
On an existing D7 project, when adding a search_api_et_v2b index on "multilingual node" using either an existing or newly created sapi solr server, i get the following error:
Fatal error: Class name must be a valid object or a string in /Volumes/daten2/projekte/hbmintranet/code/www/includes/common.inc on line 7779
(Then $entity_type argument in the entity_get_controller() throwing the error is "search_api_index ").
(freshly installed search_api_et(v2b), search_api_et_solr and the search_api_solr patch needed).
Of course i will try a clean drupal install later, but i wonder whether anyone got this error too, or know what it is.
Comments
Comment #1
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedDoes it work fine when you try to add a new index on a normal node?
Um, a quick question just in case, I assume that space there in "search_api_index " got there by mistake?
Anyway, I haven't experienced this error myself, but a quick google search shows it happens in various scenarios, for example #1667536: PHP Fatal error: Class name must be a valid object or a string in drupal-7.14/includes/common.inc on line 7680. From this and other similar it seems that
updb
andcc all
helped a lot of people, but I guess you've already tried it, so probably the issue is somewhere deeper.Would be great if you manage to do some debugging when you have a free(ish) moment trying to see what index exactly is being loaded there, where from, does it really exists etc...
Comment #2
drunken monkeyEnabling backtrace for error messages in your test site and posting the whole backtrace here would also help a lot – and, of course, knowing the class name it tries to load.
Comment #3
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commented@Daniel, any update on this?
Comment #4
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedWas finally able to replicate this. As it turned out, this module requires Search API module in version 1.6 or later - added this requirement to the .info file.