Hello,

I installed a fresh scald galaxy 1.5, after update to drupal 7.23, the image pupload doesn't work anymore. I can drag&drop or add a file as usual, after I klick "Continue", i get these errors.

Error:

Notice: Undefined offset: 0 in scald_image_scald_add_form_fill() (line 54 of sites/all/modules/scald/modules/providers/scald_image/scald_image.module).

Notice: Undefined offset: 0 in scald_image_scald_add_form_fill() (line 54 of sites/all/modules/scald/modules/providers/scald_image/scald_image.module).

The specified file could not be copied, because no file by that name exists. Please check that you supplied the correct filename.

Notice: Trying to get property of non-object in scald_image_scald_add_form_fill() (line 59 sites/all/modules/scald/modules/providers/scald_image/scald_image.module).

Notice: Trying to get property of non-object in scald_image_scald_add_form_fill() (line 60 of sites/all/modules/scald/modules/providers/scald_image/scald_image.module).

when i directly add a Atom in Content/Atoms/+Add atom, it works! But when i add it direct in a Article, than it's broken.

The same thing is, when i install a fresh Drupal 7.23 and the scald module. Same errors.
It is in scald 1.1 and also in the actual 1.x-dev from 17.08.2013

Comments

nagy.balint’s picture

This issue is related to the plupload module, as that module has issues currently with drupal 7.23.

There is a patch you can apply on plupload to fix the issue.
#2068203: plupload incompatibility with drupal version 7.23

gifad’s picture

I have also a PHP notice :

Notice : Undefined index: atoms dans scald_atom_add_page() (ligne 81 dans /.../scald/includes/scald.pages.inc).

whenever there are multiple providers available for atom type;
This is perhaps related :
Looking at scald.pages.inc history :

73f51361
FD 81 $form_state['atom'] = $form_state['scald']['atoms'][0];
82
212c4edc
HNN 83 if (empty($form_state['scald'])) {

suggest that this line 81 could be misplaced, and the form_state somewhat corrupted...

Edit : didn't see nagy's post, submitted while I was mining scald.git...
so it's a separate issue...

jcisio’s picture

I was marking this as duplicate of #2063161: Multi Upload with plupload broken when using Drupal 7.23. But in a second thought, plupload is only broken in CTools modal and there is change in AJAX form in Drupal 7.23 (#1575060: ajax_html_ids are broken for forms with file element (encoding=multipart/form-data) but I don't see how it is related), so it maybe is because of CTools.

robwj’s picture

Status: Active » Closed (fixed)

Fixed with Plupload Modul 7.x-1.3 https://drupal.org/project/plupload

Thx.
Rob

ccshannon’s picture

Issue summary: View changes

I'm on Plupload 1.7-dev and still seeing the error when using Plupload on modal.

nagy.balint’s picture

We are using plupload version = "7.x-1.7" not the dev.
And it works fine for us.

Maybe its an issue in plupload dev, but then please switch to the stable version and try again.