Forum
Can't delete repeater item
Hello,
I've found a problem with repeaters on a site currently in development. I don't seem to be able to delete a repeater item within a blog post. The UI hides as expected by once save has been clicked and the page reloaded it is back.
Diagnostics:
Perch LTM: 3.0.8
Production mode: Development (10)
Installed apps: content (3.0.8), assets (3.0.8), categories (3.0.8), perch_blog (5.6.1)
DB driver: PDO
DB tables: perch3_blog_authors (1), perch3_blog_comments (0), perch3_blog_index (763), perch3_blog_posts (28), perch3_blog_posts_to_tags (0), perch3_blog_sections (1), perch3_blog_tags (0), perch3_blog_webmention_queue (0), perch3_blogs (1), perch3_categories (46), perch3_category_counts (4), perch3_category_sets (8), perch3_content_index (2925), perch3_content_items (381), perch3_content_regions (123), perch3_menu_items (9), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_templates (8), perch3_pages (23), perch3_resource_log (1294), perch3_resource_tags (14), perch3_resources (353), perch3_resources_to_tags (30), perch3_settings (28), perch3_user_passwords (0), perch3_user_privileges (35), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1)
Users: 1
App runtimes:
<?php
$apps_list = [
'perch_blog'
];
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins), publish_posts (1 mins), process_webmentions (1 mins)
Editor plug-ins:
H1: 6d03adfb7c80969056d7f64b1e34e20b
L1: 8ee56c10ff224780f27b6bc32be8a667
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
headerColour: #506E5A
content_singlePageEdit: 1
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
installedAt: 3.0.8
update_3.0.8: done
latest_version:
on_sale_version: 3.0.8
headerScheme: dark
dashboard: 0
hide_pwd_reset: 0
keyboardShortcuts: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
content_skip_region_list: 0
helpURL: mailto:design@rootstudio.co.uk
logoPath: /admin/resources/elms-farm-logo.png
perch_blog_update: 5.6
perch_blog_post_url: /blog/post.php?s={postSlug}
perch_blog_site_name:
perch_blog_slug_format: {postID}-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 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_TZ: UTC
PERCH_EMAIL_FROM: james@rootstudio.co.uk
PERCH_EMAIL_FROM_NAME: James Wigger
PERCH_LOGINPATH: /admin
PERCH_PATH: /Users/James/Repositories/Elms Farm Cottages/Elms-Farm-Cottages-Core-Site/build/admin
PERCH_CORE: /Users/James/Repositories/Elms Farm Cottages/Elms-Farm-Cottages-Core-Site/build/admin/core
PERCH_RESFILEPATH: /Users/James/Repositories/Elms Farm Cottages/Elms-Farm-Cottages-Core-Site/build/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
PERCH_DB_USERNAME: root
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: elms_perch
PERCH_DB_PREFIX: perch3_
PERCH_DEBUG: 1
PERCH_PRODUCTION_MODE: 10
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: 5163d57ff611b3cf853b
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /Users/James/Repositories/Elms Farm Cottages/Elms-Farm-Cottages-Core-Site/build/admin/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
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_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.0.13
Zend: 3.0.0
OS: Darwin
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: 241ae00989d1995ffcbbf63d579943635faf9972 $
MySQL server: 5.6.34
Free disk space: 218.51 GB
Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, SPL, iconv, intl, json, ldap, mbstring, session, standard, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, readline, Reflection, mysqli, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, cgi-fcgi, imap, gettext, mcrypt, pgsql, pdo_pgsql, imagick, igbinary, memcached, xdebug
GD: Yes
ImageMagick: Yes
PHP max upload size: 32M
PHP max form post size: 32M
PHP memory limit: 512M
Total max uploadable file size: 32M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
PHP_FCGI_CHILDREN: 4
PWD: /Applications/MAMP/fcgi-bin
PHP_FCGI_MAX_REQUESTS: 200
__CF_USER_TEXT_ENCODING: 0x1F5:0x0:0x2
ORIG_SCRIPT_NAME: /fcgi-bin/php7.0.13.fcgi
ORIG_PATH_TRANSLATED: /Users/James/Repositories/Elms Farm Cottages/Elms-Farm-Cottages-Core-Site/build/admin/core/settings/diagnostics/index.php
ORIG_PATH_INFO: /admin/core/settings/diagnostics/index.php
ORIG_SCRIPT_FILENAME: /Applications/MAMP/fcgi-bin/php7.0.13.fcgi
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
REQUEST_URI: /admin/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.1
GATEWAY_INTERFACE: CGI/1.1
REDIRECT_URL: /admin/core/settings/diagnostics/index.php
REDIRECT_QUERY_STRING: extended
REMOTE_PORT: 64444
SCRIPT_FILENAME: /Users/James/Repositories/Elms Farm Cottages/Elms-Farm-Cottages-Core-Site/build/admin/core/settings/diagnostics/index.php
SERVER_ADMIN: you@example.com
DOCUMENT_ROOT: /Users/James/Repositories/Elms Farm Cottages/Elms-Farm-Cottages-Core-Site/build
REMOTE_ADDR: ::1
SERVER_PORT: 80
SERVER_ADDR: ::1
SERVER_NAME: elmsfarmcottages.local
SERVER_SOFTWARE: Apache
PATH: /usr/bin:/bin:/usr/sbin:/sbin
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-gb
HTTP_REFERER: https://elmsfarmcottages.local/admin/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.1 Safari/603.1.30
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: _ga=GA1.2.957443598.1479299122; PHPSESSID=aa4c83f0a3701979069ba4f18ee5c1ed; cmsa=1; style=standard; __insp_norec_sess=true; __insp_nv=false; __insp_slim=1492590457635; __insp_targlpt=U29jaWFsIENoYW5nZSBVSyA6OiBJbnNwaXJpbmcgY2hhbmdlIGluIHBlb3BsZSBhbmQgY29tbXVuaXRpZXM%3D; __insp_targlpu=aHR0cDovL3NvY2lhbC1jaGFuZ2UubG9jYWwv; __insp_wid=1206163498; __insp_uid=3505045805
HTTP_HOST: elmsfarmcottages.local
REDIRECT_STATUS: 200
REDIRECT_HANDLER: php-fastcgi
FCGI_ROLE: RESPONDER
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1502198324.08
REQUEST_TIME: 1502198324
argc: 1
Post template:
<perch:repeater id="gallery" label="Gallery">
<perch:blog id="image_lg" type="image" label="Image large" bucket="banner" crop="true" width="1280" height="515" suppress="true" help="1280 x 515" />
<perch:blog id="image_lg" type="image" bucket="banner" crop="true" width="1024" height="440" suppress="true" />
<perch:blog id="image_lg" type="image" bucket="banner" crop="true" width="540" height="320" suppress="true" />
<perch:blog id="image_md" type="image" label="Image medium" bucket="banner" crop="true" width="1024" height="440" suppress="true" help="1024 x 440" />
<perch:blog id="image_sm" type="image" label="Image small" bucket="banner" crop="true" width="540" height="320" suppress="true" help="540 x 320" />
<perch:blog id="alt" type="text" label="Alt" required="true" title="true" help="Provide a description for SEO and accessibility." suppress="true" />
<perch:template path="content/banner/image_banner.html" rescope="parent" />
</perch:repeater>
And the banner template:
<perch:before>
<div class="banner-image ">
<div class="banner-image__projector js-banner">
</perch:before>
<div class="banner-image__slide">
<picture>
<perch:if exists="image_sm">
<source srcset="<perch:content id="image_sm" type="image" bucket="banner" crop="true" width="540" height="320" />" media="(max-width: 735px)">
<perch:else />
<source srcset="<perch:content id="image_lg" type="image" bucket="banner" crop="true" width="540" height="320" />" media="(max-width: 735px)">
</perch:if>
<perch:if exists="image_md">
<source srcset="<perch:content id="image_md" type="image" bucket="banner" crop="true" width="2014" height="440" />" media="(max-width: 990px)">
<perch:else />
<source srcset="<perch:content id="image_lg" type="image" bucket="banner" crop="true" width="1024" height="440" />" media="(max-width: 990px)">
</perch:if>
<source srcset="<perch:content id="image_lg" type="image" bucket="banner" crop="true" width="1280" height="515" />">
<img src="<perch:content id="image_lg" type="image" bucket="banner" crop="true" width="1280" height="515" />" alt="<perch:content id="alt" />" class="banner-image__src"/>
</picture>
</div>
<perch:after>
</div>
<div class="banner-image__back">
<a href="#" class="btn-arrow btn-arrow--reverse js-banner-back">
<svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 43.2 43.2">
<path d="M0,0V43.2H43.2V0ZM42.2,42.2H1V1H42.2Z"/>
<polygon points="22 29.6 14.5 22.1 29.9 22.1 29.9 21.1 14.5 21.1 22 13.6 21.3 12.9 12.6 21.6 21.3 30.4 22 29.6"/>
</svg>
</a>
</div>
<div class="banner-image__next">
<a href="#" class="btn-arrow btn-arrow--reverse js-banner-next">
<svg xmlns="https://www.w3.org/2000/svg" viewBox="0 0 43.2 43.2">
<path d="M0,0V43.2H43.2V0ZM42.2,42.2H1V1H42.2Z"/>
<polygon points="21.2 29.6 21.9 30.4 30.6 21.6 21.9 12.9 21.2 13.6 28.7 21.1 13.3 21.1 13.3 22.1 28.7 22.1 21.2 29.6"/>
</svg>
</a>
</div>
</div>
</perch:after>
This is what happens: video
I think this is the same as another known issue, but I'll take a look into it at the same time.
Ok - thanks for looking into it Drew. Have a good evening!