After updating the Core from 7.12 to 7.14
I got a Errormessage when im Try to edit content.
Notice: Undefined index: #size in file_managed_file_process() (Zeile 446 von C:\Users\Sites\projectname\modules\file\file.module).
the 7.12 version of the file.module was this
// The file upload field itself.
$element['upload'] = array(
'#name' => 'files[' . implode('_', $element['#parents']) . ']',
'#type' => 'file',
'#title' => t('Choose a file'),
'#title_display' => 'invisible',
'#size' => 22,
'#theme_wrappers' => array(),
'#weight' => -10,
);
7.14 is this:
// The file upload field itself.
$element['upload'] = array(
'#name' => 'files[' . implode('_', $element['#parents']) . ']',
'#type' => 'file',
'#title' => t('Choose a file'),
'#title_display' => 'invisible',
'#size' => $element['#size'],
'#theme_wrappers' => array(),
'#weight' => -10,
);
I dont know if im the only one with this Problem but... Please help!
Comments
Comment #1
Anonymous (not verified) commentedNo, you are not the only one. I am getting this now, too.
Comment #2
Anonymous (not verified) commentedFor now, I have commented out line 446, '#size' => $element['#size'], and put in:
'#size' => 22,
The error has gone away.
Comment #3
maxplus commentedHi,
I have the same problem in 7.14 and I used #2 as temporary fix and it works, no error message anymore.
Thanks
Comment #4
btmash commentedTry resaving your field to see if the problem persists. I wouldn't really recommend commenting that line out if possible.
Comment #5
maxplus commentedHi,
I have edited the field (multi upload file field) but the error message keeps showing when editing a node.
Comment #6
viesulis commentedThe same for me. I tried to resave the fields. Didn't help me. So I made a similar fix - but a bit different:
I do not like patching the core in such a way... but sometimes it is just necessary if you want to be up to date...
Comment #7
Pitcher commentedIt´s a Problem with the Multiupload Filefield Widget!
to fix it see here.... http://drupal.org/node/1548502
Comment #8
amilne commentedNoticed this bug report come through, and had been holding off on upgrading a couple of sites. Decided a few minutes ago to go for it (full backups first of course).
No issues on this end with the upgrade. I upgraded from 7.12 to 7.14.
I can also confirm I did not have the Multiupload FIlefield Widget installed as per Pitcher's last note.
Comment #9
marcingy commentedThis is a duplicate then and the issue is with contib modules rather than core. #1548502: Notice: Undefined index: #size in file_managed_file_process() (line 446 of .../file.module).
Comment #11
josephsergio commentedThis is the 2nd time I am trying to update from 7.12 to 7.14 - The first time I lost my entire site now I just re-uploaded all files and folder via my ftp except for the sites directory which was left alone. Once everything had uploaded to the FTP when I go to my site URL I see the following:
Fatal error: Call to undefined function views_ui_cache_load() in /home/josephsergio/mjmroyalties.com/includes/menu.inc on line 592
Can someone please help me!
Comment #12
btmash commentedDo you have the views module? And is views_ui enabled?
Comment #13
aspilicious commentedNot critical as this is probably a views (ui) problem
Comment #14
josephsergio commentedmy issue was that I had originally installed commerce kickstart > when updating all files on my ftp I was not copying over the commerce kickstart folder from the profiles directory. Being that this is where most modules are kept, I did so and now works fine. Thanks
Comment #15
btmash commentedI'm sending it back to closed (duplicate) since it was marked that way prior to the reopening. Also, unassigned.
Comment #16
akayani commentedFatal error: Call to undefined function views_ui_cache_load() in /home/SITE/includes/menu.inc on line 593
DIDN'T HELP ME :(
Nor did clearing the cache files, uninstalling views or anything else.
I have a dead site and no idea how to fix it after a few days of frustration.
Any other clues?