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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

makokis’s picture

same 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

Justincletus’s picture

Issue summary: View changes

I have the same error how solve this.

kyletaylored’s picture

Title: undefined index, line 1164 issue » Incompatible with Multilingual or Internationalization
Status: Active » Needs review
FileSize
3.95 KB

Notice: 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.

technologywon’s picture

The 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.

kyletaylored’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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