Closed (duplicate)
Project:
File Entity (fieldable files)
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2013 at 17:07 UTC
Updated:
19 Mar 2013 at 14:00 UTC
I found the following error on my site:
Warning: array_keys() expects parameter 1 to be array, object given in file_entity_file_load() (line 155 of /public_html/sites/all/modules/file_entity/file_entity.file.inc).
Notice: Trying to get property of non-object in file_entity_image_dimensions() (line 188 of /public_html/sites/all/modules/file_entity/file_entity.file.inc).
How to fix it?
Thank you very much in advance!
Comments
Comment #1
adamtong commentedI found a simliar issue: http://drupal.org/node/1922444
however, the path in that issue cannot help.
Thank you
Comment #2
dave reidThis sounds a lot like something is calling file_load_multiple() with an object for the $fids parameter instead of an expected array. I would maybe add something like the following to your includes/file.inc file to debug with the devel module enabled to show what the function calls are leading to file_load_multiple():
Comment #3
adamtong commentedHi Dave Reid,
I have added the above lines in file.inc and enable devel module, but what should I do next? I am not programmer so I don't know how to debug.
Thank you so much.
Comment #4
dave reidIf your current user has the permissions 'access devel information' then when this error happens, you should see a clickable message with a function call stack, that would be good if you can copy/paste into the issue here.
Comment #5
adamtong commentedHi Dave Reid, thank you so much for your instruction. I am not sure I am doing right. I copy the message below. Just tell me if I miss something. Thank you so much.
Comment #6
adamtong commentedI think i know why there is problem.
http://drupal.org/node/1812524
but is it FBSMP's bug?
Comment #7
dave reidAh yes, it is a bug in the FBSMP module as you have found in #1812524: file uploads with statuses bug causes errors and SWOD. That module needs to be fixed.