On trying to save a clone.

Notice: Undefined index: #node in _i18n_node_form_node_form_alter() (line 486 of C:\Inetpub\wwwroot\123.com\sites\all\modules\contrib\i18n\i18n_node\i18n_node.module). => 

Comments

yatil’s picture

Priority: Normal » Critical
Issue tags: +i18n, +i18n compatibility

Same issue here, brings the whole project to a halt O_o

What to do?

manos_ws’s picture

me to - subscribe

manos_ws’s picture

Grab the latest git from the http://drupalcode.org/project/node_clone.git/tree/refs/heads/7.x-1.x and it works
I have i18n rc1 and I cloned a node without any errors.

attiks’s picture

Doesn't work anymore with rc2

attiks’s picture

I did some more testing, if I clone and then save it's working, but whenever I try to remove a picture and then save i get:

    Notice: Undefined index: #node in _i18n_node_form_node_form_alter() (line 461 of /sites/all/modules/i18n/i18n_node/i18n_node.module).
    Notice: Undefined index: #node in _i18n_node_form_node_form_alter() (line 473 of /sites/all/modules/i18n/i18n_node/i18n_node.module).
    Notice: Trying to get property of non-object in _i18n_node_form_node_form_alter() (line 473 of /sites/all/modules/i18n/i18n_node/i18n_node.module).
clashar’s picture

+1

kerryman’s picture

I think the problem here is that there is no image to remove until you save the new clone once. The image field has been cloned but the image was not uploaded for the clone and so remove fails. I suspect if you set clone to 'save and edit' you will not get these errors.
My procedure was to clone, change all fields except images, save, edit and then remove images.

It would be nice if you could exclude specific fields from being cloned.

pwolanin’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

Looks like this is outdated, or at least there is not a clear set of steps to reproduce