Forum

Thread tagged as: Problem, Error

image uploader possible bug?

client have complained that many times image does not upload using image uploader, he is trying to upload a PNG file.

we are using s3 bucket to upload image. please look at the video here in action https://www.dropbox.com/s/zvcmthcrjz0la4o/Image%20Uploader%20broken.mp4?dl=0

however, there is no problem uploading many images using same way. It is only sometimes that the problem comes. very strange!

sawan ruparel

sawan ruparel 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

With each post to the forum we need to see your Diagnostics Report and any relevant code.

Here you go

Perch Runway: 2.8.29
Production mode: (PERCH_PRODUCTION)
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), jw_activity_log (1.0.1), perch_blog (5.0), collection_2 (2.8.29), ketterus_dashboard (1), collection_3 (2.8.29), perch_forms (1.8.3), instagram (2.1), perch_shop_orders (1.0), perch_shop_products (1.0), perch_shop (1.0), storelocator (2.1), styles/?page=admin/styles_list.php (2.1), perch_members (1.5), perch_mailchimp (3.0.1)
DB driver: PDO
DB tables: api_stock_po (7202), collections (8), collections_styles (1725), content_backup_plans (1), content_backup_resources (88), content_backup_runs (45), content_blog_authors (5), content_blog_comments (1), content_blog_index (232), content_blog_posts (7), content_blog_posts_to_tags (1), content_blog_sections (1), content_blog_tags (1), content_blogs (1), content_categories (21), content_category_counts (17), content_category_sets (2), content_collection_index (5986), content_collection_items (155), content_collection_revisions (49), content_collections (2), content_content_index (684), content_content_items (138), content_content_regions (84), content_forms (0), content_forms_responses (0), content_instagram (975), content_instagram1 (274), content_instagram2 (1566), content_instagram22 (557), content_jw_activity_log_actions (65), content_mailchimp_campaigns (102), content_mailchimp_imports (2), content_mailchimp_lists (10), content_mailchimp_subscribers (7671), content_mailchimp_subscriptions (8373), content_mailchimp_webhooks (0), content_members (47466), content_members_dress_registered (0), content_members_favourite (0), content_members_forms (2), content_members_gigya (48578), content_members_gigya_points (142347), content_members_info (47451), content_members_member_tags (0), content_members_sessions (1), content_members_squad (2), content_members_tags (2), content_my_sample_things (10), content_navigation (3), content_navigation_pages (7), content_page_routes (31), content_page_templates (36), content_pages (34), content_resource_log (2244), content_resource_tags (0), content_resources (612), content_resources_to_tags (0), content_scheduled_tasks (75), content_settings (42), content_shop_addresses (32), content_shop_admin_index (48), content_shop_brands (1), content_shop_cart (432713), content_shop_cart_data (147), content_shop_cart_items (42), content_shop_countries (248), content_shop_currencies (153), content_shop_customers (10), content_shop_emails (1), content_shop_index (264), content_shop_option_values (4), content_shop_options (2), content_shop_order_items (51), content_shop_order_promotions (0), content_shop_order_statuses (9), content_shop_orders (47), content_shop_orders_meta (1), content_shop_product_files (0), content_shop_product_option_values (4), content_shop_product_options (2), content_shop_product_tags (0), content_shop_products (8), content_shop_promotions (0), content_shop_search (4), content_shop_shipping_zone_countries (2), content_shop_shipping_zones (1), content_shop_shippings (2), content_shop_tax_exhibits (47), content_shop_tax_group_rates (1), content_shop_tax_groups (1), content_shop_tax_locations (1), content_shop_tax_rates (1), content_shop_variants (8), content_storelocator (897), content_storelocator1 (3), content_storelocator2 (0), content_user_passwords (0), content_user_privileges (62), content_user_role_privileges (52), content_user_roles (3), content_users (8), federated_link_styles_category (4713), federated_m_color (796), federated_m_styles_bodytype (15), federated_mm_styles_category (46), federated_mm_styles_category_sortorder (1273), federated_styles (3702), federated_styles_bodytype (3881), federated_styles_cs (106574), federated_styles_image_gallery (345), federated_styles_image_manager (9896), federated_styles_stock (106992), gigya (166227), keywords (1), keywords_result (3), log_logger (87066), log_query (86982), log_respond (87066), m_bodytypes (13), m_colors (82), m_highschool (43147), m_length (2), m_size (14), sitemap (1111), sitemap_de (1111), sitemap_es (1111), sitemap_hr (1111), sitemap_tr (1111), store_invoiced_stock (521), store_staff (1), styles (1090), styles_images (4403), styles_instagram (0), styles_variations (35947), styles_wishlist (9), temp_federated_styles (452)
Users: 8
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_members',
        'perch_shop',
        'perch_mailchimp',
        'perch_forms',
        'perch_blog',
        'instagram',
        'jw_activity_log',
        'storelocator',
    );
Scheduled tasks for perch_mailchimp: import_data (1 mins)
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Scheduled tasks for instagram: instagram_images (1440 mins)
Scheduled tasks for jw_activity_log: prune_actions_log (1440 mins)
Scheduled tasks for Styles: Styles_CheckImages (10 mins)
Scheduled tasks for Backup: plan_1 (10 mins)
Editor plug-ins: redactor, markitup
H1: ac6942f9e8111f4d0272680fa0e47997
L1: 89154e425a86c91678d4bcd7c347d63b
F1: 2edba60ed1f613d6dd804feb202456a2
content_collapseList: 1
content_frontend_edit: 1
content_hideNonEditableRegions: 1
content_singlePageEdit: 1
dashboard: 0
headerColour: #000000
headerScheme: dark
helpURL:
hideBranding: 1
hide_pwd_reset: 1
jw_activity_log_prune_time: 30
lang: english
latest_version: 2.8.15
my_sample_example_setting: 0
on_sale_version: 2.8.31
perch_blog_akismet_key:
perch_blog_comment_notify: 0
perch_blog_max_spam_days: 0
perch_blog_post_url: /blog/{postSlug}
perch_blog_site_name:
perch_blog_slug_format: {postTitle}
perch_blog_update: 5.0.1
perch_mailchimp_api_key: f82b39f30f1f385f06b901df66d55f7e-us8
perch_mailchimp_campaign_url: /_samples/mailchimp/campaign.php?s={campaignSlug}
perch_mailchimp_list_id: 88519cee53
perch_mailchimp_secret: 5efe0efa90f097e366e248d80c66e3af
perch_mailchimp_update: 2.0
perch_members_login_page: /_samples/members/login.php?r={returnURL}
perch_members_update: 1.4
perch_shop_default_currency: 142
perch_shop_invoice_number_format: Invoice%d
perch_shop_price_tax_mode: exc
perch_shop_product_url: /shop/products/{slug}
perch_shop_reporting_currency: 142
perch_shop_site_url: https://
perch_shop_trade_price_tax_mode: exc
siteURL: https://dev.domain.com/
update_2.8.26: done
update_runway_2.8.26: done
update_runway_2.8.29: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /var/www/html/domain.com
PERCH_SCHEDULE_SECRET: BqxVaifwmira8Tlv
PERCH_DB_USERNAME: betashwebsite
PERCH_DB_SERVER: betashwebsite.cluster-cscyoavlebgc.us-east-1.rds.amazonaws.com
PERCH_DB_DATABASE: betashwebsite
PERCH_DB_PREFIX: content_
PERCH_PRODUCTION_MODE: PERCH_PRODUCTION
PERCH_LOGINPATH: /content
PERCH_PATH: /var/www/html/domain.com/content
PERCH_CORE: /var/www/html/domain.com/content/core
PERCH_RESFILEPATH: /var/www/html/domain.com/content/resources
PERCH_RESPATH: /content/resources
PERCH_HTML5: 1
PERCH_TZ: America/Chicago
PERCH_EMAIL_FROM: website@domain.com
PERCH_EMAIL_FROM_NAME: Domain Name
PERCH_EMAIL_METHOD: smtp
PERCH_EMAIL_HOST: email-smtp.us-east-1.amazonaws.com
PERCH_EMAIL_AUTH: 1
PERCH_EMAIL_SECURE: ssl
PERCH_EMAIL_PORT: 465
PERCH_EMAIL_USERNAME: AKIAJHD5HLZYL6Z3AGMQ
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: /var/www/html/domain.com/content/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
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
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: textile
HOSTING SETTINGS

PHP: 5.6.22
Zend: 2.6.0
OS: Linux
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
MySQL server: 5.6.10
Free disk space: 4.77 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, bz2, calendar, ctype, curl, dom, exif, fileinfo, ftp, gd, gettext, iconv, mysqlnd, PDO, pgsql, Phar, posix, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, zip, mysql, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, wddx, xmlreader, json, mhash
GD: Yes
ImageMagick: No
PHP max upload size: 15M
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
HTTP_HOST: dev.domain.com
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch, br
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_REFERER: https://dev.domain.com/content/core/settings/diagnostics/
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36
HTTP_X_FORWARDED_FOR: 122.170.115.187
HTTP_X_FORWARDED_PORT: 443
HTTP_X_FORWARDED_PROTO: https
HTTP_COOKIE: s1468825886=39nv507i45423errngitib3v64; s1469077636=tte51lnr1qi4b8c2vdpn2a1bt0; s1468398925=2io4e8611vl5gj88u93nbo7f03; s1467118405=m3asnj55v94gbfmvd9t3e9k3j3; banner_seen=1; cmsa=1; PHPSESSID=alfnvfc270j0f01s0i89gss0t7
HTTP_X_VARNISH: 1304733998
PATH: /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SOFTWARE: Apache/2.4.23 (Amazon) OpenSSL/1.0.1k-fips PHP/5.6.22
SERVER_NAME: dev.domain.com
SERVER_ADDR: 127.0.0.1
SERVER_PORT: 80
REMOTE_ADDR: 127.0.0.1
DOCUMENT_ROOT: /var/www/html/domain.com
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: /var/www/html/domain.com
SERVER_ADMIN: root@localhost
SCRIPT_FILENAME: /var/www/html/domain.com/content/core/settings/diagnostics/index.php
REMOTE_PORT: 56886
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /content/core/settings/diagnostics/?extended
SCRIPT_NAME: /content/core/settings/diagnostics/index.php
PHP_SELF: /content/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1469691053.973
REQUEST_TIME: 1469691053
Rachel Andrew

Rachel Andrew 394 points
Perch Support

The first thing you should do is make sure that Perch is up to date prior to requesting support.

Secondly if it only fails sometimes the most likely issue is something in your environment or a difference in the files being uploaded. Perch isn't going to sometimes work and sometimes not. So you will need to figure out what the difference is.