A taxonomy vocabulary cannot be deleted through the interface, AJAX error code 200.

Created on 5 January 2024, 11 months ago
Updated 8 January 2024, 11 months ago

Problem/Motivation

In the path /admin/structure/taxonomy, it is not possible to delete a previously created vocabulary. When clicking the delete button, an error message 'ops, something went wrong. Check your browser's developer console for more details.' appears. In the browser, the following error is displayed: 'Uncaught error: There was an HTTP AJAX error. HTTP Result Code: 200. The debugging information is detailed below.

Path: /admin/structure/taxonomy/manage/taxonomia_para_borrar/delete?destination=/admin/structure/taxonomy. StatusText: parsererror. ResponseText: [{"command":"settings","settings":{"ajaxPageState":{"theme":"seven","theme_token":"VnSPjhi68kmAKBbJXl3IupPtQn0lixf9HTvqkqNrZxk","libraries":"eJx9UgFuwyAM_BCDN-wlkUM8Qkswsk3W7vUjbbIlmVYJyec729gYGKaYOyVKPbBbrVVGNPCvZEeakWNWzHoM6wSB_eie5qQtVn4KRU_Z9OCvjW-nuB3uXooXMX0MXYkF3QZMS1C8aYXkBq4Fkv1l3lLMV3kdsrbVghg3GbzGGR_ZB95TSlAED-QQIVGwcIHbkWcqfVVtA-1phT7hwBD-soxSKEu7-qll4glS_ELz0fqFTxSa0O2wlTm80qyMcTKCM2bnE4jc7YQiEFBWNiTq2yOI3tuwwchIrL7q1tbmm9NvOPsWxUPB92XtTauLUNlUQd5KLfixe_kGWKv4lg"},"ajaxTrustedUrl":{"form_action_p_pvdeGsVG5zNF_XLGPTvYSKCf43t8qZYSwcfZl2uzM":true},"pluralDelimiter":"\u0003","user":{"uid":"1","permissionsHash":"efb4e575ff6688acee77ae2f12e85ea1d5a33e6e2725f100b2959892db6a2068"}},"merge":true},{"command":"add_js","selector":"body","data":[{"src":"\/core\/misc\/form.js?v=10.2.0"},{"src":"\/core\/misc\/details-summarized-content.js?v=10.2.0"},{"src":"\/core\/misc\/details-aria.js?v=10.2.0"},{"src":"\/core\/misc\/details.js?v=10.2.0"}]},{"command":"openDialog","selector":"#drupal-modal","settings":null,"data":"\u003Cform class=\u0022taxonomy-vocabulary-confirm-delete taxonomy-vocabulary-confirm-form confirmation\u0022 data-drupal-selector=\u0022taxonomy-vocabulary-confirm-delete-see5qx4k9sw\u0022 action=\u0022\/admin\/structure\/taxonomy\/manage\/taxonomia_para_borrar\/delete?destination=\/admin\/structure\/taxonomy\u0022 method=\u0022post\u0022 id=\u0022taxonomy-vocabulary-confirm-delete--SeE5qx4K9sw\u0022 accept-charset=\u0022UTF-8\u0022\u003E\n Al eliminar un vocabulario se eliminan todos los t\u00e9rminos que hay en \u00e9l. Esta acci\u00f3n no se puede deshacer.\u003Cinput data-drupal-selector=\u0022edit-confirm\u0022 type=\u0022hidden\u0022 name=\u0022confirm\u0022 value=\u00221\u0022 \/\u003E\n\u003Cdetails data-drupal-selector=\u0022edit-entity-deletes\u0022 aria-describedby=\u0022edit-entity-deletes--AmyM3IxuSuU--description\u0022 id=\u0022edit-entity-deletes--AmyM3IxuSuU\u0022 class=\u0022js-form-wrapper form-wrapper seven-details\u0022 open=\u0022open\u0022\u003E \u003Csummary role=\u0022button\u0022 aria-controls=\u0022edit-entity-deletes--AmyM3IxuSuU\u0022 aria-expanded=\u0022true\u0022 aria-pressed=\u0022true\u0022 class=\u0022seven-details__summary\u0022\u003E\n \u003Cspan\u003EBorrados de configuraci\u00f3n\u003C\/span\u003E\n \u003C\/summary\u003E\u003Cdiv class=\u0022seven-details__wrapper details-wrapper\u0022\u003E\n \u003Cdiv class=\u0022seven-details__description\u0022\u003ESe eliminar\u00e1 la configuraci\u00f3n que se enumera.\u003C\/div\u003E\u003Cdiv class=\u0022item-list\u0022\u003E\u003Ch3\u003EContent language settings\u003C\/h3\u003E\u003Cul data-drupal-selector=\u0022edit-language-content-settings\u0022\u003E\u003Cli\u003Etaxonomy_term.taxonomia_para_borrar\u003C\/li\u003E\u003C\/ul\u003E\u003C\/div\u003E\u003C\/div\u003E\n\u003C\/details\u003E\n\u003Cinput autocomplete=\u0022off\u0022 data-drupal-selector=\u0022form-ml5rcpuuconay9aqu1nrwuhn0au06lbfybjnsgdkvvy\u0022 type=\u0022hidden\u0022 name=\u0022form_build_id\u0022 value=\u0022form-ML5rCpuucONay9aqu1nrWuHN0AU06lBFybjNsgdKvVY\u0022 \/\u003E\n\u003Cinput data-drupal-selector=\u0022edit-taxonomy-vocabulary-confirm-delete-form-token-uyu-qcwwdak\u0022 type=\u0022hidden\u0022 name=\u0022form_token\u0022 value=\u00224i-63P70lyrf7CF51WnAqMOk2GYn7HbISnf7m1r56AA\u0022 \/\u003E\n\u003Cinput data-drupal-selector=\u0022edit-taxonomy-vocabulary-confirm-delete-tc2fsqqoe-g\u0022 type=\u0022hidden\u0022 name=\u0022form_id\u0022 value=\u0022taxonomy_vocabulary_confirm_delete\u0022 \/\u003E\n\u003Cdiv data-drupal-selector=\u0022edit-actions\u0022 class=\u0022form-actions js-form-wrapper form-wrapper\u0022 id=\u0022edit-actions--2uPzgj0rUrA\u0022\u003E\u003Cinput data-drupal-selector=\u0022edit-submit\u0022 type=\u0022submit\u0022 id=\u0022edit-submit--x7xc-3Im9rA\u0022 name=\u0022op\u0022 value=\u0022Delete\u0022 class=\u0022button button--primary js-form-submit form-submit\u0022 \/\u003E\n\u003Ca href=\u0022\/admin\/structure\/taxonomy\u0022 class=\u0022button dialog-cancel\u0022 data-drupal-selector=\u0022edit-cancel\u0022 id=\u0022edit-cancel--Tijx6eq9ezg\u0022 title=\u0022Cancelar\u0022\u003ECancelar\u003C\/a\u003E\u003C\/div\u003E\n\n\n\u003C\/form\u003E\n","dialogOptions":{"width":"880","modal":true,"title":"\u00bfEst\u00e1 seguro que desea eliminar el vocabulario Taxonomia para borrar?"}' name: "AjaxError", stack: "@https://chg.ddev.site/core/misc/ajax.js?v=10.2.0:196:32\n@https://chg.ddev.site/core/misc/ajax.js?v=10.2.0:1915:3\n" }


Afterwards, in the log, this error appears:


2024/01/05 10:06:58 [warn] 2034#2034: *3822 upstream sent more data than specified in "Content-Length" header while reading upstream, client: 20.201.7.5, server: , request: "POST /admin/structure/taxonomy/manage/taxonomia_para_borrar/delete?destination=/admin/structure/taxonomy&_wrapper_format=drupal_modal HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm.sock:", host: "chg.ddev.site", referrer: "https://chg.ddev.site/admin/structure/taxonomy"


When blocking JavaScript in the browser, it works normally, that's why, blocking each file individually, it is noticed that the /web/core/misc/ajax.js file is the one causing this effect.


Steps to reproduce

Having the Taxonomy module installed and the following characteristics:

  • KUbuntu 22.04.3 LTS
  • ddev version v1.22.6
  • Drupal 10.2.1.
  • Apache/2.4.56 (Debian)
  • nginx/1.24.0
πŸ› Bug report
Status

Postponed: needs info

Version

10.2 ✨

Component
TaxonomyΒ  β†’

Last updated about 5 hours ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @xjm
  • πŸ‡¬πŸ‡§United Kingdom @catch
Created by

πŸ‡ͺπŸ‡ΈSpain jifernandezs

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

Comments & Activities

  • Issue created by @jifernandezs
  • πŸ‡ͺπŸ‡ΈSpain jifernandezs

    I have identified an issue in the core, but my knowledge in AJAX is limited to creating an effective patch. If I comment out line 336 of the file /web/core/misc/ajax.js, where Drupal.ajax(elementSettings); is called, the error does not occur. Do you know if someone can help me, please? Thank you in advance.

  • Status changed to Postponed: needs info 11 months ago
  • This looks possibly the same as previous-reported πŸ› Uncaught ajax.js error / exception Active . Can you confirm?

  • πŸ‡ͺπŸ‡ΈSpain jifernandezs

    I have tried to apply all three patches, but I am unable to do so. Additionally, I have observed that batch processes also generate a similar error in the log:


    2024/01/05 16:19:08 [warn] 2044#2044: *126 upstream sent more data than specified in "Content-Length" header while reading upstream, client: 20.201.7.5, server: , request: "POST /batch?id=9964&op=do_nojs&op=do&_format=json HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm.sock:", host: "chg.ddev.site", referrer: "https://chg.ddev.site/batch?id=9964&op=start"


    And when I attempt to upload a file, I encounter an issue. However, this is not related to the core, but it may be associated. The error message is as follows:

    Oops, something went wrong. Check your browser's developer console for more details.



    Uncaught 
    Object { message: '\nThere was an HTTP AJAX error.\nHTTP Result Code: 200\nBelow is the debugging information.\nPath: /admin/config/chg/upload-puntos-de-control?element_parents=file_accdb&ajax_form=1\nStatusText: parsererror\nResponseText: [{"command":"settings","settings":{"ajaxPageState":{"theme":"seven","theme_token":"Vb6TVw9WTDMv89tmhBqFxeAPAoznJOmnKRfgrY9TozU","libraries":"eJx9kQ1uwyAMhS_E4Aw7SeRQh9DyNxuypacfNKFrIy0Skh_vs42R4eJtGHKMbgRSe5SZEAX8i-QcFyQbMob8njYwAulZbeHAWuRnI6tjECPoW_XrSepFD6fwymK0Zkg2oepC1IKMP7mAUxcqCZz8cz6cDTc-T9nHqkmEHYPOdsFH9ea3L1Oo5PpVkFY5RfIbCVWBs3cUk3XPBk2LqT4C38jRo3rRkhdzxiTP1gvGBYPSDpjXrd2b45EZDPLuGhfH-hfOa53ZCJ4jZV1yH6ffxWGpx7tE1pDws22vstJAIVEYqbdq-rFC_gWglOJN"},"ajax":{"edit-file-accdb-remove-button--4uUZnfM_1Vo":{"callback":["Drupal\\\\file\\\\Element\\\\ManagedFile","uploadAjaxCallback"],"wrapper":"ajax-wrapper--iAkOvhz1t0w","effect":"none","progress":{"type":"throbber","message":null},"event":"mousedown","keypress":true,"prevent":"click","url":"\\/admin\\/config\\/chg\\/upload-puntos-de-control?element_parents=file_accdb\\u0026ajax_form=1\\u0026_wrapper_format=drupal_ajax","httpMethod":"POST","dialogType":"ajax","submit":{"_triggering_element_name":"file_accdb_remove_button","_triggering_element_value":"Eliminar"}}},"ajaxTrustedUrl":{"\\/admin\\/config\\/chg\\/upload-puntos-de-control?element_parents=file_accdb\\u0026ajax_form=1\\u0026_wrapper_format=drupal_ajax":true},"pluralDelimiter":"\\u0003","user":{"uid":"1","permissionsHash":"efb4e575ff6688acee77ae2f12e85ea1d5a33e6e2725f100b2959892db6a2068"}},"merge":true},{"command":"update_build_id","old":"form-lWvacYiVWv7oTffEeQIN733fQfqTznYnQGjtV1tUV78","new":"form-BhbE-sUhg1Fl4y1eLX6JqVtkqC-xQsF6INkYiRbA4fI"},{"command":"insert","method":"replaceWith","selector":null,"data":"\\u003Cdiv id=\\u0022ajax-wrapper--iAkOvhz1t0w\\u0022\\u003E\\u003Cdiv class=\\u0022js-form-item form-item js-form-type-managed-file form-type-managed-file js-form-item-file-accdb form-item-file-accdb form-no-label\\u0022\\u003E\\n        \\n\\u003Cdiv id=\\u0022edit-file-accdb--1ro2tq03iSk\\u0022 class=\\u0022js-form-managed-file form-managed-file\\u0022\\u003E\\n  \\u003Cinput data-drupal-selector=\\u0022edit-file-accdb-fids\\u0022 type=\\u0022hidden\\u0022 name=\\u0022file_accdb[fids]\\u0022 value=\\u002220357\\u0022 \\/\\u003E\\n\\n\\u003Cspan data-drupal-selector=\\u0022edit-file-accdb-file-20357-filename\\u0022 class=\\u0022file file--mime-application-octet-stream file--general\\u0022\\u003E \\u003Ca href=\\u0022\\/system\\/files\\/files\\/1704471827\\/20230915_ResultadosFQ_SPF_incremental.accdb\\u0022 type=\\u0022application\\/octet-stream\\u0022 title=\\u002220230915_ResultadosFQ_SPF_incremental.accdb\\u0022\\u003E20230915_ResultadosFQ_SPF_incremental.accdb\\u003C\\/a\\u003E\\u003C\\/span\\u003E\\n\\u003Cinput data-drupal-selector=\\u0022edit-file-accdb-remove-button\\u0022 formnovalidate=\\u0022formnovalidate\\u0022 type=\\u0022submit\\u0022 id=\\u0022edit-file-accdb-remove-button--4uUZnfM_1Vo\\u0022 name=\\u0022file_accdb_remove_button\\u0022 value=\\u0022Eliminar\\u0022 class=\\u0022button js-form-submit form-submit\\u0022 \\/\\u003E\\n\\n\\u003C\\/div\\u003E\\n\\u003C\\/div\\u003E","settings":null' name: "AjaxError", stack: "@https://chg.ddev.site/core/misc/ajax.js?v=10.2.1:196:32\n@https://chg.ddev.site/core/misc/ajax.js?v=10.2.1:1915:3\n" }
    ​
    message: '\nThere was an HTTP AJAX error.\nHTTP Result Code: 200\nBelow is the debugging information.\nPath: /admin/config/chg/upload-puntos-de-control?element_parents=file_accdb&ajax_form=1\nStatusText: parsererror\nResponseText: [{"command":"settings","settings":{"ajaxPageState":{"theme":"seven","theme_token":"Vb6TVw9WTDMv89tmhBqFxeAPAoznJOmnKRfgrY9TozU","libraries":"eJx9kQ1uwyAMhS_E4Aw7SeRQh9DyNxuypacfNKFrIy0Skh_vs42R4eJtGHKMbgRSe5SZEAX8i-QcFyQbMob8njYwAulZbeHAWuRnI6tjECPoW_XrSepFD6fwymK0Zkg2oepC1IKMP7mAUxcqCZz8cz6cDTc-T9nHqkmEHYPOdsFH9ea3L1Oo5PpVkFY5RfIbCVWBs3cUk3XPBk2LqT4C38jRo3rRkhdzxiTP1gvGBYPSDpjXrd2b45EZDPLuGhfH-hfOa53ZCJ4jZV1yH6ffxWGpx7tE1pDws22vstJAIVEYqbdq-rFC_gWglOJN"},"ajax":{"edit-file-accdb-remove-button--4uUZnfM_1Vo":{"callback":["Drupal\\\\file\\\\Element\\\\ManagedFile","uploadAjaxCallback"],"wrapper":"ajax-wrapper--iAkOvhz1t0w","effect":"none","progress":{"type":"throbber","message":null},"event":"mousedown","keypress":true,"prevent":"click","url":"\\/admin\\/config\\/chg\\/upload-puntos-de-control?element_parents=file_accdb\\u0026ajax_form=1\\u0026_wrapper_format=drupal_ajax","httpMethod":"POST","dialogType":"ajax","submit":{"_triggering_element_name":"file_accdb_remove_button","_triggering_element_value":"Eliminar"}}},"ajaxTrustedUrl":{"\\/admin\\/config\\/chg\\/upload-puntos-de-control?element_parents=file_accdb\\u0026ajax_form=1\\u0026_wrapper_format=drupal_ajax":true},"pluralDelimiter":"\\u0003","user":{"uid":"1","permissionsHash":"efb4e575ff6688acee77ae2f12e85ea1d5a33e6e2725f100b2959892db6a2068"}},"merge":true},{"command":"update_build_id","old":"form-lWvacYiVWv7oTffEeQIN733fQfqTznYnQGjtV1tUV78","new":"form-BhbE-sUhg1Fl4y1eLX6JqVtkqC-xQsF6INkYiRbA4fI"},{"command":"insert","method":"replaceWith","selector":null,"data":"\\u003Cdiv id=\\u0022ajax-wrapper--iAkOvhz1t0w\\u0022\\u003E\\u003Cdiv class=\\u0022js-form-item form-item js-form-type-managed-file form-type-managed-file js-form-item-file-accdb form-item-file-accdb form-no-label\\u0022\\u003E\\n        \\n\\u003Cdiv id=\\u0022edit-file-accdb--1ro2tq03iSk\\u0022 class=\\u0022js-form-managed-file form-managed-file\\u0022\\u003E\\n  \\u003Cinput data-drupal-selector=\\u0022edit-file-accdb-fids\\u0022 type=\\u0022hidden\\u0022 name=\\u0022file_accdb[fids]\\u0022 value=\\u002220357\\u0022 \\/\\u003E\\n\\n\\u003Cspan data-drupal-selector=\\u0022edit-file-accdb-file-20357-filename\\u0022 class=\\u0022file file--mime-application-octet-stream file--general\\u0022\\u003E \\u003Ca href=\\u0022\\/system\\/files\\/files\\/1704471827\\/20230915_ResultadosFQ_SPF_incremental.accdb\\u0022 type=\\u0022application\\/octet-stream\\u0022 title=\\u002220230915_ResultadosFQ_SPF_incremental.accdb\\u0022\\u003E20230915_ResultadosFQ_SPF_incremental.accdb\\u003C\\/a\\u003E\\u003C\\/span\\u003E\\n\\u003Cinput data-drupal-selector=\\u0022edit-file-accdb-remove-button\\u0022 formnovalidate=\\u0022formnovalidate\\u0022 type=\\u0022submit\\u0022 id=\\u0022edit-file-accdb-remove-button--4uUZnfM_1Vo\\u0022 name=\\u0022file_accdb_remove_button\\u0022 value=\\u0022Eliminar\\u0022 class=\\u0022button js-form-submit form-submit\\u0022 \\/\\u003E\\n\\n\\u003C\\/div\\u003E\\n\\u003C\\/div\\u003E","settings":null'
    ​
    name: "AjaxError"
    ​
    stack: "@https://chg.ddev.site/core/misc/ajax.js?v=10.2.1:196:32\n@https://chg.ddev.site/core/misc/ajax.js?v=10.2.1:1915:3\n"
    ​
    : Error: 
    ajax.js:196:32
    


    Then, in the console, I see:


    2024/01/05 16:23:47 [warn] 2047#2047: *176 upstream sent more data than specified in "Content-Length" header while reading upstream, client: 20.201.7.5, server: , request: "POST /admin/config/chg/upload-puntos-de-control?element_parents=file_accdb&ajax_form=1&_wrapper_format=drupal_ajax HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm.sock:", host: "chg.ddev.site", referrer: "https://chg.ddev.site/admin/config/chg/upload-puntos-de-control"
  • You could not apply the patches, or the patches did not work?

  • πŸ‡ͺπŸ‡ΈSpain jifernandezs

    The second one

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Can you update to 10.2.1 and report back?

  • πŸ‡ͺπŸ‡ΈSpain jifernandezs

    Yes, it's already updated, and it's still the same. Additionally, in case it helps, I have:

    • KUbuntu 22.04.3 LTS
    • ddev version v1.22.6
  • There are like three different errors being reported in this one issue.

  • πŸ‡ͺπŸ‡ΈSpain jifernandezs

    Apologies, this issue will be for the first error you reported. I initially thought subsequent issues were related, but I'll separate them into multiple issues.

Production build 0.71.5 2024