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'm not sure where to post this, but i get this error message when i use Filedepot, and it seems that something is not right with Filefield Meta.
warning: array_merge(): Argument #1 is not an array in C:\inetpub\wwwroot\site.net\public_html\sites\all\modules\filefield\filefield_meta\filefield_meta.module on line 78.
Can someone please explaine what the problem is?
Comment | File | Size | Author |
---|---|---|---|
#1 | filefield_meta_merge.patch | 615 bytes | quicksketch |
Comments
Comment #1
quicksketchSeems like it's because Filedepot is saving blank rows into the "files" database table (at least based on #1809878: Field 'fid' doesn't have a default value). FileField Meta expects $file->data to be an array, but if it's an empty string, this error occurs. FileField Meta *does* accomodate for the value being entirely empty:
But if it's set to an empty string, all kinds of things go wrong.
I've changed this line to be:
Which makes FileField Meta work in this situation, but the broader problem caused by FileDepot should be fixed separately.
Comment #2
quicksketch