Hey guys,

can you help me to fix that error?

array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /sites/all/modules/filefield/filefield_field.inc in line 292.

Thanks

Yannick

Comments

quicksketch’s picture

quicksketch’s picture

Status: Closed (duplicate) » Active

Sorry I thought this was a duplicate, but looks like a slightly different error. Could you provide steps to recreate this problem from a fresh Drupal install? So far you're the only one that has reported this particular error.

yannickoo’s picture

Status: Active » Closed (cannot reproduce)

I have not seen this error anymore. Can't reproduce this.

ccshannon’s picture

I can.

The error occurs using Views. Some processes, in this case the module "flashvideo" - also I've seen it happen with images that are imported into a CCK Filefield table - do NOT fill in the "data" column in the Filefield table. Instead, the value of the data column is NULL.

When a View runs using a Filefield handler, on a row that has NULL in the data column, the View will crash (WSOD) in some cases, in other cases you will see a drupal error message with the array_merge error on line 292.

So, the value of $items[$delta]['data'] is NULL, but the code expects an array there, which throws an error, which is fatal most of the time (strangely not all of the time, which is a mystery to me).