I am using this module on a video game site. I create a Game page, which has an image field for Box art. After I create the game page, then click to clone node, it takes me to the edit form. When I remove the box art image to replace with another, I get this set of 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 795 of C:\Users\Colby\Sites\gametrades\includes\form.inc).
Notice: Undefined index: #node in comment_form_node_form_alter() (line 1193 of C:\Users\Colby\Sites\gametrades\modules\comment\comment.module).
Notice: Trying to get property of non-object in comment_form_node_form_alter() (line 1210 of C:\Users\Colby\Sites\gametrades\modules\comment\comment.module).
Notice: Undefined index: #node in menu_form_node_form_alter() (line 629 of C:\Users\Colby\Sites\gametrades\modules\menu\menu.module).
Notice: Trying to get property of non-object in menu_form_node_form_alter() (line 629 of C:\Users\Colby\Sites\gametrades\modules\menu\menu.module).
Notice: Undefined index: #node in menu_form_node_form_alter() (line 630 of C:\Users\Colby\Sites\gametrades\modules\menu\menu.module).
Notice: Trying to get property of non-object in menu_form_node_form_alter() (line 630 of C:\Users\Colby\Sites\gametrades\modules\menu\menu.module).
Notice: Undefined index: field_box_art in file_ajax_upload() (line 271 of C:\Users\Colby\Sites\gametrades\modules\file\file.module).
Notice: Undefined index: #suffix in file_ajax_upload() (line 280 of C:\Users\Colby\Sites\gametrades\modules\file\file.module).

If I save the page, the errors disappear and the image field reappears, but it says image cannot be uploaded. If I save again, then go to edit, I can now upload a new image.

Comments

caponey’s picture

ah, just realized there are settings to this module lol.
having the node be saved first fixes the problem. not sure if you want to look into the issue any more.

this is a great module, btw.

trante’s picture

I also had this error and wrote here: http://drupal.org/node/1606390

Is there any news about this bug?

pwolanin’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev

It's possible this is fixed by the change at #1447974: Call to undefined function node_form_validate() - please try with the latest code. I'll probably roll a beta2 shortly.

trante’s picture

Thank you for information.

I just checked with latest 7.x-1.x-dev branch, but error still exists.
So waiting for beta2..

trante’s picture

I installed this version:
7.x-1.0-rc1

But I still have this issue..
When I click to clone a node
remove attached image from cloned content,
I get following error:

Warning: drupal_retrieve_form() (/home/examplecom/public_html/includes/form.inc dosyasının 795 satırı) içinde call_user_func_array() expects parameter 1 to be a valid callback, function 'node_form' not found or invalid function name.
Notice: comment_form_node_form_alter() (/home/examplecom/public_html/modules/comment/comment.module dosyasının 1193 satırı) içinde Undefined index: #node.
Notice: comment_form_node_form_alter() (/home/examplecom/public_html/modules/comment/comment.module dosyasının 1210 satırı) içinde Trying to get property of non-object.
Notice: menu_form_node_form_alter() (/home/examplecom/public_html/modules/menu/menu.module dosyasının 629 satırı) içinde Undefined index: #node.
Notice: menu_form_node_form_alter() (/home/examplecom/public_html/modules/menu/menu.module dosyasının 629 satırı) içinde Trying to get property of non-object.
Notice: menu_form_node_form_alter() (/home/examplecom/public_html/modules/menu/menu.module dosyasının 630 satırı) içinde Undefined index: #node.
Notice: menu_form_node_form_alter() (/home/examplecom/public_html/modules/menu/menu.module dosyasının 630 satırı) içinde Trying to get property of non-object.
Notice: translation_form_node_form_alter() (/home/examplecom/public_html/modules/translation/translation.module dosyasının 135 satırı) içinde Undefined index: #node.
Notice: translation_form_node_form_alter() (/home/examplecom/public_html/modules/translation/translation.module dosyasının 135 satırı) içinde Trying to get property of non-object.
Notice: xmlsitemap_node_form_node_form_alter() (/home/examplecom/public_html/sites/all/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module dosyasının 136 satırı) içinde Undefined index: type.
Notice: xmlsitemap_node_form_node_form_alter() (/home/examplecom/public_html/sites/all/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module dosyasının 136 satırı) içinde Undefined index: nid.
Notice: file_ajax_upload() (/home/examplecom/public_html/modules/file/file.module dosyasının 271 satırı) içinde Undefined index: field_sehirhatdiger.
Notice: file_ajax_upload() (/home/examplecom/public_html/modules/file/file.module dosyasının 280 satırı) içinde Undefined index: #suffix.

This error makes me save every node 3 times when cloning.
First time with old picture, than removing image and save, then add new image and save clone node.

pwolanin’s picture

Status: Active » Postponed (maintainer needs more info)

I'm not able to reproduce this using the standard article node type.

pwolanin’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)