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.

#3 taxonomy_error500ajax.png58.82 KBbarrabasah
ahah_edit_fix.patch725 bytesjtsnow


asb’s picture

Status:Needs review» Reviewed & tested by the community

Patch applies cleanly against taxonomy_manager 6.x-2.2:

./sites/all/modules/taxonomy_manager# patch < ahah_edit_fix.patch
patching file taxonomy_manager.admin.inc
Hunk #1 succeeded at 803 (offset 1 line).

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!

ShaneOnABike’s picture

I can confirm that this resolved the 500 issue that we were having on our site - could we deploy this?

barrabasah’s picture

Issue tags:+error, +taxonomy, +Ajax, +500
new58.82 KB


fix problem taxonomy term with 500 error server in autocomplite terms in AJAX window my solution and problem was be there:


  1. enable the taxonomy title (module) for specific terms (tags)
  2. after that i hawe 500 olways when terms was be in base
  3. disable taxonomy term for "tags" name in my base drupal - then error go one