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.
In my status report I get this:
Apache Solr Multilingual - Missing field bias settings of environment ID solr.
This solr index contains new searchable fields. These fields are ignored until you configured and saved the Field biases.
When I click on on the "Field biases" link I get this:
Fatal error: Class 'e' not found in /home/myusername001/mysite001/code/sites/all/modules/apachesolr/apachesolr.module on line 1458
line 1458 is:
$solr = new $class($url);
I'm using the last Apache Solr Search version 7.x-1.6 module.
Any ideas?
Comments
Comment #1
mkalkbrennerDo you still see the link on "/admin/reports/status"? Or did it only occur directly after the upddate?
Can you post the link itself?
Comment #2
Jean Gionet CreditAttribution: Jean Gionet commentedIt occurred right after the update. What I did though, is go through all the settings for the Apache Solr module and hit save settings. This seems to have fixed whatever was messed up.
Comment #3
mkalkbrennerI don't know what was going on in your setup.
But Apache Solr 1.5 introduced some new stuff which has been reverted in 1.6. Maybe your issue was caused by that and has been "fixed" by saving the forms.
If anyone runs into a similar issue, please reopen this issue.
Comment #4
Daemon_Byte CreditAttribution: Daemon_Byte commentedI got the same error but the same solution worked. Just going to the bias page and clicking save allowed the search to work again but still getting the error on the status page.
Comment #5
Daemon_Byte CreditAttribution: Daemon_Byte commentedComment #6
Daemon_Byte CreditAttribution: Daemon_Byte commentedI nailed it down. In the requirement function on line 1042 you have an if statement that says is_array but it is an object so it fails. If you change that to just is_empty then it works fine.
if (!is_array($fields) || empty($fields)) {
to
if (empty($fields)) {
Comment #7
Daemon_Byte CreditAttribution: Daemon_Byte commentedNevermind. I see you fixed it in dev. Sorry :)
Comment #8
mkalkbrennerThanks for your feedback. So it seems that this issue - or the fix - is a duplicate of
#2150365: Requirement error: Field bias settings of environment ID solr could not be verified.
Comment #9
mas0h CreditAttribution: mas0h commentedIt's not fixed, I have the same status report message
Apache Solr Multilingual Missing field bias settings of environment ID solr.
This solr index contains new searchable fields. These fields are ignored until you configured and saved the Field biases.
When following the link admin/config/search/apachesolr/env-solr/bias I get a blank page with the same error code:
Fatal error: Class 'e' not found in /mysite/httpdocs/sites/all/modules/apachesolr/apachesolr.module on line 1458
I'm using the latest dev version 2013-Dec-16
Comment #10
mkalkbrennerOK, I'll review it again. Which version of apachesolr.module are you using?
Comment #11
mas0h CreditAttribution: mas0h commentedI'm using the latest dev of apache solr.
Comment #12
mas0h CreditAttribution: mas0h commentedError disappeared after enabling "Apache Solr Config Generator"
https://drupal.org/project/apachesolr_confgen
Why this is not obvious at the module installation process, this should be a required module for installation
EDIT: Sorry the error still exists!
Comment #13
mkalkbrenner@mas0h: Did you try 7.x-1.x-dev as stated in #7?
Comment #14
mas0h CreditAttribution: mas0h commented@mkalkbrenner: Yes I'm using the latest dev from both apache solr and apache solr multilingual