Forum

Thread tagged as: Question, Problem, Error

Uploading images fails with no error.

Images below 10mb upload fine, but if I upload an image thats larger than 10mb it returns without error and without actually uploading the image. I have tried a few images over 10mb and none of them are working.

I can take a 35mb image that wont upload and zip it(still 35mb) and it will upload, but the .jpg wont. I have tried the image with different extensions .png and .zip and still the same error, nothing is uploaded. Looks like perch is trying to process it or something and cant.

I followed the advice in Troubleshooting Tips but no luck. Is there a way to get the error from $_FILES in php?

Perch: 2.8.34
Production mode: Production (100)
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34), perch_forms (1.8.3)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (1568), perch2_content_items (229), perch2_content_regions (16), perch2_forms (1), perch2_forms_responses (9), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (1), perch2_pages (8), perch2_resource_log (2850), perch2_resource_tags (21), perch2_resources (433), perch2_resources_to_tags (21), perch2_settings (11), perch2_user_passwords (8), perch2_user_privileges (29), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (2)
Users: 2
PHPMailer: 5.2.21
App runtimes:
<?php
    $apps_list = array(
        'content',
        'categories',
        'perchplus',
        'perch_forms',
    );
Editor plug-ins: markitup, redactor
H1: a162aa99e57e095d8f7d3206d84e4033
L1: cadb1c1429055a07169d51e0e1206020
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.34: done
latest_version: 2.8.15
on_sale_version:
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: montway_montway
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: montway_montway
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: martin@walkercommunications.co.uk
PERCH_EMAIL_FROM_NAME: Walker Communications
PERCH_LOGINPATH: /cms-admin
PERCH_PATH: /home/montway/public_html/cms-admin
PERCH_CORE: /home/montway/public_html/cms-admin/core
PERCH_RESFILEPATH: /home/montway/public_html/cms-admin/resources
PERCH_RESPATH: /cms-admin/resources
PERCH_HTML5: 1
PERCH_RWD: 1
PERCH_MAP_JS: /cms-admin/addons/feathers/perchplus/public_maps.js
PERCH_DEBUG: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/montway/public_html/cms-admin/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS
PHP: 5.6.36
Zend: 2.6.0
OS: Linux
SAPI: fpm-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
MySQL server: 5.5.5-10.1.32-MariaDB
Free disk space: 241.70 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, cgi-fcgi, bz2, calendar, ctype, curl, dba, dom, enchant, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap, intl, json, ldap, exif, mcrypt, mysqlnd, mysql, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, shmop, SimpleXML, snmp, soap, sockets, SourceGuardian, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, mhash, ionCube Loader, Zend OPcache
GD: Yes
ImageMagick: No
PHP max upload size: 200M
PHP max form post size: 80M
PHP memory limit: 128M
Total max uploadable file size: 80M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
USER: montway
HOME: /home/montway
FCGI_ROLE: RESPONDER
UNIQUE_ID: WvMRZaeCG9SuRgtjNvPu@gAAAFA
SCRIPT_URL: /cms-admin/core/settings/diagnostics/
SCRIPT_URI: https://www.montway.co.uk/cms-admin/core/settings/diagnostics/
proxy-nokeepalive: 1
HTTP_HOST: www.montway.co.uk
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_REFERER: https://www.montway.co.uk/cms-admin/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-GB,en-US;q=0.9,en;q=0.8
HTTP_COOKIE: _ga=GA1.3.1044123980.1525875810; _gid=GA1.3.472163592.1525875810; PHPSESSID=24223jg6q45c2c1a78ght88kg6; cmsa=1
PATH: /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
SERVER_SOFTWARE: Apache
SERVER_NAME: www.montway.co.uk
SERVER_ADDR: 149.202.162.65
SERVER_PORT: 80
REMOTE_ADDR: 62.31.126.70
DOCUMENT_ROOT: /home/montway/public_html
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: /home/montway/public_html
SERVER_ADMIN: webmaster@montway.co.uk
SCRIPT_FILENAME: /home/montway/public_html/cms-admin/core/settings/diagnostics/index.php
REMOTE_PORT: 54132
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /cms-admin/core/settings/diagnostics/?extended
SCRIPT_NAME: /cms-admin/core/settings/diagnostics/index.php
PHP_SELF: /cms-admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1525879141.47
REQUEST_TIME: 1525879141
argc: 1
Andrew Wallace

Andrew Wallace 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is there anything appearing in your error log?

Found an error in the error log:

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 26512 bytes) in /public_html/cms-admin/core/lib/PerchImage.class.php on line 560

So I doubled my memory_limit in php.ini and now its resizing the images fine.

Thanks for your help