Forum Moderators: coopster

Message Too Old, No Replies

Help with php fatal error

         

Karabaja

12:04 pm on Aug 17, 2006 (gmt 0)

10+ Year Member



I am running a vbulletin forum. And we have a need sometimes to upload bigger files. Like 20mb. And this is what happens on bigger files.
I keep getting this error:

PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 22179135 bytes) in /var/www/vhosts/mydomain.com/httpdocs/includes/class_core.php on line 1762

Could someone tell me please why is it exhausted and what could I do to get around this error. I've tried increasing limits but nothing seems to work.

barns101

1:53 pm on Aug 17, 2006 (gmt 0)

10+ Year Member



Is the script working with an image? Apparently when you work on an image it is converted to a bitmap, and so a 20Mb JPEG file would take up a hell of a lot more memory when converted to its bitmap form.

Karabaja

2:38 pm on Aug 17, 2006 (gmt 0)

10+ Year Member



No it is zip and rar files. I've increased the limit in php.ini to 128MB and it is working fine now. But that seems like too much to me.

souravamant

4:30 pm on Aug 17, 2006 (gmt 0)

10+ Year Member



But as far as I know that was the easiest option (modifying the phpini file.)