Dear all,
Unfortunately, I am having an issue with images disappearing from the admin panel. They sit there for a while after uploading, then most disappear, although not all. The files are still present in the resources folder. As long as I don't re-save the pages that display the images, they are visible – however, as soon as I hit save in Perch, the links are broken, with an empty img src.
I've seen some threads about similar issues in the forum but no solution yet – still hoping for any ideas?
This is where the images are uploaded inside a block:
Code
- <perch:blocks>
- <perch:block type="video" label="Video">
- <div class="responsive-video video-container <perch:content id="project_img_col" type="select" label="Width of image/video" options="2 columns wide|project-two-col, 3 columns wide|project-three-col, 4 columns wide|project-four-col" allowempty="false" required>">
- <perch:content id="videoembed" type="textarea" label="Video Embed Code" html="true" size="s">
- </div>
- </perch:block>
- <perch:block type="image" label="Image">
- <img src="<perch:content id="project_image" type="image" label="Project image">" class="asset <perch:content id="project_img_col" type="select" label="Width of image/video" options="2 columns wide|project-two-col, 3 columns wide|project-three-col, 4 columns wide|project-four-col" allowempty="false" required>" srcset="<perch:content id="project_image" type="image" label="Project image" width="400"> 400w,
- <perch:content id="project_image" type="image" label="Project image" width="800"> 800w,
- <perch:content id="project_image" type="image" label="Project image" width="1200"> 1200w,
- <perch:content id="project_image" type="image" label="Project image" width="2500"> 2500w">
- </perch:block>
- </perch:blocks>
Diagnostics Report (perch3_resources (309) doesn't seem correct – there are 409 files in the resources folder and only 14 assets in "Assets"):
PHP
- Perch: 3.1.5
- Production mode: Production (100)
- Installed apps: content (3.1.5), assets (3.1.5), categories (3.1.5)
- DB driver: PDO
- DB tables: perch3_categories (0), perch3_category_counts (0), perch3_category_sets (0), perch3_content_index (744), perch3_content_items (120), perch3_content_regions (6), perch3_menu_items (8), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_templates (1), perch3_pages (1), perch3_resource_log (1962), perch3_resource_tags (0), perch3_resources (309), perch3_resources_to_tags (0), perch3_settings (20), perch3_user_passwords (0), perch3_user_privileges (28), perch3_user_role_privileges (5), perch3_user_roles (2), perch3_users (3)
- Users: 3
- App runtimes:
- <?php
- $apps_list = [
- ];
- Editor plug-ins:
- H1: df25d711f557bddf8328835af8916437
- L1: ec6a5bd4c9c13a1abc8c3832a64bf474
- F1: 3b606135b33e6a102526838f4152a807
- headerColour: #ffffff
- content_singlePageEdit: 1
- helpURL:
- siteURL: /
- hideBranding: 1
- content_collapseList: 1
- lang: en-gb
- installedAt: 3.1.5
- update_3.1.5: done
- latest_version:
- on_sale_version: 3.1.5
- headerScheme: light
- dashboard: 0
- sidebar_back_link: 0
- hide_pwd_reset: 0
- keyboardShortcuts: 0
- content_hideNonEditableRegions: 0
- content_frontend_edit: 0
- content_skip_region_list: 0
- assets_restrict_buckets: 0
- PERCH_DEVELOPMENT: 10
- PERCH_STAGING: 50
- PERCH_PRODUCTION: 100
- PERCH_DB_USERNAME: db278075_4
- PERCH_DB_SERVER: mysql5.annacairns.com
- PERCH_DB_DATABASE: db278075_4
- PERCH_DB_PREFIX: perch3_
- PERCH_TZ: UTC
- PERCH_EMAIL_FROM: mail@annacairns.com
- PERCH_EMAIL_FROM_NAME: Anna Cairns
- PERCH_LOGINPATH: /perch
- PERCH_PATH: /kunden/278075_10961/neu/dev/h/perch
- PERCH_CORE: /kunden/278075_10961/neu/dev/h/perch/core
- PERCH_RESFILEPATH: /kunden/278075_10961/neu/dev/h/perch/resources
- PERCH_RESPATH: /perch/resources
- PERCH_HTML5: 1
- PERCH_DEBUG: 1
- PERCH_CLEAN_RESOURCES:
- 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: 6738d5d5f5664f7c5e34
- PERCH_PREVIEW_ARG: preview
- PERCH_TEMPLATE_PATH: /kunden/278075_10961/neu/dev/h/perch/templates
- PERCH_TEMPLATE_FILTERS:
- 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: 7.2.11
- Zend: 3.2.0
- OS: Linux
- SAPI: cgi-fcgi
- Safe mode: not detected
- MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $
- MySQL server: 5.6.19-67.0-log
- Free disk space: 224.82 GB
- Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, mbstring, standard, mysqlnd, pcntl, mysqli, PDO, pdo_mysql, pdo_sqlite, pgsql, Phar, posix, Reflection, imap, SimpleXML, soap, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, cgi-fcgi
- GD: Yes
- ImageMagick: No
- PHP max upload size: 100M
- PHP max form post size: 100M
- PHP memory limit: 256M
- Total max uploadable file size: 100M
- Resource folder writeable: Yes
- Session timeout: 24 minutes
- Native JSON: Yes
- Filter functions: Yes
- Transliteration functions: Yes
- PATH: /usr/local/bin:/usr/bin:/bin
- UNIQUE_ID: XZLv7ZW-AoXUoM0QJom-SgAABoI
- SCRIPT_URL: /perch/core/settings/diagnostics/
- SCRIPT_URI: http://h.annacairns.com/perch/core/settings/diagnostics/
- SWFFONTPATH: /usr/lib/libswf/fonts/
- PDFLIBRESOURCE: /usr/local/fonts/pdflib.upr
- HTTP_HOST: h.annacairns.com
- HTTP_COOKIE: PHPSESSID=11f347523aa09dddec4b12b5dea422f1; cmsa=1
- HTTP_CONNECTION: keep-alive
- HTTP_UPGRADE_INSECURE_REQUESTS: 1
- HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
- HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15
- HTTP_REFERER: http://h.annacairns.com/perch/core/settings/diagnostics/
- HTTP_ACCEPT_LANGUAGE: de-de
- HTTP_ACCEPT_ENCODING: gzip, deflate
- SERVER_SOFTWARE: Apache/2.4.39
- SERVER_NAME: h.annacairns.com
- SERVER_ADDR: 134.119.234.59
- SERVER_PORT: 80
- REMOTE_ADDR: 78.54.169.102
- DOCUMENT_ROOT: /kunden/278075_10961/neu/dev/h
- SERVER_ADMIN: webmaster@h.annacairns.com
- SCRIPT_FILENAME: /kunden/278075_10961/neu/dev/h/perch/core/settings/diagnostics/index.php
- REMOTE_PORT: 61571
- GATEWAY_INTERFACE: CGI/1.1
- SERVER_PROTOCOL: HTTP/1.1
- REQUEST_METHOD: GET
- QUERY_STRING: extended
- REQUEST_URI: /perch/core/settings/diagnostics/?extended
- SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
- DOCROOT: /kunden/278075_10961/neu/dev/h
- DOC_ROOT: /kunden/278075_10961/neu/dev/h
- PHPRC: ./:/etc/php.ini/7/278075/1126009:/etc/php.ini/7/278075:/usr/local/php72-SECURE
- PHP_SELF: /perch/core/settings/diagnostics/index.php
- REQUEST_TIME_FLOAT: 1569910765.8911
- REQUEST_TIME: 1569910765
- argc: 1
Am very grateful for any pointers! Thanks in advance!