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 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'];
Comment | File | Size | Author |
---|---|---|---|
#4 | 2169975.patch | 453 bytes | xandeadx |
Comments
Comment #1
Alex Dicianu CreditAttribution: Alex Dicianu commentedWhere exactly are you getting this notice? Could you share the url?
Comment #2
yultyyev CreditAttribution: yultyyev commentedI 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.).
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI have the same log entry.
Comment #4
xandeadx CreditAttribution: xandeadx commentedComment #5
rjraman CreditAttribution: rjraman commentedyultyyev, did you got your problem fixed ? because am getting the same error.
Comment #6
NightLion CreditAttribution: NightLion commentedHello! the same problem tell me how to solve it?
Comment #7
drupix#4 worked for me
Comment #8
legolasbo#4 also worked for me, marking RTBC.
Comment #9
Alex Dicianu CreditAttribution: Alex Dicianu commentedCommitted on the 3.x branch.
Comment #10
Alex Dicianu CreditAttribution: Alex Dicianu commentedComment #11
vbard CreditAttribution: vbard commented#4 also worked for me
Comment #13
pvasili CreditAttribution: pvasili commentedThis problem still has not been fixed in version 7.x-3.x-dev and 7.x-3.0
Please add hotfix #4 !