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.
When trying to edit a term, the AHAH request to retrieve the edit for comes back with this error: 500 (Service unavailable (with message)). The error is occurring in some server environments, but not others. Fortunately, the fix is quite simple. A NULL $form_state variable is being passed to drupal_prepare_form(). Setting the $form_state
variable to array('submitted' => FALSE)
fixes the problem. I've attached a patch.
Comment | File | Size | Author |
---|---|---|---|
#3 | taxonomy_error500ajax.png | 58.82 KB | barrabasah |
ahah_edit_fix.patch | 725 bytes | jtsnow |
Comments
Comment #1
asb CreditAttribution: asb commentedPatch applies cleanly against taxonomy_manager 6.x-2.2:
Seems to fix #1174350: Can't edit taxonomy term (ajax error 500) as well.
So far, no side effects encountered.
Thanks a lot for this!
-asb
Comment #2
ShaneOnABike CreditAttribution: ShaneOnABike commentedI can confirm that this resolved the 500 issue that we were having on our site - could we deploy this?
Comment #3
barrabasah CreditAttribution: barrabasah commentedHello
fix problem taxonomy term with 500 error server in autocomplite terms in AJAX window my solution and problem was be there:
Comment #4
ivnish CreditAttribution: ivnish commented