Log in

View Full Version : VB Attachment ERR need help


vuiveclub_net
04-20-2007, 08:58 AM
When attachment a file by using Vb 3.6.5 have err:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1141628 bytes) in /var/www/html/nhaforum/includes/class_core.php on line 89

- I tried to upload a file < 1.0Mb it no problem
- Upload files > 1.0Mb Vb say that error

My server stastus:
- Server Type: linux (safe mod)
- Web server: Apache ver 2.2.0
- PHP: 5.1.6
- PHP Max Post Size: 8.00Mb
- PHP Maximum upload size: 8.00Mb
- PHP Memory Limit: 8.00Mb
- MySQL Version: 5.0.27
- MySQL Packet Size: 1.00Mb

Thank for help

Rickie3
04-20-2007, 09:20 AM
there's your problem MySQL Packet Size: 1.00Mb,contact your host to up the size to maybe 16Mb

Marco van Herwaarden
04-20-2007, 09:24 AM
This error is actually not a MySQL error, but a PHP error. Please raise memory_limit for your PHP configuration, you might need assistence from your host to do so.

We recommend a memory_limit of 16Mb or higher.

vuiveclub_net
04-20-2007, 09:27 AM
there's your problem MySQL Packet Size: 1.00Mb,contact your host to up the size to maybe 16Mb


Thank very much, can you tell me how to config MySQL Packet Size, I have server root pass, but don't know how to..
relax,

This error is actually not a MySQL error, but a PHP error. Please raise memory_limit for your PHP configuration, you might need assistence from your host to do so.

We recommend a memory_limit of 16Mb or higher.

First say Thank alot with help,

Tried config with PHP Memory Limit = 16Mb, Vb can upload max 3.0Mb
When config PHP Memory Limit = 32Mb, now VB can upload max 6.5Mb, if upload file > 6.5Mb try error: "Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1141628 bytes) in /var/www/html/nhaforum/includes/class_core.php on line 89 "

Now my server have:
- Server Type: linux (safe mod)
- Web server: Apache ver 2.2.0
- PHP: 5.1.6
- PHP Max Post Size: 8.00Mb
- PHP Maximum upload size: 8.00Mb
- PHP Memory Limit: 32.00Mb
- MySQL Version: 5.0.27
- MySQL Packet Size: 16.00Mb

Have U got a solution to config attachment donot go to database with Vbb 3.6.4 ? because this one will place my database files so big, and lost very much Server Memory, dangerous.

Thank again for fulhelp