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.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1284056-metatag-form-submit-core-bug.patch | 1.08 KB | Dave Reid |
Comments
Comment #1
frankaz CreditAttribution: frankaz commentedAgree 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.
Comment #2
Dave ReidThanks 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.
Comment #3
alexfarr CreditAttribution: alexfarr commentedThis patch works for me, many thanks
Comment #4
Dave ReidCommitted #2 with http://drupalcode.org/project/metatag.git/commit/8ff19a0.
Comment #5
Dave ReidRenaming title for better visibility.
Comment #6
Zachmo CreditAttribution: Zachmo commented#2 worked for me. Thanks.
Comment #7
muschpusch CreditAttribution: muschpusch commentedPlease 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
Comment #8
Dave ReidThe 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.
Comment #9
lsolesen CreditAttribution: lsolesen commented+1
Comment #11
DenisVSGood job!
Thanks!
Comment #12
quagmire CreditAttribution: quagmire commentedIs 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.
Comment #13
rtrubshaw CreditAttribution: rtrubshaw commentedMeta 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.
Comment #14
DamienMcKenna@rtrubshaw: Thank you for opening a new issue for your new bug, lets leave this one closed.