This appears to be covered several times and on several other help sites.
But none of the solutions work
The file I want to post is a 13MB zip file.
I have tried various combinations of:
my.ini for sql
max_allowed_packet=32M
php.ini
max_execution_time = 300
max_input_time = 300
memory_limit = 128M
post_max_size = 28M
upload_max_filesize = 28M
adding to
config_inc.php
#$g_allow_file_upload = ON;
#$g_file_upload_method = DISK;
#$g_max_file_size = 28 * 1024 * 1024;
#$g_max_file_size = 28M;
#$g_upload_project_file_threshold = REPORTER;
#$g_upload_bug_file_threshold = REPORTER;
Most of which appear to 'freeze the server' - from point of trying to access any ticket from server/web browser.
espacially
#$g_max_file_size = 28M;
Cannot upload more than 5MB
Moderators: Developer, Contributor
Re: Cannot upload more than 5MB
None of the lines in config_inc.php is affecting the functionality as they are commented out.
You have to remove the starting # from the lines you want to activate.
You have to remove the starting # from the lines you want to activate.
Re: Cannot upload more than 5MB
Thanks,
Yes I know they are commented out.
When I add them it freezes.
As stated
I added them to stop people telling me to try them
Yes I know they are commented out.
When I add them it freezes.
As stated
I added them to stop people telling me to try them
Re: Cannot upload more than 5MB
From https://mantisbt.org/bugs/view.php?id=28834#c65655
Comment out the following lines
https://github.com/mantisbt/mantisbt/bl ... #L121-L124
After that, run again admin/check/index.php
At the moment the checks are stopping after your database checks, so the following checks including those ones for the attachments will not run.
I doubt we can easily upgrade anything here
PHP Version 5.6.25
Apache 20120211
Mantis appears to be 1.3.1-1
Windows server 2012 R2
Mantis code not modified.
Index.php
shows 2 issues
FAIL
MySQL version is within the Extended Support period (GA + 8 years)
Support for the release of MySQL you are using (5.6.32) ended on 2021-02-05. It should not be used, as security flaws discovered in this version will not be fixed.
WARN
Version of MySQL being used is within the Premier Support period (GA + 5 years)
Premier Support for the release of MySQL you are using (5.6.32) ended on 2018-02-05. The release is in its Extended support period, which ends on 2021-02-05. You should upgrade to a newer version of MySQL which is still within its Premier support period to benefit from bug fixes and security patches.
Comment out the following lines
https://github.com/mantisbt/mantisbt/bl ... #L121-L124
After that, run again admin/check/index.php
At the moment the checks are stopping after your database checks, so the following checks including those ones for the attachments will not run.
Re: Cannot upload more than 5MB
Thanks
Tried cutting line 121/124 in index.php
When run:
The fails in the Database section disappear - no errors in either section (fails attached as png now)
Any ideas will be welcome.
I think I have the file size and related settings set everywhere suggested on forums.
To be sure, this is a real nuisance to me.
Q.
Tried cutting line 121/124 in index.php
When run:
The fails in the Database section disappear - no errors in either section (fails attached as png now)
Any ideas will be welcome.
I think I have the file size and related settings set everywhere suggested on forums.
To be sure, this is a real nuisance to me.
Q.
- Attachments
-
- index_fails.PNG (33.18 KiB) Viewed 2545 times
Re: Cannot upload more than 5MB
This is still a problem.
Any more ideas?
Any more ideas?
Re: Cannot upload more than 5MB
Should mention...
If I add
$g_max_file_size = 28M;
to
...\mantis-1.3.1-1\apps\mantis\htdocs\config\config_inc.php
then the Mantis server / web interface at least hangs.
If I add
$g_max_file_size = 28M;
to
...\mantis-1.3.1-1\apps\mantis\htdocs\config\config_inc.php
then the Mantis server / web interface at least hangs.