The metatags form displays on the terms edit page, but nothing gets written to the database on save, no errors are throw, and fresh data was added.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

frankaz’s picture

Agree with alexfarr. Inserted into [metatag] the [entity_type] 'taxonomy_term' to see if it wasn't saving or reading; it doesn't pull (of course my [data] value was null).

More info:
Was originally using "metatags-7.x-1.0-unstable1". Exported the values from [metatag], uninstalled it the module, and installed "metatags-7.x-1.0-alpha1."

If there's a way to pull from a debug log, i'd be more than happy to supply it if you let me know how to access it.

Dave Reid’s picture

Version: 7.x-1.0-alpha1 »
Assigned: Unassigned » Dave Reid
Status: Active » Needs review
FileSize
1.08 KB

Thanks for reporting this. Just discovered this is a fairly major core bug: #1284642: Default validate/submit handlers not added if any form-level validate/submit handlers added in hook_field_attach_form() as it actually *prevents* the form from being submitted and saving the term. Please test the following patch in the meantime. It seemed to work and save taxonomy term meta tags.

alexfarr’s picture

This patch works for me, many thanks

Dave Reid’s picture

Status: Needs review » Fixed
Dave Reid’s picture

Title: Meta tags do not save for taxonomy terms » Entities no longer save after submitting form (taxonomy terms, comments, users, etc.)

Renaming title for better visibility.

Zachmo’s picture

#2 worked for me. Thanks.

muschpusch’s picture

Please roll out a new release. This is a major bug and it's not really easy to hunt down metatag as the source of the bug..... Thanks

Dave Reid’s picture

The last week has been very busy so I'm sorry I haven't had the time to roll a new release. It is on my high priority list for the weekend.

lsolesen’s picture

+1

Status: Fixed » Closed (fixed)

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

DenisVS’s picture

Version: » 7.x-1.x-dev

Good job!
Thanks!

quagmire’s picture

Version: 7.x-1.x-dev » 7.x-1.0-alpha8

Is anyone else still experiencing this issue? I've been unable to add/save taxonomy terms (7.x-1.0-alpha3 and 7.x-1.0-alpha8). I have to disable the module, update the vocabulary, then re-enable the module.

rtrubshaw’s picture

Version: 7.x-1.0-alpha8 » 7.x-1.0-beta4

Meta tags appears to lose the parent information of a term when the root is the sole parent.

The parent array is OK during the initial save, but when the term is updated (by meta tags I presume) the parent array is now: array() rather than array(0). This causes the row from taxonomy_term_hierarchy to be deleted and nothing to be re-inserted.

DamienMcKenna’s picture

@rtrubshaw: Thank you for opening a new issue for your new bug, lets leave this one closed.