Forum

Thread tagged as: Problem

Assets don't upload correctly

I have this problem with a lot of clients saying when they try and upload assets they don't upload correctly.

I have recorded a video of what happens. https://drive.google.com/file/d/0B3TPxtyFe7eoQ2JQM0ZGbExzVkk/view

Here is my diagnostics report and also I have added define('PERCH_CLEAN_RESOURCES', false); to config.php

Any help here would be great

PERCH INFORMATION

Perch Runway: 2.8.29
Production mode: Production (100)
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_blog (5.0), collection_5 (2.8.29), perch_forms (1.8.3)
DB driver: PDO
DB tables: perch2_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_blog_authors (5), perch2_blog_comments (0), perch2_blog_index (4523), perch2_blog_posts (112), perch2_blog_posts_to_tags (12), perch2_blog_sections (1), perch2_blog_tags (12), perch2_blogs (1), perch2_categories (7), perch2_category_counts (5), perch2_category_sets (2), perch2_collection_index (11885), perch2_collection_items (116), perch2_collection_revisions (18), perch2_collections (4), perch2_content_index (10204), perch2_content_items (1097), perch2_content_regions (144), perch2_forms (1), perch2_forms_responses (34), perch2_navigation (1), perch2_navigation_pages (5), perch2_page_routes (11), perch2_page_templates (26), perch2_pages (58), perch2_resource_log (5133), perch2_resource_tags (0), perch2_resources (1172), perch2_resources_to_tags (0), perch2_settings (25), perch2_user_passwords (0), perch2_user_privileges (42), perch2_user_role_privileges (37), perch2_user_roles (3), perch2_users (3)
Users: 3
App runtimes:
<?php
    $apps_list = array(
        'content',
        'categories',
        'perch_forms',
        'perch_blog',
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup
H1: 3ccaebfaa77696b08d2595c07162b7fe
L1: 3c899acaaed58d00d7605554a4d559dc
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #00406e
content_singlePageEdit: 0
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.28: done
headerScheme: dark
update_runway_2.8.28: done
latest_version: 2.8.15
on_sale_version: 2.8.29
perch_blog_update: 5.0.1
perch_blog_post_url: /news/{postSlug}
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 1
perch_blog_comment_notify: 0
perch_blog_site_name: Extract Technology
logoPath: /admin/resources/extract-logo-admin.png
update_runway_2.8.29: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /Users/fishtankmacbook/Sites/extract-technology
PERCH_SCHEDULE_SECRET: a6Kul7kfXIL7U5I2
PERCH_DB_USERNAME: extractt_teamfcu
PERCH_DB_SERVER: 87.117.252.235
PERCH_DB_DATABASE: extractt_teamfcu
PERCH_DB_PREFIX: perch2_
PERCH_EMAIL_FROM: barry@teamfc.co.uk
PERCH_EMAIL_FROM_NAME: Barry Corrigan
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/extractt/public_html/admin
PERCH_CORE: /home/extractt/public_html/admin/core
PERCH_RESFILEPATH: /home/extractt/public_html/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
PERCH_TZ: UTC
PERCH_CLEAN_RESOURCES:
PERCH_RUNWAY: 1
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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/extractt/public_html/admin/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
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.21
Zend: 2.6.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
MySQL server: 5.5.50-cll
Free disk space: 22.13 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, fileinfo, filter, ftp, gd, hash, iconv, SPL, json, mbstring, mcrypt, session, mysql, mysqli, standard, Phar, posix, Reflection, mysqlnd, SimpleXML, soap, sockets, imap, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, zip, cgi-fcgi, homeloader, PDO, pdo_sqlite, pdo_mysql, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: No
PHP max upload size: 10M
PHP max form post size: 10M
PHP memory limit: 1028M
Total max uploadable file size: 10M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
CONTEXT_DOCUMENT_ROOT: /home/extractt/public_html
DOCUMENT_ROOT: /home/extractt/public_html
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,fr;q=0.6
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: _ga=GA1.2.272308989.1461677591; cmsa=1; PHPSESSID=42399c51db7bd74aad0cb6634e3cad56
HTTP_HOST: extract-technology.com
HTTP_REFERER: https://extract-technology.com/admin/core/settings/diagnostics/
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.33 Safari/537.36
PATH: /bin:/usr/bin
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 81.105.76.171
REMOTE_PORT: 51104
REQUEST_METHOD: GET
REQUEST_SCHEME: http
REQUEST_URI: /admin/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/extractt/public_html/admin/core/settings/diagnostics/index.php
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
SERVER_ADDR: 87.117.252.235
SERVER_ADMIN: webmaster@extract-technology.com
SERVER_NAME: extract-technology.com
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache
UNIQUE_ID: V1-VeFd1-OsAA1hHvekAAAAF
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1465898360.99
REQUEST_TIME: 1465898360
argc: 1
Fishtank Creative

Fishtank Creative 2 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What size is the failed image? Had it been uploaded previously? What happens when you try to use it even though the thumbnail hasn't generated?

  • Image is 2.9mb
  • Yes it had been attempted a few times

I just attempted to upload that 2.9mb image again and this time it worked fine. I did just upload it on its own this time.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you often upload multiple images at once? That should work fine, but obviously the server has finite resources available.

So we got the hosting company to increase the following

max_memory = 128M
max_execution_time = 360
max_input_time = 360
max_input_vars = 8000
memory_limit = 128M
post_max_size = 512M
upload_max_filesize = 512M
max_file_uploads = 160

And this worked for a few days but now the images have started disappearing again. For whatever reason

https://extract-technology.com/news/2016-06-10-apprentices-of-today-working-for-apprentices-of-tomorrow https://extract-technology.com/news/2016-04-19-actavis-malta

I cant work this out.

Drew McLellan

Drew McLellan 2638 points
Perch Support

"started disappearing"?

Yes, I upload the image and it works for about 30 seconds, but then the image disappears. When I check on the server it cannot be seen there either. Somehow the images are being deleted.

This happens us a lot so we make a point of adding:

define('PERCH_CLEAN_RESOURCES', false);

to our config.php file which usually works but not for this website for whatever reason.

Drew McLellan

Drew McLellan 2638 points
Perch Support

What indication do you have that the file uploaded?

It appears fine on the website for a short while, but then disappears.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is there anything unusual about this hosting? I can't believe how many unique issues you're having.