View Issue Details

IDProjectCategoryView StatusLast Update
0023624Plugin - EmailReportingGeneralpublic2017-11-12 08:32
ReporterSchaefT Assigned ToSL-Gundam  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.10.0 
Summary0023624: Can't set attachment size to >2097152
Description

Thank you for this really wonderfull plugin.
It helps a lot!!!

Everything is running like it should, but I am stuck with one little thing.
The Pluging ignores the "$g_max_file_size" consequently when started via command line or cron job.
(php.ini is properly configured MantisBT uploads up to 50 MB are no problem..)

It rejects every attachment bigger than about 2MB.
(List of rejected files image1.jpeg = attachment size exceeds maximum allowed file size (2200175 / 2097152)
I am not able to increase the size of 2097152...

When the script, bug_report_mail.php, is startet via curl I get the full 50 MB attachment!
The same script started in the php environment rejects everything bigger more than 2 MB.

Any help is welcome!

TagsNo tags attached.
Attached Files

Activities

SL-Gundam

SL-Gundam

2017-11-11 20:22

manager   ~0058176

The decision for both MantisBT and EmailReporting is the same
https://www.mantisbt.org/wiki/doku.php/mantisbt:emailreporting#maximum_attachment_size

The smallest one of the first three variables is the one that is used.
I suggest you take a look a your phpinfo page to see which php.ini is loaded and what the variables are for the first two variables in the table

SchaefT

SchaefT

2017-11-12 01:37

reporter   ~0058177

Thank you for your very quick response. I appreciate this very much.
I found the problem:

On Ubuntu 16.04 there are TWO php.ini files.
/etc/php/7.0/apache2/php.ini
/etc/php/7.0/cli/php.ini

Editing the second file did the trick.

Your plugin is working perfectly, thanks for your help!

This ticket is done for me.

Maybe you have a look at the screenshot...phpinfo says, :

phpinfo.JPG (44,639 bytes)   
phpinfo.JPG (44,639 bytes)   
SL-Gundam

SL-Gundam

2017-11-12 08:32

manager   ~0058179

Last edited: 2017-11-12 08:32

Yes you see that sometimes that different SAPI's use different php.ini files

Good that its resolved