Author Topic: Another funny PHP Fatal Error ....  (Read 3872 times)

Offline beislhur

  • Newbie
  • *
  • Posts: 1
Another funny PHP Fatal Error ....
« on: August 04, 2007, 09:19:09 AM »
[04-Aug-2007 15:01:29] PHP Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 2132763 bytes) in /srv/www/htdocs/roundcubemail-0.1-rc1/program/lib/Mail/mimePart.php on line 226

It seems roundcube didn't attend primary school ;D
The error occured when I tried to send a message with a 1,5MB file attached to it......
...same message was sent ok without attachment ....

Please help!!!

Offline preinheimer

  • Newbie
  • *
  • Posts: 7
Re: Another funny PHP Fatal Error ....
« Reply #1 on: September 05, 2007, 11:42:35 PM »
While it is true that 2132763 is less than 12582912, what the message is saying is that "I tried to allocate X bytes of memory, but that would have exceeded the maximum of Y." Even if X < Y, the application has already allocated a bunch of memory before that line of execution, so amount used already + X > Y which is the problem. Try increasing the memory limit for that virtual host, or the roundcubemail directory in particular.