Roundcube Community Forum

 

Large attachment issue

Started by ploum, April 22, 2010, 08:51:55 AM

Previous topic - Next topic

ploum

Hello,

I've hit the "large attachment" issue on Roundcube 0.3.1 (from Ubuntu Lucid repository).
#1484660 (Attachment Excessive Memory Use Error) ? Roundcube Webmail

I'm trying to send a 7Mo file.


So far, I've :
- increased memory_limit to 512 Mo (!!!)
- Tried out the latest svn trunk

No luck. I still have the error :*


PHP Fatal error:  Out of memory (allocated 14417920) (tried to allocate 7723956 bytes) in /usr/share/php/Mail/mime.php on line 341, referer: http://my.box/?_task=mail&_id=11191354474bd045e874db2&_action=compose


What is strange is that none of the bytes value change, even with a different memory_limit (in php5/cgi/php.in as I use suphp)

ploum

I just discovered that there was also an .htaccess file in roundcube folder. I've changed the value there also, but I still have the same error.

I don't understand.

SKaero

It work for me in the SVN, is your temp directory writable?

ploum

Yes, the temp folder is writable. My attachment is even there (with the name obfuscated).


But, for my production server, is there any way to allow attachement until 16Mo on the 0.3.1 version ?

ploum

Ok, after taking php-net-smtp and php-mail-mime and roundcube from SVN and raising every possible memory_limit to 512Mo, I'm now able to send mail of 2Mo but not 7Mo !!!!  (before upgrading php-net-smtp and php-mail-mime, the limit was less than 1 Mo)

Of course, all of this doesn't work if I use roundcube 0.3.1 (using roundcube SVN doesn't work for customers as address book is broken)


I'm sure I'm missing something here. I just don't understand those numbers in
 Out of memory (allocated 15990784) (tried to allocate 2927615 bytes) in /usr/share/php/Net/SMTP.php on line 890

ploum

Ok, you might be interested to know that most of my problems where related to using suphp.

Disabling suphp for roundcube helped a lot !


There's still a limit (approx 10Mo total or 5Mo individual file) that I don't understand but, at least, when the limit is hit, an error is displayed.