I get an error on node form submit (on node save) on my multilingual site.

Notice: Undefined index: add_to_cart in function locale_field_entity_form_submit() (at line 438 in file /site.com/modules/locale/locale.module).

When viewing nodes there are no notices.

What the problem can it be?

/* locale.module */
/* 435 */    foreach (field_info_instances($entity_type, $bundle) as $instance) {
/* 436 */      $field_name = $instance['field_name'];
/* 437 */      $field = field_info_field($field_name);
/* 438 */      $previous_language = $form[$field_name]['#language'];
CommentFileSizeAuthor
#4 2169975.patch453 bytesxandeadx
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Alex Dicianu’s picture

Where exactly are you getting this notice? Could you share the url?

yultyyev’s picture

I getting this notice after saving or adding new node (type = product). It is simple core notice, after it there is a message "Node 123 product was updated". And all works fine (adding to cart, checkout and etc.).

Anonymous’s picture

I have the same log entry.

xandeadx’s picture

FileSize
453 bytes
rjraman’s picture

yultyyev, did you got your problem fixed ? because am getting the same error.

NightLion’s picture

Hello! the same problem tell me how to solve it?

drupix’s picture

#4 worked for me

legolasbo’s picture

Status: Active » Reviewed & tested by the community

#4 also worked for me, marking RTBC.

Alex Dicianu’s picture

Committed on the 3.x branch.

Alex Dicianu’s picture

Status: Reviewed & tested by the community » Fixed
vbard’s picture

#4 also worked for me

Status: Fixed » Closed (fixed)

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

pvasili’s picture

Version: 7.x-3.0 » 7.x-3.x-dev
Category: Bug report » Task
Priority: Normal » Major

This problem still has not been fixed in version 7.x-3.x-dev and 7.x-3.0
Please add hotfix #4 !