AJAX error when editing term content

Created on 9 April 2019, almost 6 years ago
Updated 4 February 2023, about 2 years ago

Hi,
I get an AJAX error whenever I try to edit a term in the taxonomy manager interface.
Anything that uses ajax (media, entity reference, paragraphs etc).

πŸ› Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia kyuubi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States alfattal Minnesota

    @VladimirAus Sorry for the late response. Here is the requested information:

    Version of my environment:
    Drupal 9.5.2
    PHP 8.0.27
    Taxonomy Manager version 2.0.7 and 2.0.8

    Steps to reproduce:

    1. Go to Structure > Taxonomy and edit any vocabulary.
    2. In the Manage fields tab, add general field like (Email) or (Link)
    3. In the new field setting, select Unlimited, save field settings then save settings. This will add the Add another item button
    4. Navigate to the list tab and add some terms to your vocabulary
    5. Go to Structure > Taxonomy Manager and click on that vocabulary. From the terms list block on the left, click on any term. This will open the edit panel to the right.
    6. Scroll down to the field you added and click on the Add another item. A spinning (Please wait) will show momentarily and then disappear without adding another field.

    Please see the attached screenshot.

  • Status changed to Active about 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States alfattal Minnesota
  • πŸ‡ΊπŸ‡ΈUnited States alfattal Minnesota
  • πŸ‡ΊπŸ‡ΈUnited States alfattal Minnesota
  • πŸ‡ΊπŸ‡ΈUnited States alfattal Minnesota

    @VladimirAus Did you have the chance to look into the information I provided?

  • πŸ‡§πŸ‡―Benin delacosta456

    hi all
    i also confirm this issue after selecting "Entity browser" as Widget on field's form display and now going back to the edit/add term page

  • Status changed to Needs work 9 months ago
  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia

    Please create MR.

  • πŸ‡¬πŸ‡ΉGuatemala luisj0_c

    I also have the same scenario as @delacosta456 and have confirmed that it is happening.

  • Status changed to Needs review 7 months ago
  • πŸ‡ΊπŸ‡¦Ukraine dburiak

    It looks like it's related to the Drupal core issue https://www.drupal.org/project/drupal/issues/2504115 β†’ .

    The workaround is to render the form without Ajax and send a taxonomy term ID through the URL query parameter.
    The patch is attached.

  • Status changed to Needs work 7 months ago
  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia

    Thank you for your contribution.
    Can you create MR?

  • First commit to issue fork.
  • Merge request !49Render the taxonomy form without AJAX. β†’ (Merged) created by kolesnikoff
  • πŸ‡ΊπŸ‡¦Ukraine kolesnikoff

    @dburiak, I pushed your patch to the branch. Please fix the issues we found while testing the latest changes.

  • Pipeline finished with Failed
    7 months ago
    Total: 404s
    #280465
  • Pipeline finished with Failed
    5 months ago
    Total: 572s
    #318156
  • Pipeline finished with Failed
    5 months ago
    Total: 184s
    #318175
  • Pipeline finished with Failed
    5 months ago
    Total: 163s
    #318204
  • Pipeline finished with Failed
    5 months ago
    Total: 189s
    #318267
  • Pipeline finished with Failed
    5 months ago
    Total: 500s
    #318307
  • Pipeline finished with Failed
    5 months ago
    Total: 157s
    #318316
  • Pipeline finished with Failed
    5 months ago
    Total: 162s
    #319121
  • Pipeline finished with Failed
    5 months ago
    Total: 190s
    #319149
  • Pipeline finished with Failed
    5 months ago
    Total: 153s
    #319171
  • Pipeline finished with Canceled
    5 months ago
    Total: 124s
    #319197
  • Pipeline finished with Canceled
    5 months ago
    Total: 186s
    #319202
  • Pipeline finished with Failed
    5 months ago
    Total: 162s
    #319207
  • Pipeline finished with Canceled
    5 months ago
    Total: 118s
    #319223
  • Pipeline finished with Failed
    5 months ago
    Total: 177s
    #319225
  • Pipeline finished with Failed
    5 months ago
    Total: 162s
    #319233
  • πŸ‡ΊπŸ‡¦Ukraine dburiak

    The PR is updated.
    The updated patch can be found in the attachment.

  • πŸ‡ΊπŸ‡¦Ukraine dburiak
  • Status changed to Needs review 5 months ago
  • πŸ‡ΊπŸ‡ΈUnited States phernand42

    I had to make a small adjustment to this patch since it did not apply cleanly due to another taxonomy manager patch πŸ› Form element taxonomy_manager_tree broken Active that I had to apply earlier. Here is an updated patch just in case there are folks out that applied patch from issue 3474919.

  • First commit to issue fork.
  • Pipeline finished with Failed
    4 months ago
    Total: 158s
    #353877
  • πŸ‡¦πŸ‡ΊAustralia jannakha Brisbane!

    created a patch from MR (it's merged with #3474919)
    make sure library/jquery.fancytree contains all JS - see #3467549 ✨ Change require custom libraries to suggestions as a better method with more options Needs work

  • Pipeline finished with Skipped
    4 months ago
    #354096
  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia

    Thank you all! Committed! 🍻
    This issue also fixes πŸ› Form element taxonomy_manager_tree broken Active .

  • πŸ‡ΊπŸ‡ΈUnited States torfj Seattle, WA

    This issues causes the toolbar position to be next to the tree and only abote the term page. Before it was above both the tree and term page. See images.

  • πŸ‡ΊπŸ‡ΈUnited States torfj Seattle, WA

    The search functionality is also not working with these changes..

    It also seems rather radical to completely render the form without Ajax, as this is not ideal from a user experience perspective. Do the maintainers have any plans to look into a solution where Ajax will still work on the form?

  • Status changed to Needs work about 2 months ago
  • πŸ‡¦πŸ‡ΉAustria klausi πŸ‡¦πŸ‡Ή Vienna

    Oh my, this change destroyed one of the most important features of taxonomy manager: quickly clicking and navigating between terms. Created a citical bug report at πŸ› Restore term clicking AJAX functionality Active , will post a fix shortly for all AJAX fans.

  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia

    This issue was committed. Keep it close.
    Cheers @klausi for opening πŸ› Restore term clicking AJAX functionality Active .

  • πŸ‡¦πŸ‡ΊAustralia VladimirAus Brisbane, Australia

    One of the reasons Ajax was removed is that it stopped working with media libraries and other Ajax dependent modules a while back.

  • πŸ‡¦πŸ‡ΉAustria klausi πŸ‡¦πŸ‡Ή Vienna

    We now have a new approach for the AJAX functionality in πŸ› Restore term clicking AJAX functionality Active that works with multi-value fields and media libraries.

    Please test the merge request there. If there are no objections I'm planning to merge it in a couple of days.

    Thanks @torfj for working on it so hard!

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

Production build 0.71.5 2024