File upload limited to 512kb, have updated and double-checked php.ini

Permalink
Allowed memory size of 268435456 bytes exhausted (tried to allocate 51916801 bytes)

Seems to be the same error no matter what size file I try to upload.
Many apologies if I am posting this in the wrong place - or if it is a very noob question.

Bluehost - and I contacted them and they say everything looks 'fine'
from phpinfo:
PHP Version 5.6.29
max_file_uploads 40
upload_max_filesize 256M
post_max_size 256M
upload_tmp_dir /tmp

I have cleared cache.

I uploaded files this morning that were in the 2-6 mb range but this afternoon, my testing shows a limit of around 512-600 kb. I'm not sure - but it is possible - the issue started after purchasing and installing Grid Gallery 2. I question whether this is the issue because I have a second concrete5 install on the same server with the sample info loaded and it has the same issue. No addons installed, just the base unmodified installation.

Installation info:
# concrete5 Version
Core Version - 8.1.0
Version Installed - 8.1.0
Database Version - 20170123000000

# concrete5 Packages
Whale Grid Gallery (2.3.3), Zoomer (1.0.1)

# concrete5 Overrides
blocks/express_photo_display/templates/photo.php, blocks/express_photo_display/templates, blocks/express_photo_display, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, blocks/express_photo_display/templates/photo.php, blocks/express_photo_display/templates, blocks/express_photo_display, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/en_GB/LC_MESSAGES/messages.mo, languages/en_GB/LC_MESSAGES, languages/en_GB, languages/es_PE/LC_MESSAGES/messages.mo, languages/es_PE/LC_MESSAGES, languages/es_PE, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL

# 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
5.6.29

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, ionCube Loader, json, libxml, magickwand, mailparse, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, OAuth, oci8, odbc, openssl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, session, SimpleXML, snmp, soap, sockets, SourceGuardian, SPL, sqlite3, standard, tidy, tokenizer, uploadprogress, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib

# PHP Settings
max_execution_time - 450
log_errors_max_len - 1024
max_file_uploads - 40
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 5000
memory_limit - 256M
post_max_size - 256M
sql.safe_mode - Off
upload_max_filesize - 256M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
oci8.max_persistent - -1
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

 
Gondwana replied on at Permalink Best Answer Reply
Gondwana
If you're uploading images, the problem could be because the automatic thumbnail generation process tries to allocate a chunk of memory so it can do its thing. Can you upload large files that are NOT images (eg, .doc)?
beth6230 replied on at Permalink Reply
Yup, a 1.4mb PDF uploaded just fine!
beth6230 replied on at Permalink Reply
Based on your hint, I did a re-scan on some of the folders that had a higher number of images as well as addition/deletions done in them today. I was able to upload a 3.5mb image file! I assume once I get everything set this will not be an issue. As I am learning and setting up the site, I've done quite a bit of moving around/additions/deletions. I was more worried about the database than the file system. Thanks!
Gondwana replied on at Permalink Reply
Gondwana
Well done.

The problem you had is certainly misleading. It does appear to be an upload limitation, but the upload actually worked fine. The memory allocation failure happened during subsequent processing.

Since I'm a control freak, I don't upload images bigger than 1140px or so. c5 doesn't normally display anything larger than that (IIRC), it avoids the problem you had, and it avoids slow page loads in case a large image slips past c5's resizing. But my level of paranoia shouldn't be necessary. :)