Forum

Thread tagged as: Question, Error

File upload limit for PDF's on a page

Hi,

When trying to upload multiple PDF's to a page through the CMS I keep getting a 500 error. The PDF's I am uploading have all been optimised and resized – they are all at least 3 times smaller than the original (where none exceed 120kb).

I've upload 9 PDF's, I cannot seem to upload a 10th.

Is there a limit to the number of PDFs you can upload to a single page?

Here is the diagnostics report (there is no setup folder present still and everything is up to date):

Perch: 3.0.10
Production mode: Production (100)
Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10), perch_blog (5.6.1), perch_events (1.9.5), perch_forms (1.9.1)
DB driver: PDO
DB tables: perch3_blog_authors (2), perch3_blog_comments (0), perch3_blog_index (793), perch3_blog_posts (20), perch3_blog_posts_to_tags (0), perch3_blog_sections (6), perch3_blog_tags (0), perch3_blog_webmention_queue (0), perch3_blogs (1), perch3_categories (0), perch3_category_counts (0), perch3_category_sets (1), perch3_content_index (1282), perch3_content_items (491), perch3_content_regions (236), perch3_events (15), perch3_events_categories (3), perch3_events_to_categories (4), perch3_forms (1), perch3_forms_responses (1), perch3_menu_items (11), perch3_navigation (5), perch3_navigation_pages (57), perch3_page_templates (3), perch3_pages (79), perch3_resource_log (1118), perch3_resource_tags (0), perch3_resources (396), perch3_resources_to_tags (0), perch3_settings (30), perch3_user_passwords (0), perch3_user_privileges (42), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (3)
Users: 3
App runtimes:
<?php
    $apps_list = [ 
perch_blog,
perch_forms,
perch_events
    ];
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins), publish_posts (1 mins), process_webmentions (1 mins)
Editor plug-ins:
H1: f66f60b7f4ada3ad0eb474bf53364b0d
L1: 4b5f93d994c838808a58990a8b1f3264
F1: 3b606135b33e6a102526838f4152a807
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
installedAt: 3.0.10
update_3.0.10: done
latest_version:
on_sale_version: 3.0.14
perch_blog_update: 5.6
perch_blog_post_url: /news/post.php?s={postSlug}
perch_events_update: 1.8
headerScheme: light
perch_blog_site_name:
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_events_detail_url: /events/event.php?s={eventSlug}
dashboard: 0
hide_pwd_reset: 0
keyboardShortcuts: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
content_skip_region_list: 0
assets_restrict_buckets: 0
perch_blog_comment_notify: 0
perch_blog_webmention_tx: 0
perch_blog_webmention_rx: 0
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: cargdbuser1
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: admin_cargilfield
PERCH_DB_PREFIX: perch3_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: jamesh@thirdfloordesign.co.uk
PERCH_EMAIL_FROM_NAME: james Holmes
PERCH_LOGINPATH: /cms
PERCH_PATH: /var/www/vhosts/thirdfloordigital.net/cargilfield.thirdfloordigital.net/cms
PERCH_CORE: /var/www/vhosts/thirdfloordigital.net/cargilfield.thirdfloordigital.net/cms/core
PERCH_RESFILEPATH: /var/www/vhosts/thirdfloordigital.net/cargilfield.thirdfloordigital.net/cms/resources
PERCH_RESPATH: /cms/resources
PERCH_TEMPLATE_FILTERS: 1
PERCH_HTML5: 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_ASSET_VERSION: 23f8a1427c17ade109a3
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /var/www/vhosts/thirdfloordigital.net/cargilfield.thirdfloordigital.net/cms/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_RWD: 1
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_CUSTOM_EDITOR_CONFIGS:
PERCH_ENABLE_EXIF: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings

PHP: 5.4.13
Zend: 2.4.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.30
MySQL server: 5.5.30
Free disk space: 33.11 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, sockets, mbstring, tokenizer, xml, cgi-fcgi, curl, dom, fileinfo, gd, imagick, imap, json, ldap, exif, mcrypt, mysql, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, snmp, sqlite3, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, mhash, ionCube Loader
GD: Yes
ImageMagick: Yes
PHP max upload size: 128M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 8M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /sbin:/usr/sbin:/bin:/usr/bin
PP_CUSTOM_PHP_INI: /var/www/vhosts/system/cargilfield.thirdfloordigital.net/etc/php.ini
PP_CUSTOM_PHP_CGI_INDEX: fastcgi
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
REQUEST_URI: /cms/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.0
GATEWAY_INTERFACE: CGI/1.1
REMOTE_PORT: 56594
SCRIPT_FILENAME: /var/www/vhosts/thirdfloordigital.net/cargilfield.thirdfloordigital.net/cms/core/settings/diagnostics/index.php
SERVER_ADMIN: jamesh@thirdfloordesign.co.uk
DOCUMENT_ROOT: /var/www/vhosts/thirdfloordigital.net/cargilfield.thirdfloordigital.net
REMOTE_ADDR: 82.35.54.156
SERVER_PORT: 80
SERVER_ADDR: 205.186.165.244
SERVER_NAME: cargilfield.thirdfloordigital.net
SERVER_SOFTWARE: Apache
SERVER_SIGNATURE: <address>Apache Server at cargilfield.thirdfloordigital.net Port 80</address>
HTTP_COOKIE: _ga=GA1.2.992432922.1516120086; _vwo_uuid_v2=D2203D98E7AA89A7BF38819743E2117DA|68b292ecc1afc6a5ea4d60c335d66e0d; PHPSESSID=tj2nrcq41uin812e2akd70qa61; cmsa=1
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,la;q=0.6
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_REFERER: https://cargilfield.thirdfloordigital.net/cms/core/settings/diagnostics/
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_CONNECTION: close
HTTP_X_ACCEL_INTERNAL: /internal-nginx-static-location
HTTP_X_FORWARDED_FOR: 82.35.54.156
HTTP_X_REAL_IP: 82.35.54.156
HTTP_HOST: cargilfield.thirdfloordigital.net
UNIQUE_ID: Wp-2BM26pfQAAGMaeTsAAAAC
FCGI_ROLE: RESPONDER
PHP_SELF: /cms/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1520432644.7906
REQUEST_TIME: 1520432644

Many thanks in advance, Kenny

Darren Cusdin

Darren Cusdin 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you trying to upload 10 files all at once?

Hi Drew,

I am uploading them one at a time and saving the page after each upload.

Thanks, Kenny

Drew McLellan

Drew McLellan 2638 points
Perch Support

There's not a limit, no. Can you save an item without uploading a file to it?

I've tried adding in just some text, but the same error occurs and page is saved as a draft.

If I delete the PDF files and save, it does let me save the page without any errors. I've tried uploading different PDFs to see if it was the PDF files themselves that was the issue, but again the same error occurs.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you editing all the items on one page?

Yes all the PDF's are on one page, except the PDFs are in different perch:blocks.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Roughly how many form fields are there on the edit page?

There are 50 form fields including the title field, subtitle, tagline etc.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, you could bit hitting against your server's configured limit for the number of fields.

Thank you drew!

Do you know how we would go about changing that? We will get in touch with our hosting company, but what should we ask them to change?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Hi Drew,

Thank you for this!

We increased this but unfortunately it didn't resolve it. We also increased the max_execution_time and that seemed to resolve it.

Appreciate your time!