Problem/Motivation
Changes to the order of taxonomy elements are not saved.
After upgrading from Drupal 11.2 to 11.3, changes to the order (organization) of terms are not saved.
Changes are also not saved after manually changing the row weight key value.
Steps to reproduce
Proposed resolution
Remaining tasks
Needs steps to reproduce
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | rh_taxonomy_overview_order.patch | 778 bytes | fmay |
| #8 | screenshot.png | 51.6 KB | fmay |
| taxonomy 01.jpg | 106.15 KB | pingwin_cracow | |
| taxonomy 02.jpg | 143.62 KB | pingwin_cracow | |
| taxonomy 03 - not save.jpg | 140.7 KB | pingwin_cracow |
Comments
Comment #2
elfakhar commentedI have tested this issue in a clean local environment:
Drupal 11.2.7:
Upgraded to Drupal 11.3.1:
Environment: PHP 8.3.6, MariaDB 10.11 (Docker), core only.
I could not reproduce the issue in this environment.
Comment #3
pingwin_cracow commentedI upgraded to PHP 8.4 and tried PHP 8.5, but several modules showed incompatibility errors with PHP > 8.3.
So I reverted to PHP 8.3.
I don't know, but it might be related to the PHP upgrade to >8.3 and something went wrong after reverting to PHP 8.3.
How can I check and possibly fix this?
I've cleared the cache numerous times, run cron, and updated.php, but none of this has improved.
Is there any way to fix this?
Comment #4
pingwin_cracow commentedPS.
I created a new dictionary and added a few terms, all of which received a weight of 0.
Attempting to change the position value is not saved in the database.
Comment #5
elfakhar commentedThis does not appear to be a core regression.
It may be worth checking for any pending entity or database updates, and reviewing whether a contrib or custom module affects taxonomy term saving or ordering
Comment #6
pingwin_cracow commentedThank you for the information.
For me:
php 8.3
D 11.3.1
all modules up to date
I don't see any errors except for one log entry:
I don't know if this affects the taxonomy module.
I don't know what to do about it, and what custom module might affect the problem of saving taxonomy term ordering.
Comment #7
cilefen commentedComment #8
fmay commentedHello,
I have the same problem. The only way is to force the #submit on the submit button in /web/core/modules/taxonomy/src/Form/OverviewTerms.php
Comment #9
barakgalili commentedIn my case the problem was in taxonomy_unique, The module add a submit function and dosen't deal with the weight order.
After removing the contrib module it's working but it need a second refresh to show the changes. Caching problem ?
Comment #10
quietone commentedChanges are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies. Thanks.
This still needs steps to reproduce the issue starting from "Install Drupal core".
Comment #11
fmay commentedI found that, in my case, the problem comes from the rabbit hole module (rh_taxonomy).
Comment #12
fmay commentedComment #14
anybodyI can confirm that we just ran into the same issue and it seems to have started with Drupal 11.3. I already left a comment here: https://www.drupal.org/project/drupal/issues/2856660#comment-16479333
We're also using rabbit_hole, but the patch from #12. It was also reported here: #3567965: Rabbit Hole settings are shown on vocabulary overview form and I raised the priority to Critical there.
Still I wonder why the fix is not enough in our case. I need to uncomment the submit callbacks of all modules that add their third party settings to the taxonomy term overview page to make it work again. Modules that use entity builders instead work great!
Is there any known regression in core regarding form submit handlers that could cause this?
Regarding #3 I think this issue should fix it: #3533870: Change the way Third Party Settings are set but there are still many other modules that use submit callbacks that were working before.
Comment #15
ronchica commentedThis is a problem for us on an 11.3.2 install.
We need the patch in #12 in order to save the taxonomy term page. It is a Rabbit Hole problem.
The fix is similar to the 2.x issue here: https://www.drupal.org/project/rabbit_hole/issues/3567965
Comment #16
andreas_konstanz commentedI just run in the same issue. I'm not using Rabbit Hole. I'm using the Taxonomy Views Integrator (TVI) module which may be the cause of the problem.
Newly entered terms are displayed with a weight of 0. Changes are not saved, regardless of whether you enter new weight values or position the terms using drag and drop.
I have two identical Drupal installations, both with TVI activated, one running on Drupal 11.2 without any sorting issues, the other on Drupal 11.3.3 with the problems described.
Comment #17
anybody@andreas_konstanz I think TVI might also be affected by the same (wrong) handling as described in #3533870: Change the way Third Party Settings are set
Maybe you'd want to create an issue at TVI linking that and this issue and also link it here?
Maybe you can even provide a similar MR for the fix over there?
The rabbit_hole issue has been fixed here: #3567965: Rabbit Hole settings are shown on vocabulary overview form but there's no tagged release yet.
Comment #18
danflanagan8Thanks for everyone's comments on this. I was so confused and never would have figured this out.
I ran into this on D11.3 and we're using TVI, so that's probably our problem. Per @anybody's suggestion, I went to the TVI to create an issue based on the Rabbit Hole one, but luckily it already existed and is already fixed: #3576542: TVI form should not be present on term listing and breaks the taxonomy term sorting functionality
Comment #19
anybodyPlease note that there are several modules that are affected by this, see above. If anyone finds further ones, please list them here and get them fixed :)
Comment #20
anybodyComment #21
dunx commentedI have the same issue with a fresh install of Drupal CMS this morning - current stable version locally under ddev.
To recreate issue:
So very easy to recreate.
I can drag and drop the terms to reorder them and see the message '* You have unsaved changes.' but there is no way to save the new order - no Save button at the top or bottom of the page and no autosave happening. Same occurs if using row weights. This feels like a significant regression somewhere.
Top of screen - no option to save:

Bottom of screen - no option to save:

Comment #22
anybody@dunx which contrib modules are enabled that could break this? Do you see any settings on the taxonomy terms list page? (not part of your screenshot).
I think one of the related contrib modules is causing this. The root cause in these IMHO is #3533870: Change the way Third Party Settings are set - they all should implement their third party settings this way to solve the issue. Seems something in D11 broke that.
I already found several contrib modules causing this issue. TVI, Rabbit Hole, Simplify, ... Let's get this fixed together!
Comment #23
anybodyPS: Might still be a different issue. Did you check the browser console? And as I saw you're using the new Navigation module that moves the "Save" button to top right - I guess this might be a conflict around that in your case!
But what ever causes this for a fresh Drupal CMS installation - it's major!
Comment #24
dunx commentedAs per 8 above: "No additional modules, themes or recipes installed at all (rabbit_hole or otherwise)."
So fresh install of Drupal CMS with nothing touched. Error is adding and trying to re-order a taxonomy.
Should I raise a separate issue on Drupal CMS or let it work through here?
Comment #25
quietone commentedReading the comments this does not appear to be an issue for Drupal core. This still needs steps to steps to reproduce the issue starting from "Install Drupal core". Postponing on this step.
@dunx, Yes talking to the Drupal CMS folks might help. There is also a support channel for drupal cms, #drupal-cms-support.
V
Comment #26
dunx commentedCreated https://www.drupal.org/project/drupal_cms/issues/3585951 for Drupal CMS and added this issue as related.
Comment #27
dunx commentedComment #28
vensiresJust for clearance, I don't know if this is still valid for Drupal core but from my research, #3585951: Form actions require clear cache to be displayed in the toolbar is related to the Gin theme itself.
Comment #29
ckaotikWe had this issue too, but in our case it was due to a custom template for links. This caused the link to render but not its children, which the overview form uses during processing.
Error messages shown were for example
-> in our case, it was not a core issue