Closed (fixed)
Project:
FileField
Version:
6.x-3.10
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2011 at 20:16 UTC
Updated:
15 Oct 2011 at 15:50 UTC
Hi
I have problem with this warning.
I checked patches form this node http://drupal.org/node/1171760 but it didn't help me.
I get this warning on the page with views. In the view I display files .mp3.
THX
Comments
Comment #1
blackspiraldancer commented...actually I'm experiencing this too, using AudioField to load the MP3 file. Beside the warning, the audio file plays correctly.
Comment #2
blackspiraldancer commentedI don't know if I'm doing this right, and sure I don't know the "patch" syntax, but if you replace line 308 of filefield_field.inc from
if (isset($file['data'])) {
with
if (isset($file['data']) && !empty($items[$delta]['data'])) {
no more error is displayed, and the mp3 file is still accessible from the player.
I guess I'll need to do my homework now and learn how to write a proper patch... :P
Comment #3
quicksketchLet's not open two issues for the exact same problem. #1171760: warning: array_merge() [function.array-merge]: Argument #2 is not an array when using CCK 3.x
Comment #4
enjoy777 commented@blackspiraldancer
Thank you for your input. It works!
@quicksketch
I didn't work whit this what you said, your error is in line 309, this what I wrote is in line 319. Small difference.