Forum
Multiple Repeaters within Blocks Template not saving.
Hello. I'm trying to create a blocks template for the first time and I am having an issue with repeaters that are inside it.
I'm creating a block that has three islands, each with their own heading, description and list. I'd like each list to be a repeater. Within the admin section I am able to add the block, and successfully save the content for all three headings, and descriptions, but only the content for the first list repeater (island1List). I can add the repeater fields and enter text, but when I save the region the content for the second and third list repeaters just disappear.
I've tried renaming the regions, and I am using multiple repeaters within non-blocks templates elsewhere on the site, so I don't know whether it's a blocks specific issue, or whether I am just missing something really obvious.
Any help would be much appreciated!
My main blocks template is main_content_blocks.html
:
<perch:blocks>
<perch:block type="islandTrio" label="Island Trio">
<perch:template path="content/blocks/island_trio.html" />
</perch:block>
</perch:blocks>
Note: I've tried this with and without the template include, and still experience the problem.
The island_trio.html
template is:
<div class="row">
<div class="col-s-4">
<div class="island">
<h1><perch:content id="island1Heading" type="text" label="Heading" required="true" title="true" /></h1>
<perch:content id="island1Desc" type="textarea" label="Description" html="true" editor="redactor" imagewidth="720" imageheight="540" imagedensity="2" imagequality="50" imagesharpen="2" bucket="general" />
<perch:repeater id="island1List" label="List" max="5">
<perch:before><ul class="fa-ul"></perch:before>
<li><i class="fa-li fa fa-caret-right"></i> <perch:content id="island1ListItem" type="text" label="List Item" /></li>
<perch:after></ul></perch:after>
</perch:repeater>
</div>
</div>
<div class="col-s-4">
<div class="island">
<h1><perch:content id="island2Heading" type="text" label="Heading" required="true" title="true" /></h1>
<perch:content id="island2Desc" type="textarea" label="Description" html="true" editor="redactor" imagewidth="720" imageheight="540" imagedensity="2" imagequality="50" imagesharpen="2" bucket="general" />
<perch:repeater id="island2List" label="List" max="5">
<perch:before><ul class="fa-ul"></perch:before>
<li><i class="fa-li fa fa-caret-right"></i> <perch:content id="island2ListItem" type="text" label="List Item" /></li>
<perch:after></ul></perch:after>
</perch:repeater>
</div>
</div>
<div class="col-s-4">
<div class="island">
<h1><perch:content id="island3Heading" type="text" label="Heading" required="true" title="true" /></h1>
<perch:content id="island3Desc" type="textarea" label="Description" html="true" editor="redactor" imagewidth="720" imageheight="540" imagedensity="2" imagequality="50" imagesharpen="2" bucket="general" />
<perch:repeater id="island3List" label="List" max="5">
<perch:before><ul class="fa-ul"></perch:before>
<li><i class="fa-li fa fa-caret-right"></i> <perch:content id="island3ListItem" type="text" label="List Item" /></li>
<perch:after></ul></perch:after>
</perch:repeater>
</div>
</div>
</div>
Here is the diagnostic report for the install:
Perch: 2.8.2
Production mode: (PERCH_DEVELOPMENT)
Installed apps: content (2.8.2), assets (2.8.2), categories (2.8.2), perch_blog (4.5.4), perch_forms (1.8.2), perch_mailchimp (2.0.1), perch_newsfeed (1), perch_backup (1.2)
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_newsfeed, 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: 1
App runtimes:
<?php
$apps_list = array(
'content',
'categories',
'perch_blog',
'perch_forms',
'perch_mailchimp',
);
?>
Scheduled tasks for perch_mailchimp: update_list_stats (60 mins)
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Scheduled tasks for perch_newsfeed: update_news (1440 mins)
Editor plug-ins: markitup, redactor
H1: 43ebf049f1c6befa0455d7cce9845527
L1: 20f05f40a6b24c524cf76e1056cc7f34
headerColour: #060000
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.4.9: done
latest_version: 2.7.10
on_sale_version: 2.8.2
headerScheme: dark
dashboard: 1
content_hideNonEditableRegions: 1
content_frontend_edit: 1
hide_pwd_reset: 0
logoPath: /office/resources/dark-flare-design-logo.svg
perch_blog_comment_notify: 0
update_2.5: done
update_2.5.1: done
update_2.5.2: done
perch_blog_post_url: /blog/post.php?s={postSlug}
perch_blog_update: 5.0
update_2.6.3: done
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
update_2.7.10: done
perch_mailchimp_list_id: 37ce0b233a
perch_mailchimp_campaign_url: /_mailchimp/campaign.php?s={campaignSlug}
perch_mailchimp_api_key: 50b8eca7e6758096a45b9ca4978c5249-us1
perch_mailchimp_secret: dfb814194290291ab22902c741a6771e
perch_mailchimp_update: 2.0
perch_backup_mysqldump_path:
update_2.8.2: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: cl34-dfd-jlw
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: cl34-dfd-jlw
PERCH_DB_PREFIX: perch2_
PERCH_TZ: Europe/London
PERCH_EMAIL_FROM: iain@darkflaredesign.co.uk
PERCH_EMAIL_FROM_NAME: Iain Fergus
PERCH_LOGINPATH: /office
PERCH_PATH: /home/sites/darkflarehosting.co.uk/public_html/dfd/office
PERCH_CORE: /home/sites/darkflarehosting.co.uk/public_html/dfd/office/core
PERCH_RESFILEPATH: /home/sites/darkflarehosting.co.uk/public_html/dfd/office/resources
PERCH_RESPATH: /office/resources
PERCH_HTML5: 1
PERCH_RWD: 1
PERCH_DEBUG: 1
PERCH_PRODUCTION_MODE: PERCH_DEVELOPMENT
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: /home/sites/darkflarehosting.co.uk/public_html/dfd/office/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
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.20
Zend: 2.5.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: bf9ad53b11c9a57efdb1057292d73b928b8c5c77 $
MySQL server: 5.5.33
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, sockets, mbstring, tokenizer, xml, cgi-fcgi, bcmath, curl, dom, enchant, fileinfo, gd, imap, intl, json, ldap, exif, mcrypt, mssql, mysqlnd, mysql, mysqli, odbc, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, recode, soap, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, mhash, ionCube Loader
GD: Yes
ImageMagick: No
PHP max upload size: 64M
PHP max form post size: 64M
PHP memory limit: 128M
Total max uploadable file size: 64M
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: VPyLsH8AAAEAAG3YkuoAAAAN
SCRIPT_URL: /office/core/settings/diagnostics/
SCRIPT_URI: https://dfd.darkflarehosting.co.uk/office/core/settings/diagnostics/
HTTP_HOST: dfd.darkflarehosting.co.uk
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36
HTTP_REFERER: https://dfd.darkflarehosting.co.uk/office/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,en-GB;q=0.6
HTTP_COOKIE: __utma=235148692.733821057.1421239660.1421239660.1421239660.1; __utmc=235148692; __utmz=235148692.1421239660.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=185954684.1818931716.1425574274.1425574274.1425818445.2; __utmc=185954684; __utmz=185954684.1425574274.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); cmsa=1; PHPSESSID=l4i7jsrk5k127h2j5kc1108am3
HTTP_CONNECTION: close
SERVER_SIGNATURE: <address>Apache/2.4.9 (Unix) Server at dfd.darkflarehosting.co.uk Port 80</address>
SERVER_SOFTWARE: Apache/2.4.9 (Unix)
SERVER_NAME: dfd.darkflarehosting.co.uk
SERVER_ADDR: 10.0.44.147
SERVER_PORT: 80
REMOTE_ADDR: 2.217.84.145
DOCUMENT_ROOT: /home/sites/darkflarehosting.co.uk/public_html/dfd/
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: /home/sites/darkflarehosting.co.uk/public_html/dfd/
SERVER_ADMIN: webmaster@dfd.darkflarehosting.co.uk
SCRIPT_FILENAME: /home/sites/darkflarehosting.co.uk/public_html/dfd/office/core/settings/diagnostics/index.php
REMOTE_PORT: 39681
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /office/core/settings/diagnostics/?extended
SCRIPT_NAME: /office/core/settings/diagnostics/index.php
PHP_SELF: /office/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1425836976.7787
REQUEST_TIME: 1425836976
Do you get any errors at all?
No, nothing that I can see.
Here are the debug messages from the region within the admin area:
I'm looking into this to see if we can reproduce it.
Thanks Drew.
Hi,
just experienced the same problem. Has there been any update on this yet?
Thanks
My block is not saving a paragraph text area within a repeater.
Please raise a new thread with your own Diagnostic Report if you have an issue. Most often reported "same issues" aren't actually the same issue. So assume you have a special issue all of your own in order that we can help you!