After update from 1.1.2 to 1.1.4 unable to add large attachments

Submitted by zamana on 2016-01-28


First let me congratulate you on the awesome project you have developed and providing here as WebIssues. Many thanks!

I had increased the attachment size to 64MB in advanced settings of WebIssues as well as set the php.ini to the following:
; Maximum allowed size for uploaded files.
upload_max_filesize = 50M
; Maximum size of POST data that PHP will accept.
post_max_size = 55M

This was working till the time I had 1.1.2. Then I thought of upgrading to 1.1.4 and as soon as I did that I find I am unable to upload attachments that are larger than 4 MB of size. I checked the php.ini to be the same as also checked with the phpinfo() output and saw that the values are reflecting there as well.

The error I am getting is as:

I shall be immensely grateful if you could please provide any pointers to resolve the issue!

Thanks in advance,


Unfortunately I have no clue what might cause this error. You should check the server logs for a detailed error message.


Hi Michał,

I understand. Can you please tell me which file and line number etc. in your code to debug so that we can identify the problem? Since PHP is reporting 50MB as configured in the PHP.INI file I think if we check the error being raised by debugging your program that will give us a clue what aspect in the configuration to change? I humbly request you to please help.

Thank you!


Hi Michal,

I found that the folder server contains a file that has a function called addAttachment() that gets called when an attachment is added by the app. I put some code there to check values and I see that ini_get("upload_max_filesize") is returning 2M while phpinfo() from that folder is returning 50M

I am baffled how this may be unless it is being set either by the program somewhere or somehow the file is not detecting the custom php.ini file in its folder? However, it was successfully doing so till version 1.1.2

I also found that when the file is more than 2M (I tried with a 2.87MB) the upload fails and the function addAttachment() is not even called. I have placed some mail() calls to send me emails whenever it gets called and I dont get an email when the size is more than 2MB but I get the email when the file size is less than 2MB.

Does that provide any clues to you to assist me in resolving the issue? Please let me know.

Thank you,


I also found that the PHP.INI file loaded is /usr/local/lib/php.ini when I called php_ini_loaded_file() in the addAttachment() function.

I checked permissions of the php.ini file and they are the same as the other PHP files i.e. 644 and ownership is also same and not root which should have caused this problem.