View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0033214 | mantisbt | customization | public | 2023-11-12 11:15 | 2023-11-19 10:46 |
Reporter | jut | Assigned To | |||
Priority | low | Severity | trivial | Reproducibility | always |
Status | feedback | Resolution | open | ||
Summary | 0033214: Status Icons Black After Update to | ||||
Description | I was wondering if anyone could guide me to help resolve why all my status icons turned black. Any help would be appreciated. I recently did switch over to a different webhost but I had a 1:1 copy as well as I upgraded my mantis version forward. I tried different version of PHP but older versions make mantis not function. Previous articles I looked into didn't really provide much insight so I am hoping someone can guide me correctly.
Version of Mantis : 2.26.0 Originally Posted on the forum | ||||
Tags | No tags attached. | ||||
Problem could be caused by a caching issue, or maybe your custom statuses are not consistently defined globally... Did you search this tracker ? There's been several reports of similar issues in the past, maybe this will help. Note that styles for status colors is dynamically generated. Try to access the CSS file directly, http://example.com/mantis/css/status_config.php and see if the colors match. If not maybe you can debug/troubleshoot from there. |
|
Well I do not believe the issue is with how the custom statuses are defined because there was no issue prior to the update i.e the colors displayed, furthermore when I omit the custom status, the issue persist with the defaults. When I go to inspect the page, I cannot find reference to where status color is defined in the css / it's not defined like it should be, the line is missing all together. |
|
|
|
@dregad while looking at some code around the status colors, I found that the cache_key we use for that is questionable (based on MantisBT version and user).
have something like |
|
@atrol as you pointed out yourself in 0023324:0057631, status config can be user / project specific. This means that in a situation where this is actually the case, I guess your suggestion would effectively force the cache to be refreshed every time a user switches to another project and/or logs in with a different account, kind of defeating the purpose of the cache don't you think ? |
|
It will just be refreshed, if the colors for a project or a user are different. Won't you get wrong colors (or not set black) if you don't change the cache key after someone changed colors (in general, or for a certain project)? As a side note: Our current approach does not work if issue status from mutiple projects are displayed on a single page (e. g. "View Issues" page if "All Projects" is selected) and the colors are set on a project level. |
|