View Issue Details

IDProjectCategoryView StatusLast Update
0034782mantisbtupgradepublic2024-09-30 05:42
Reporterwebaware Assigned Todregad  
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.27.0 
Summary0034782: Can't enable category General since 2.27.0
Description

I now have 2.27.0 up and running. All categories were suddenly unavailable, so I had to enable each category at the All Projects level, and then for individual projects that had additional categories defined.

However, I cannot enable category General. The error message given is as follows:

APPLICATION ERROR #1504
Operation cannot be completed, because Category "General" is defined as Default For Moves in at least one project or globally.

What is the recommended change for this? Should I define some other category for $g_default_category_for_moves?

TagsNo tags attached.

Relationships

related to 0034783 feedback Checking URL to installation is failing 
related to 0031017 closeddregad Allow disabling Categories 

Activities

vboctor

vboctor

2024-09-29 21:03

manager   ~0069292

I was able to reproduce this as well. It may be related to installer failing due to 0034783 and hence not running the appropriate steps. Updating the category logic seems to fail without checking the change being applied to the category. For example, enabling a category shouldn't conflict with it being the default, yet disabling it does conflict.

dregad

dregad

2024-09-30 04:40

developer   ~0069297

@webaware

All categories were suddenly unavailable, so I had to enable each category at the All Projects level

This is not a normal situation, the installer includes an update step (213) that should have set the status of all categories to 1 (Enabled).

For some reason this failed for you, we need to figure out why. Did you notice any errors during the upgrade ? What is your current Database Schema Version ?

As for fixing error 1504, you have 2 options:

  • temporarily change the default category to something else, enable General category and restore it as default
  • SQL UPDATE mantis_category_table SET status = 1 WHERE id = ...

I would also recommend to check the default value for mantis_category_table.status column, it should be 1.

dregad

dregad

2024-09-30 04:48

developer   ~0069298

@vboctor

installer failing due to 0034783 and hence not running the appropriate steps

But in that case you should get an error / notification that your schema is out of date...

Updating the category logic seems to fail without checking the change being applied to the category

You mean in install_category_status_default() function ? Or when updating a category from Manage / Edit Project pages ?

webaware

webaware

2024-09-30 05:10

reporter   ~0069299

My apologies, DB schema was still at 211. I have run the update procedure and it's now 213, and all categories are enabled including General. I thought I'd done it, but it would seem I did not!

Also, default for mantis_category_table.status is 1.

Thanks for your attention, and again, my apologies.

dregad

dregad

2024-09-30 05:42

developer   ~0069300

Thanks for the feedback.