Forum

Thread tagged as: Problem, Error, Forum

Assets prior to date removed

Hello,

This morning my client discovered that all images added prior to January 24 are gone. They have all been added through the assets app. I am aware that there is a 2MB upload limit for files. But I fail to understand how this would cause all images to be removed.

I updated perch to 2.8.5 a few days ago, but the pictures disappeared just this morning.

Diagnostics report:


Perch: 2.8.5 Production mode: Production (100) Installed apps: content (2.8.5), assets (2.8.5), categories (2.8.5), perch_blog (4.6), perch_forms (1.8.3), perch_mailchimp (2.0.1) DB driver: PDO DB tables: perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_forms, perch2_forms_responses, perch2_mailchimp_campaigns, perch2_mailchimp_history, perch2_mailchimp_log, perch2_mailchimp_stats, perch2_mailchimp_subscribers, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users Users: 5 App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_forms' ); ?> Scheduled tasks for perch_mailchimp: update_list_stats (60 mins) Scheduled tasks for perch_blog: delete_spam_comments (1440 mins) Editor plug-ins: markitup H1: cb7d7dfeeae55586667d5db6ad140e67 L1: f4d6cce868d1139f655ffa2bc1cc25a0 headerColour: #ffffff content_singlePageEdit: 1 helpURL: siteURL: / hideBranding: 1 content_collapseList: 1 lang: en-gb update_2.7.6: done latest_version: 2.8 on_sale_version: 2.8.6 perch_blog_update: 5.0 perch_blog_post_url: /news/newsfeed/post.php?s={postSlug} headerScheme: light dashboard: 0 perch_blog_slug_format: %Y-%m-%d-{postTitle} perch_blog_akismet_key: perch_blog_max_spam_days: 0 hide_pwd_reset: 0 content_hideNonEditableRegions: 0 content_frontend_edit: 0 perch_blog_comment_notify: 0 perch_mailchimp_secret: 9935ae06b9299ac5d3afa67eeb92b228 perch_mailchimp_update: 2.0 perch_mailchimp_api_key: 0f1f1fc4c31cb36f259b72b75dd366c2-us10 perch_mailchimp_list_id: ecce2b290b perch_mailchimp_campaign_url: /mailchimp/campaign.php?s={campaignSlug} update_2.8.5: done PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: root PERCH_DB_SERVER: localhost PERCH_DB_DATABASE: perch PERCH_DB_PREFIX: perch2_ PERCH_TZ: UTC PERCH_EMAIL_FROM: mail@nicolai.io PERCH_EMAIL_FROM_NAME: Nicolai Davies PERCH_LOGINPATH: /perch PERCH_PATH: /var/www/html/perch PERCH_CORE: /var/www/html/perch/core PERCH_RESFILEPATH: /var/www/html/perch/resources PERCH_RESPATH: /perch/resources PERCH_HTML5: 1 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_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /var/www/html/perch/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_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: HOSTING SETTINGS PHP: 5.5.9-1ubuntu4.4 Zend: 2.5.0 OS: Linux SAPI: apache2handler Safe mode: not detected MySQL client: 5.5.38 MySQL server: 5.5.38-0ubuntu0.14.04.1 Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dom, hash, fileinfo, filter, ftp, gettext, SPL, iconv, mbstring, session, posix, Reflection, standard, shmop, SimpleXML, soap, sockets, Phar, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, apache2handler, PDO, gd, json, mysql, mysqli, pdo_mysql, readline, mhash, Zend OPcache GD: Yes ImageMagick: No PHP max upload size: 2M PHP max form post size: 8M PHP memory limit: 128M Total max uploadable file size: 2M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: No HTTP_HOST: waterford.sz HTTP_CONNECTION: keep-alive 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_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 HTTP_REFERER: https://waterford.sz/perch/core/settings/diagnostics/index.php HTTP_ACCEPT_ENCODING: gzip, deflate, sdch HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,da;q=0.6,de;q=0.4 HTTP_COOKIE: PHPSESSID=t1b60i3aef54ovmqo6nd3u03q6; cmsa=1; _ga=GA1.2.702016349.1419466462; _gat=1 PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin SERVER_SIGNATURE: <address>Apache/2.4.7 (Ubuntu) Server at waterford.sz Port 80</address> SERVER_SOFTWARE: Apache/2.4.7 (Ubuntu) SERVER_NAME: waterford.sz SERVER_ADDR: 188.166.4.200 SERVER_PORT: 80 REMOTE_ADDR: 41.215.152.19 DOCUMENT_ROOT: /var/www/html REQUEST_SCHEME: http CONTEXT_DOCUMENT_ROOT: /var/www/html SERVER_ADMIN: webmaster@localhost SCRIPT_FILENAME: /var/www/html/perch/core/settings/diagnostics/index.php REMOTE_PORT: 62828 GATEWAY_INTERFACE: CGI/1.1 SERVER_PROTOCOL: HTTP/1.1 REQUEST_METHOD: GET QUERY_STRING: extended REQUEST_URI: /perch/core/settings/diagnostics/index.php?extended SCRIPT_NAME: /perch/core/settings/diagnostics/index.php PHP_SELF: /perch/core/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1430738847.872 REQUEST_TIME: 1430738847
Nicolai Davies

Nicolai Davies 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Which version did you update from?

I do not remember, although it was prior to 2.8, possibly 2.6

Drew McLellan

Drew McLellan 2638 points
Perch Support

Did you get any messages when you updated?

I did not, the update went completely smooth.

Drew McLellan

Drew McLellan 2638 points
Perch Support

It might be best to roll back to your backup. Then check to see if the perch2_resource_log table exists in the database.

The perch2_resource_log does exist and is populated with around 500 entries.

We are probably not going to find the cause, at least you know now if something similar pops up.

I suspect that it might be the automatic removal of unused resources that has caused it. I have now switched that of.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, that's what has caused the removal. It doesn't explain why the assets looked like they were due to be removed.