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 get following php warnings when using entityfieldquery.
Warning: array_merge(): Argument #2 is not an array in mongodb_field_storage_query() (line 367 of /siteroot/sites/all/modules/contrib/mongodb/mongodb_field_storage/mongodb_field_storage.module).
EntityFieldQuery in question has entity, property and fieldconditions and fieldorderby statements. Since php 5.0 array_merge has accepted arrays only.
Comment | File | Size | Author |
---|---|---|---|
#1 | ArrayMergeWarning-1898664-1.patch | 949 bytes | exlin |
Comments
Comment #1
exlin CreditAttribution: exlin commentedFollowing typecast patch fixes the issue for me. It may be better to check why it's not array on first place.
Comment #1.0
exlin CreditAttribution: exlin commentedremoved unneeded stuff from path