Log in

View Full Version : Problems with attachments


pedro84
01-22-2008, 12:13 PM
Hi!

I got big problems with attachments. When I try to upload attachment bigger than usually, about 20-30 MBytes I got following error:

Fatal error: Out of memory (allocated 27262976) (tried to allocate 25169921 bytes) in /forums/includes/class_upload.php on line 235

The same error is appearing when I try to upload files from my PC & via URL.

Details about my system:
vBulletin version: 3.6.8 Patch Level 2
Attachments storage type: database
Server Type: FreeBSD
Web Server: ucgi5
PHP: 5.2.1
PHP Max Post Size: 64.00 MB
PHP Maximum Upload Size: 64.00 MB
PHP Memory Limit: 128.00 MB
MySQL Version: 5.0.33-log


Does anyone has any suggestion or idea how to solve that problem?

Cheers!
Pedro


Edit:
Could any Moderator be so kind & edit thread and name it correctly?

Edit 2:
Now I got following error:
Fatal error: Out of memory (allocated 42467328) (tried to allocate 40243244 bytes) in /forums/includes/class_core.php on line 1806

snakes1100
01-22-2008, 12:50 PM
Yes, you need to set the memory_limit to a higher value and restart apache/iis or if your on a vhost, you need to edit the htaccess file in your public html dir and set it there, no need to restart apache if thats the case as your on a vhost and the setting is loaded automatically.

memory_limit = 256M

Thats if your host allows you to use that much ram.

pedro84
01-22-2008, 01:22 PM
Hi There!

Very thanks for reply!

I'm using some shitty hosting at the moment. I paste in .htaccess
memory_limit = 256M

Tried to upload attachment with the same result.

Any other tips how to solve it?

Marco van Herwaarden
01-22-2008, 01:28 PM
Please the following code in a file named phpinfo.php and upload o your forumhome directory and provide us with the link to this script:

<?php
phpinfo();
?>