Forum

Thread tagged as: Problem, Blog

Repeater items not deleting in Perch 3

Hi, I can confirm I'm having the same problem in Perch 3 as was happening here - https://forum.grabaperch.com/forum/02-17-2017-perch-repeater-not-getting-removed-from-blog-app

If I try to delete all the items in my repeater at once and save, none of them are deleted.

If I remove one item and save, it will delete, but when I get to the last one, it wont delete.

Diagnostics

Perch: 3.0.1, PHP: 5.6.29, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.1), assets (3.0.1), categories (3.0.1), perch_blog (5.5.1), perch_forms (1.9)
App runtimes: <?php $apps_list = [ 'perch_forms', 'perch_blog' ];
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/soulsurfskate/soulsurfskate.wearedhd.com/admin
PERCH_CORE: /home/soulsurfskate/soulsurfskate.wearedhd.com/admin/core
PERCH_RESFILEPATH: /home/soulsurfskate/soulsurfskate.wearedhd.com/admin/resources
Image manipulation: GD Imagick
PHP limits: Max upload 64M, Max POST 65M, Memory: 90M, Total max file upload: 64M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
REQUEST_URI: /admin/core/settings/diagnostics/
DOCUMENT_ROOT: /home/soulsurfskate/soulsurfskate.wearedhd.com
HTTP_HOST: www.soulsurfskate.wearedhd.com

Template

                        <div class="main-full">
                            <div class="article" id="id-1331">
                                <h2><perch:blog id="postDateTime" type="date" time="true" format="%d %B %Y" /></h2>
                                <h1><a href="<perch:blog id="postURL" type="hidden" />" rel="bookmark" class="p-name"><perch:blog id="postTitle" type="text" label="Title" required="true" size="xl autowidth" order="1" /></a></h1>

                                <perch:blog id="content" type="textarea" label="Content" editor="ckeditor" html="true" />

                                <div class="clear"></div>

<perch:if exists="images">
                                <div class="media images <perch:blog id="layout" type="select" label="Image Layout" options="Full Width|full_width,Grid|grid_width" required="true" />">

                                <perch:repeater id="images" label="Images">
                                    <div class="image">
                                        <img src="<perch:blog id="image" type="image" label="Image" crop="true" width="800px" height="600px" />" alt="<perch:blog id="image_title" type="text" label="Image Description" required="true" />" title="<perch:blog id="image_title" />" style="width:741px;height:741px;" />
                                    </div>
                                </perch:repeater>

                                </div>

                                <div class="clear"></div>
</perch:if>
                            </div>

                            <div class="clear"></div>
                        </div>

Page Code

<?php
    include 'admin/runtime.php';
    include 'includes/header.php';

    perch_blog_custom(array(
        'template'   => 'post_in_list.html',
        'count'      => 10,
        'sort'       => 'postDateTime',
        'sort-order' => 'DESC',
    ));

    include 'includes/footer.php';
?>
David Henderson

David Henderson 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is this just in the Blog app? Does it happen in the current version, or just this old one?

I did an upgrade to Perch 3.0.4 but still no change - it only happens in the blog posts, I have a repeater that is coded the exact same way but for page content (so tags are <perch:content instead of <perch:blog)

Here it is...

<perch:if exists="images">
                                <div class="media images <perch:content id="layout" type="select" label="Image Layout" options="Full Width|full_width,Grid|grid_width" required="true" />">

                                <perch:repeater id="images" label="Images">
                                    <div class="image">
                                        <img src="<perch:content id="image" type="image" label="Image" crop="true" width="800px" height="600px" />" alt="<perch:content id="image_title" type="text" label="Image Description" required="true" />" title="<perch:content id="image_title" />" style="width:741px;height:741px;" />
                                    </div>
                                </perch:repeater>

                                </div>

                                <div class="clear"></div>
</perch:if>
Drew McLellan

Drew McLellan 2638 points
Perch Support

That certainly sounds like the same issue in that case - so the same resolution will apply when it's ready.

No worries, so there is a fix coming for this?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, it's absolutely something we'll be looking to fix.

Thanks Drew, just in the off chance, have you a rough idea when you're aiming for? I take it this would be fixed in a future release?

Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't have an estimate, but yes, in a future release.