close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fatal error: Allowed memory size

Thread began 6/19/2019 9:44 am by lr_leal239405 | Last modified 7/12/2019 7:36 pm by Ray Borduin | 38 views | 6 replies |

lr_leal239405

Fatal error: Allowed memory size

on Upload Images I'm getting the error below, even though on my php.ini file the upload_max_filesize = 100M and memory_limit = 32M?

the file size to upload is a little bit over 3Mb.

"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 21248 bytes) in /home/jvdydf5kad9w/public_html/webassist/file_manipulation/helperphp.php on line 914"

Sign in to reply to this post

Ray BorduinWebAssist

This is happening during the file resize. It takes a lot of memory to load an image into the GD library and calculate how to make it smaller. Can you increase the memory_limit setting to 64M? That is your best option. The upload max filesize is not the issue. The memory_limit needs to be about 20x the maximum image file size that will be resized.

Sign in to reply to this post

lr_leal239405

Ok. I'll try that then. Thanks for the info.

Sign in to reply to this post

Justin@AdventDesign

I'm having the same issue:

"Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 26020 bytes) in /Applications/XAMPP/xamppfiles/htdocs/sites/abm-sites/granite-shop/webassist/file_manipulation/helperphp.php on line 1146"

Historically, I've just added the ini_set memory limit and it's been fine... However I have this as the first line on both pages I'm getting this error on:
"<?php ini_set("memory_limit", "256M") ?>"


What's equally odd, historically I've run into this on the live server, but not locally in XAMPP. I'm getting the error on both, even when trying to upload images less than 1 MB.

Sign in to reply to this post

Ray BorduinWebAssist

Use a larger limit, it appears to be going over that. A 1MB image is relatively large. It takes quite a bit of memory to load that image and then resize it, so you need to have a lot of memory to resize a 1MB image.

Sign in to reply to this post

Justin@AdventDesign

Forgive my ignorance, but what does the "M" reference in the "256M"? I guess I read it as 256 MB, thinking it's many times the necessary size.

Sign in to reply to this post

Justin@AdventDesign

I upped to 1024M and it appears to be working... I just find it odd that in the past I've been able to upload 6MB files no problem with the 256M setting but we'll keep our fingers crossed that it's good to go. Thanks Ray!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...