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.
Specially when I am running cron, indexing content or removing content, I get these warnings:
" array_flip(): Can only flip STRING and INTEGER values! entity.inc:173 "
Possibly the source of the issue: apachesolr.api.php: $user = user_load(array('uid' => $entity->uid));
Checking user_load function on api.drupal.org for the user_load function, you can see that it is not looking for an array, but an integer.
I ran into this information on stack overflow but despite I greped the code for this and found it I may have misunderstood the source of the problem.
Comment | File | Size | Author |
---|---|---|---|
#2 | debug_backstrace.txt | 74.33 KB | Yorgg |
Comments
Comment #1
Yorgg CreditAttribution: Yorgg commentedComment #2
Yorgg CreditAttribution: Yorgg commentedComment #3
yusufhmSeems to be a duplicate of https://www.drupal.org/node/2109291
Comment #4
Chris CharltonThe note about the `apachesolr.api.php` syntax issue is a duplicate of #2109291: user_load should use uid instead of array in hook_apachesolr_index_document_build_ENTITY_TYPE().