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
The same attachments are not visible in some issues in the same project (resolved)
Moderators: Developer, Contributor
The same attachments are not visible in some issues in the same project (resolved)
Last edited by Michal67 on 14 May 2026, 08:37, edited 1 time in total.
--
MantisBT Version 2.28.1
Database Schema Version 213
PHP Version 8.2.30
Database Driver mysqli
Database Version, Description 10.3.39, 10.3.39-MariaDB
MantisBT Version 2.28.1
Database Schema Version 213
PHP Version 8.2.30
Database Driver mysqli
Database Version, Description 10.3.39, 10.3.39-MariaDB
Re: The same attachments are not visible in some issues in the same project
The first MantisBT version where all known PHP 8.2 related issues are fixed is version 2.27.2.MantisBT Version 2.26.1
PHP Version 8.2.30
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
Ok, we upgraded to 2.28.1.
The problem remains
The problem remains
--
MantisBT Version 2.28.1
Database Schema Version 213
PHP Version 8.2.30
Database Driver mysqli
Database Version, Description 10.3.39, 10.3.39-MariaDB
MantisBT Version 2.28.1
Database Schema Version 213
PHP Version 8.2.30
Database Driver mysqli
Database Version, Description 10.3.39, 10.3.39-MariaDB
Re: The same attachments are not visible in some issues in the same project
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
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
--
MantisBT Version 2.28.1
Database Schema Version 213
PHP Version 8.2.30
Database Driver mysqli
Database Version, Description 10.3.39, 10.3.39-MariaDB
MantisBT Version 2.28.1
Database Schema Version 213
PHP Version 8.2.30
Database Driver mysqli
Database Version, Description 10.3.39, 10.3.39-MariaDB
Re: The same attachments are not visible in some issues in the same project
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.
$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.
--
MantisBT Version 2.28.1
Database Schema Version 213
PHP Version 8.2.30
Database Driver mysqli
Database Version, Description 10.3.39, 10.3.39-MariaDB
MantisBT Version 2.28.1
Database Schema Version 213
PHP Version 8.2.30
Database Driver mysqli
Database Version, Description 10.3.39, 10.3.39-MariaDB
Re: The same attachments are not visible in some issues in the same project
Thanks for providing the solution.
I checked the source code and was not able to reproduce.
I checked the source code and was not able to reproduce.
I reset your account. You should have received email for that.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).
Re: The same attachments are not visible in some issues in the same project (resolved)
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',
);
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',
);
--
MantisBT Version 2.28.1
Database Schema Version 213
PHP Version 8.2.30
Database Driver mysqli
Database Version, Description 10.3.39, 10.3.39-MariaDB
MantisBT Version 2.28.1
Database Schema Version 213
PHP Version 8.2.30
Database Driver mysqli
Database Version, Description 10.3.39, 10.3.39-MariaDB