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

Anonymous’s picture

No, you are not the only one. I am getting this now, too.

Anonymous’s picture

For now, I have commented out line 446, '#size' => $element['#size'], and put in:
'#size' => 22,

The error has gone away.

maxplus’s picture

Hi,
I have the same problem in 7.14 and I used #2 as temporary fix and it works, no error message anymore.
Thanks

btmash’s picture

Try resaving your field to see if the problem persists. I wouldn't really recommend commenting that line out if possible.

maxplus’s picture

Hi,
I have edited the field (multi upload file field) but the error message keeps showing when editing a node.

viesulis’s picture

The same for me. I tried to resave the fields. Didn't help me. So I made a similar fix - but a bit different:

'#size' => isset($element['#size']) ? $element['#size'] : '22',

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...

Pitcher’s picture

It´s a Problem with the Multiupload Filefield Widget!
to fix it see here.... http://drupal.org/node/1548502

amilne’s picture

Noticed 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.

marcingy’s picture

Status: Active » Closed (duplicate)

This 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).

josephsergio’s picture

Title: Error after Update from 7.12 to 7.14 - file.module line 446 » Fatal error: Call to undefined function views_ui_cache_load() in -> /includes/menu.inc on line 592
Priority: Major » Critical
Status: Closed (duplicate) » Active

This 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!

btmash’s picture

Do you have the views module? And is views_ui enabled?

aspilicious’s picture

Priority: Critical » Normal

Not critical as this is probably a views (ui) problem

josephsergio’s picture

my 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

btmash’s picture

Assigned: Pitcher » Unassigned
Status: Active » Closed (duplicate)

I'm sending it back to closed (duplicate) since it was marked that way prior to the reopening. Also, unassigned.

akayani’s picture

Fatal 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?