I installed the module and get the following message:

Notice: Undefined index: value in _seo_ui_fix_metatag_descriptions() (line 232 of /home/.../public_html/sites/all/modules/seo_ui/seo_ui.module).

Notice: Undefined index: token_group in _seo_ui_alter_metatags() (line 186 of /home/.../public_html/sites/all/modules/seo_ui/seo_ui.module).

Any idea whats the problem.

Comments

rudivanes’s picture

Assigned: rudivanes » Unassigned
Status: Active » Needs work
dgastudio’s picture

same here.

sewid’s picture

same problem here

jras’s picture

Sub. Same issue.

socialnicheguru’s picture

same here.

socialnicheguru’s picture

Status: Needs work » Active

I believe "needs work" status is for reviewing patches.

amaria’s picture

Status: Active » Needs review
StatusFileSize
new1.5 KB

Here is a patch to fix these errors. I created this based on:
seo_ui-7.x-1.x-dev
metatag-7.x-1.0-alpha4

patch notes:

  • Changed logic in _seo_ui_fix_metatag_descriptions() to check for elements without values instead of just key 'advanced'. Also added else statement to prevent processing elements without values
  • Changed 'token_group' key to 'tokens' in _seo_ui_alter_metatags() since that is what metatag now uses.
builderShawn’s picture

Patch worked for me.
Thanks!

aznation’s picture

Where do you place the patch code to make it work? Sorry for the noob question.

edit: After looking it over carefully it is pretty simple. Just search through the module code for the snippetts mentioned in the patch, they are marked with '+' for additions and '-' for deletions. In the case of the above code, just a couple of lines are slightly modified:)

The error goes away on node-edit forms but I still can't apply seo-ui due to errors upon saving. I may need to remove the metatag module as the problems seem to revolve around it.

The error that pops up when saving is:
Notice: Undefined index: metatags in metatag_metatags_form_submit() (line 610 of ...

Phil Wolstenholme’s picture

Same issue for me, I will wait for the patch to be reviewed and applied to the module.

amaria’s picture

Oh, the patch I made here should fix the errors when saving.

triple5’s picture

In order to patch, the most convenient is to use the tool "patch" on the command line if you have access to a command line (ssh?) for Linux (or MacOSX?) read this:
http://jungels.net/articles/diff-patch-ten-minutes.html

most likely just go to the folder of the module and use

patch < seo_ui-1394342.patch
patch < seo_ui-1425324.patch

I have found that this notice comes up after applying both patches:
Notice: Undefined index: tokens in _seo_ui_alter_metatags() (in line 186 of .../sites/all/modules/seo_ui/seo_ui.module).

scottlozier’s picture

# 7 Patch Works

gianfrasoft’s picture

# 7 Patch doesn't works for me :(

After applying it, notices went away but submitting a new node with metatags an error occurring and Drupal stopped working. Here is the message:

    Notice: Undefined index: metatags in metatag_metatags_form_submit() (linea 644 di C:\xampp\htdocs\mercatominuterie.it\sites\all\modules\metatag\metatag.module).
    Recoverable fatal error: Argument 2 passed to metatag_filter_values_from_defaults() must be an array, null given, called in C:\xampp\htdocs\mercatominuterie.it\sites\all\modules\metatag\metatag.module on line 646 and defined in metatag_filter_values_from_defaults() (linea 1052 di C:\xampp\htdocs\mercatominuterie.it\sites\all\modules\metatag\metatag.module).

Please help... Thank you!

jessebeach’s picture

Assigned: Unassigned » jessebeach
StatusFileSize
new1.87 KB
new80.34 KB

These are the notices referenced in the issue:

Error notices due to undefined indices.

I'll ping @effulgentsia for a review.

effulgentsia’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

icampana’s picture

Seems ok to me too, tried it on a Drupal 7.18 installation and works fine.

Priyanka Shetty’s picture

Had the same issue, the Patch works fine!

jrwilson’s picture

The patches in this thread have not been released into a stable version. Will this occur or use dev, git or another project to use SEO?

jcnventura’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (duplicate)

The patch in #2349129: Undefined index title, and fatal error when combined with Metatag 7.x-1.17 is more complete, and includes all the changes in this patch. Closing this one as a duplicate because of that.