Moving from: http://drupal.org/node/1801730#comment-6557558

I'm uninstall plupload module and try upload 1 image.
I'm select image and click Upload button. I see errors:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'node_form' was given in drupal_retrieve_form() (line 800 of /home/sashken/data/www/sashken.ru/includes/form.inc).
Notice: Undefined index: #node in comment_form_node_form_alter() (line 1194 of /home/sashken/data/www/sashken.ru/modules/comment/comment.module).
Notice: Trying to get property of non-object in comment_form_node_form_alter() (line 1211 of /home/sashken/data/www/sashken.ru/modules/comment/comment.module).
Notice: Undefined index: #node in menu_form_node_form_alter() (line 629 of /home/sashken/data/www/sashken.ru/modules/menu/menu.module).
Notice: Trying to get property of non-object in menu_form_node_form_alter() (line 629 of /home/sashken/data/www/sashken.ru/modules/menu/menu.module).
Notice: Undefined index: #node in menu_form_node_form_alter() (line 630 of /home/sashken/data/www/sashken.ru/modules/menu/menu.module).
Notice: Trying to get property of non-object in menu_form_node_form_alter() (line 630 of /home/sashken/data/www/sashken.ru/modules/menu/menu.module).
Notice: Undefined index: node_gallery_media in file_ajax_upload() (line 271 of /home/sashken/data/www/sashken.ru/modules/file/file.module).
Notice: Undefined index: #suffix in file_ajax_upload() (line 280 of /home/sashken/data/www/sashken.ru/modules/file/file.module).

If I'm select image and click Save button all works good.

CommentFileSizeAuthor
#1 1803364-file-ajax-errors.patch798 byteszengenuity
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zengenuity’s picture

FileSize
798 bytes

Need to build the embedded form in a different way as per:
http://drupal.org/node/1336212#comment-6056524

Patch attached.

sashken2’s picture

zengenuity, thanks!
Now all works good

zengenuity’s picture

Status: Active » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.