Page 1 of 1
The same attachments are not visible in some issues in the same project (resolved)
Posted: 30 Apr 2026, 08:50
by Michal67
Issues in the same project. When I attach file to issue X, the attachment is visible. When I attach file to issue Y, the attachment is not visible. No error, attaching is correcttly logged in issue history, the file is stored in DB, the blob has correct size, bug_id and bugnote_id are correct, but it is not visible in the issue. It is unvisible for all users, including administrators of the project. I do not see any difference between the issues.
Any ideas?
Thanks, Michal
Re: The same attachments are not visible in some issues in the same project
Posted: 30 Apr 2026, 19:23
by atrol
MantisBT Version 2.26.1
PHP Version 8.2.30
The first MantisBT version where all known PHP 8.2 related issues are fixed is version 2.27.2.
I recommend to upgrade to latest stable version (2.28.1 as of this writing), also because of major security issues in older versions, see
viewtopic.php?t=40432
In best case, your issues is fixed after that.
Investing time in investigating outdated versions makes not that much sense.
Re: The same attachments are not visible in some issues in the same project
Posted: 05 May 2026, 07:02
by Michal67
Ok, we upgraded to 2.28.1.
The problem remains

Re: The same attachments are not visible in some issues in the same project
Posted: 14 May 2026, 05:54
by Michal67
Well, it seems when an issue is created without attachment, no attachments (added in issue comments) are visible. When an issue is created with any attachment, all attachments are visible.
The existing attachments also appear after connecting one of the files to the header, like "UPDATE bug_file SET bugnote_id = 0 WHERE id = 56;"
I can not log into bug tracker (I forgot the combination of username and email and email alone is not enough for password reset; and account for this forum does not work there).
Michal
Re: The same attachments are not visible in some issues in the same project
Posted: 14 May 2026, 07:04
by Michal67
OK, the problem was in customized config, including:
$g_bug_view_page_fields = array(
'id',
'project',
'category_id',
'view_state',
'date_submitted',
'last_updated',
'reporter_id',
'handler_id',
'priority',
'severity',
'status',
'resolution',
'summary',
'description',
);
without 'attachments'. So the whole problem was local misconfiguration.
Thanks for your attention.
Re: The same attachments are not visible in some issues in the same project
Posted: 14 May 2026, 08:51
by atrol
Thanks for providing the solution.
I checked the source code and was not able to reproduce.
Michal67 wrote: 14 May 2026, 05:54
I can not log into bug tracker (I forgot the combination of username and email and email alone is not enough for password reset; and account for this forum does not work there).
I reset your account. You should have received email for that.
Re: The same attachments are not visible in some issues in the same project (resolved)
Posted: 14 May 2026, 09:09
by Michal67
Thanks for sending password reset link
The problematic config was
$g_bug_report_page_fields = array(
'category_id',
'view_state',
'handler_id',
'priority',
'severity',
// 'reproducibility',
'summary',
'description',
// 'steps_to_reproduce', <-- toto jsme vynechali
// 'additional_info', <-- toto jsme vynechali
'attachments',
);
// Skryje pole při prohlížení a editaci (View/Update page)
$g_bug_view_page_fields = array(
'id',
'project',
'category_id',
'view_state',
'date_submitted',
'last_updated',
'reporter_id',
'handler_id',
'priority',
'severity',
// 'reproducibility',
'status',
'resolution',
'summary',
'description',
// 'steps_to_reproduce',
// 'additional_info',
);