Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
caponey CreditAttribution: caponey commentedah, 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.
Comment #2
trante CreditAttribution: trante commentedI also had this error and wrote here: http://drupal.org/node/1606390
Is there any news about this bug?
Comment #3
pwolanin CreditAttribution: pwolanin commentedIt'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.
Comment #4
trante CreditAttribution: trante commentedThank you for information.
I just checked with latest 7.x-1.x-dev branch, but error still exists.
So waiting for beta2..
Comment #5
trante CreditAttribution: trante commentedI 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:
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.
Comment #6
pwolanin CreditAttribution: pwolanin commentedI'm not able to reproduce this using the standard article node type.
Comment #7
pwolanin CreditAttribution: pwolanin as a volunteer commented