node_form_alter() currently calls taxonomy_form_all() with $free_tags set to 1. This means that loading search/node on a site with a significant number of tags will likely cause a WSOD due to hitting the PHP memory limit. Since the function is called from a form alter, you can't prevent it from being called via a contrib module. The function was removed entirely in #693362: taxonomy_form_all() is dangerous, but we can't do that for D6. We should instead add a variable check so that site builders can disable listing tags at all.

Comments

deviantintegral’s picture

Title: Add a variable to disable tags on the search form » Add a variable to disable tag wigets on the search and content forms
Status: Active » Needs review
StatusFileSize
new1.2 KB

Here's a patch that adds a variable to disable tag widgets on search/node and admin/content/node.

Obviously this is a serious issue for freetagging, but we could also consider changing this to disable all taxonomy UI on these pages regardless of vocabulary settings.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.