Allowed memory size of 134217728 bytes exhausted (tried to allocate 34093489 bytes)

Permalink Browser Info Environment
We get the following error when we load a file set into the block. We are hosted on Godaddy so not really able to up the memory. Is there a workaround for this or a bug we can fix?

Allowed memory size of 134217728 bytes exhausted (tried to allocate 34093489 bytes)

Type: Pre-Sale
Status: Archived
ecoulter
View Replies:
Parasek replied on at Permalink Reply
Parasek
My first guess is that you uploaded too big images and server can't handle creating thumbnails from them. Resize them to "sane" dimensions before upload and everything should be ok.
ecoulter replied on at Permalink Reply 1 Attachment
ecoulter
None of the images are very large file sizes. There are a few pictures that are large dimensions but still under the 2meg file size limit we have. I've attached a screen shot of the files we put in the file set.
Parasek replied on at Permalink Reply
Parasek
Try to replace those. It's not about upload limit but available RAM.
ecoulter replied on at Permalink Reply
ecoulter
I get that its about ram, but with 128M set as the ram limit, is there anything that would explain how 6.5M of photos (across 9 photos) uses all of that limit?
Parasek replied on at Permalink Reply
Parasek
If file weighs 2MB it doesn't mean it will need only 2MB of RAM for resizing. More like 90MB, if it is 4000x4000px. Even more if you want to generate, for example 1920px thumbnail from it.

I don't know how large your images are, but I suspect they are quite big (width x height in px).

In "Dashboard / System & Settings / Files / Image Uploading" you can enable browser-side resizing (by your computer, not server) during file upload.
You can also disable fullscreen images resizing, just leave those fields empty in gallery and display original images

concrete5 Environment Information

# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
Fruitful (1.2), Simple Gallery (1.0.7), Supermint Theme (3.4.1.3)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
7.1.11

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, inotify, intl, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, session, shmop, SimpleXML, soap, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 2M
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.