Hierarchical Select Taxonomy module adds some settings to Vocabulary settings page. Also it adds Preview section. Preview is very useful feature when vocabulary is being configured to use HS. But for Tags vocabularies it loads the whole list and this leads to PHP fatal error

Fatal error: Maximum execution time of 30 seconds exceeded in ...

To avoid this I created small patch that checks if the vocabulary we are editing is Tags and does not display Preview section for it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers’s picture

Status: Needs review » Needs work

Excellent assessment. Not sure why nobody brought this up sooner :) Of course, I wholeheartedly agree :)

However, I don't agree with your patch. It disables the preview, which is good. But it's not enough. It doesn't make sense to enable HS for tag vocabularies in the first place. So I think we should only add the HS config form to the vocabulary form when the vocabulary is NOT a tag vocabulary. And there should be a message saying something like "HS can only be enabled for non-tag vocabularies".

What do you think? :)

vgarvardt’s picture

I agree.

I needed quick fix for the HS when I posted this patch.
I will create new patch that will implement your idea - disable HS completely for Tags vocabularies.

vgarvardt’s picture

Version: 6.x-3.1 » 6.x-3.3
Status: Needs work » Needs review
FileSize
3.3 KB

Here is new patch version, that does not display HS settings for Tags vocabularies.

Wim Leers’s picture

Title: Maximum execution time exceeded for Tags vocabularies » Maximum execution time exceeded for freetagging vocabularies
Status: Needs review » Fixed

Great work, thanks! :) Committed: http://drupal.org/cvs?commit=412232.

I did not backport this to D6 though. It'd be great if you wanted to contribute that too, if not, this will only be fixed in D6.

Wim Leers’s picture

Great work, thanks! :) Committed: http://drupal.org/cvs?commit=412232.

I did not backport this to D6 though. It'd be great if you wanted to contribute that too, if not, this will only be fixed in D6.

vgarvardt’s picture

Backport to D5 you mean?

Wim Leers’s picture

Okay that was stupid of me. Of course, backport to D5, since this obviously was a patch to D6. My bad!

Status: Fixed » Closed (fixed)

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