1 of my client website always got this error.
may i know how to fix it?
Printable View
1 of my client website always got this error.
may i know how to fix it?
increase memory_limit in your php.ini should cure it.
now is as below:
what is the suggested value?Quote:
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
you might try doubling that given that your file size is 33megs, but I assume that once its uploaded something is trying to either convert or compress the file similar to the way wordpress does when you upload a file.
128megs was enough for me on my system when uploading up to a 15 meg jpg image so you might need a little more..
I have double it to 256M.
But it seen like remain same. Is it script problem?
Sounds like poor coding to myself, a good script would not require excessive use of memory. You could try increasing it to 512MB as a test, though, not something I would highly recommend.
The script itself could be settings the value. Search your directory for a php.ini file or ini_set('memory_limit', xxx) like this:
ORCode:grep memory_limit -r /home/ex_dir/public_html |grep ini_set
RegardsCode:find /home/ex_dir/public_html -type f -name 'php.ini'
Joe / UNIXY
If I'm not mistaken WordPress does actually set the memory_limit itself, I forget which file (and I don't have a console handy at the moment to check).
At any rate, you can either just comment the line out or adjust it in the file.
The file that WP uses is the wp-settings.php file.
Not sure if he is using WP as his script but there might be a similar item in his script to do it as well.