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.
Notice: Undefined index: (my keyword here) in kwresearch_form_alter() (line 1164 of
....sites/all/modules/kwresearch/kwresearch.module).
strange error, as it seems to be adding keywords to my "Tags" vocabulary (set to sync as well as add to page)
any idea why i'm seeing this error?
Comment | File | Size | Author |
---|---|---|---|
#4 | field-localization-fix-2086159-4.patch | 7.53 KB | technologywon |
#3 | 2086159-undefined-index-field-translations-3.patch | 3.95 KB | kyletaylored |
Comments
Comment #1
makokis CreditAttribution: makokis commentedsame issue here
Notice: Undefined index: es en kwresearch_form_alter() (línea 1160 de ../public_html/sites/all/modules/kwresearch/kwresearch.module).
Notice: Undefined index: es en kwresearch_form_alter() (línea 1172 de ../public_html/sites/all/modules/kwresearch/kwresearch.module).
i am getting crazy whit 15 SEO modules working and really I don't know what to do to solve this
any help will be appreciated, thanks in advance
Comment #2
Justincletus CreditAttribution: Justincletus commentedI have the same error how solve this.
Comment #3
kyletaylored CreditAttribution: kyletaylored at LevelTen Interactive commentedNotice: Undefined index: es in kwresearch_form_node_form_alter() (line 1261 of kwresearch.module).
I had this same issue and realized that it doesn't handle i18n or translations. The old way of handling translations was making copies of the entire node, but if you're using field translations - that's not necessarily the case.
I made a patch that finds the language of the FIELD and uses that value instead of assuming all fields have been translated.
Comment #4
technologywon CreditAttribution: technologywon at LevelTen Interactive commentedThe latest update applies the patch in #3 but I had an error when I tried to edit a page because it was trying to access $form variable where it didn't exist. This patch rewrites the function that gets called on node update/save.
Comment #6
kyletaylored CreditAttribution: kyletaylored at LevelTen Interactive commented