Hi,

I have installed Drupal 6.19. Without enabling "Taxonomy" or "book" modules, I have installed and enabled the modules of "Category", "Category Display" and "Category Menu". I did not change anything in the "content type". Drupal allowed me to create the first container, let's call it "XYZ". However, when I try to create another container, a new fieldbox appeared just below the first field, "Name: *". This new field has the label of "XYZ: *", and it expects a drop-down box which contains NIL entries. If I ignore this field and complete the balance form, leaving all default values as they are, then after clicking on SAVE, Drupal does not allow this second container to be created and returns the error message - "You must choose a category from XYZ". When I go to create a category, the same new field with the "XYZ" label appears with NIL entries in the drop-down box, and I am not able to create any category either.

If I want to delete the already-created container "XYZ", it does not allow me to do so. The same error message appears.

I then enabled the "Taxonomy" module (leaving the "book" module unchecked). Without creating any nodes or terms, I tried to create the second container, or a new category. However, the same problem continues.

The site is clean and empty. There are no pages or stories in it.

Request inputs and guidance from gurus and experts on the category module on how to handle this situation.

Thanks in advance.

Comments

JirkaRybka’s picture

Assigned: san65 » Unassigned
Category: bug » support

You most probably did the grave mistake of configuring your new container, so that it's mandatory to categorize posts of the type "Category" and "Container" under XYZ. That doesn't make much sense, and if ever containers and categories should be categorized by other categories, it should only be configured as mandatory after the whole structure is set up. Seems like you locked yourself in an infinite loop of mandatory-categorization requirements.

Playing with Taxonomy is not going to help, you only can make a mess by running Category and Taxonomy together. If Taxonomy is needed, then install the Taxonomy Wrapper from Category administrative pages.

Now how to delete the broken container? I'm unsure what happens in straight deletion attepmts, but you might be able to edit the container, and configure it so that the categorization is not mandatory (open the "Container settings" part, it's there, somewhere...). If that doesn't work, try to reach to the database (with PhpMyAdmin or similar) in the table "category_cont", and change the "required" field from 1 to 0 on your container (should be the only row there, I guess). As a last resort, it might be possible to disable Category module (assuming that you don't have any real data in Category yet, I guess that's going to change XYZ to a regular node of unknown type, possible to delete, but I didn't really try this). This is dangerous option though, so keep backup copy.

This is a support request, unless something is really broken in code. Also assigning to yourself means that you're willing to resolve the issue, so it doesn't really help to get help from others ;-)

JirkaRybka’s picture

Thinking further, you should most probably also flush cache (after changing the "required" field in database), by hitting the cache clearing button on Performance administrative page.

san65’s picture

Priority: Critical » Minor
Status: Active » Fixed

Hello,

Thanks JirkaRybka for your inputs; much appreciated. You are right that as this was a support request, I should not have assigned the issue to myself. :-)

Turns out, however, that I could manage to fix the problem:

1. In Administer >> Content, I could delete the container.
2. I repeated the creation of XYZ, and without configuring it, I tried to create another container. The earlier situation recurred. I deleted XYZ again.
3. I then enabled Taxonomy in Administer >> Site building >> modules.
4. Without adding anything to Taxonomy, I created XYZ again.
5. This time, the earlier situation did not crop up.

Perhaps this means that the "categories" module requires "taxonomy" module to be prior-enabled?

Thanks.

Status: Fixed » Closed (fixed)

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