Attachment Missing - MantisBT 2.17.1
Posted: 15 Oct 2018, 16:52
Hello all,
I've been going around in circles on this one and I haven't been able to find an answer via reading message board posts and Google searches that has fixed my error. My apologies in advance if there was a simple fix that was listed and I didn't see it, I honestly have tried to fix this on my own for multiple hours. If more information is needed, please let me know and I will submit it ASAP.
System Specs
MantisBT version 2.17.1 on a fresh Hyper-V VM in Server 2012 R2 Standard in IIS 8.5.
2 virtual processors | 4GB of RAM
SQL Server 2016 as database software
PHP versions installed are v5.3 and v7.2 with v7.2 the one being utilized. PHP v5.3 was installed through the IIS Web Platform Installer when I initially began and then I installed v.7.2 manually.
The Problem
When an attachment is submitted either through a new ticket or as a note, the attachment always ends up listed as (bold part is listed with a strikethrough - attached example) "ATTACHMENT NAME.any (Attachment missing)".
The file does not appear in the designated folder for attachments and there are no errors that appear upon submittal.
What I've Verified / Checked So Far
1. Made sure it wasn't a file permission error as I tested by taking away write permissions for the account being utilized and received the error page after submitting.
2. Made sure that the file type is allowed in config_inc.php. Currently, I have it set to default for allowed files and only have EXE set under disallowed files.
3. Configured the following settings for file uploads.
Config_inc.php
$g_allow_file_upload = ON;
$g_absolute_path_default_upload_folder = 'c:\sites\MantisBT\attachments';
$g_dropzone_enabled = OFF;
$g_max_file_size = 5000000;
$g_file_upload_method = DISK;
$g_file_upload_max_num = 10;
$g_allowed_files = '';
$g_disallowed_files = 'exe';
$g_preview_attachments_inline_max_size = 512 * 2048;
php.ini
post_max_size = 8M
upload_max_filesize = 5M
memory_limit = 128M
Thank you in advance for any help!
-Greg
I've been going around in circles on this one and I haven't been able to find an answer via reading message board posts and Google searches that has fixed my error. My apologies in advance if there was a simple fix that was listed and I didn't see it, I honestly have tried to fix this on my own for multiple hours. If more information is needed, please let me know and I will submit it ASAP.
System Specs
MantisBT version 2.17.1 on a fresh Hyper-V VM in Server 2012 R2 Standard in IIS 8.5.
2 virtual processors | 4GB of RAM
SQL Server 2016 as database software
PHP versions installed are v5.3 and v7.2 with v7.2 the one being utilized. PHP v5.3 was installed through the IIS Web Platform Installer when I initially began and then I installed v.7.2 manually.
The Problem
When an attachment is submitted either through a new ticket or as a note, the attachment always ends up listed as (bold part is listed with a strikethrough - attached example) "ATTACHMENT NAME.any (Attachment missing)".
The file does not appear in the designated folder for attachments and there are no errors that appear upon submittal.
What I've Verified / Checked So Far
1. Made sure it wasn't a file permission error as I tested by taking away write permissions for the account being utilized and received the error page after submitting.
2. Made sure that the file type is allowed in config_inc.php. Currently, I have it set to default for allowed files and only have EXE set under disallowed files.
3. Configured the following settings for file uploads.
Config_inc.php
$g_allow_file_upload = ON;
$g_absolute_path_default_upload_folder = 'c:\sites\MantisBT\attachments';
$g_dropzone_enabled = OFF;
$g_max_file_size = 5000000;
$g_file_upload_method = DISK;
$g_file_upload_max_num = 10;
$g_allowed_files = '';
$g_disallowed_files = 'exe';
$g_preview_attachments_inline_max_size = 512 * 2048;
php.ini
post_max_size = 8M
upload_max_filesize = 5M
memory_limit = 128M
Thank you in advance for any help!
-Greg