Forum

Thread tagged as: Problem

Perch is not saving data

Hi,

I am clicking "Save" for a Shared Region in Perch and it does not come up with the familiar green "saved" writing.

If I create a new bunch of data, i.e. by using a Repeater, it will not save but when I selected Add Another, the data is still there in the web page.

If I then go and refresh the content in Perch, the data will still be present but it disappears when I click save again.

Would there be something on the server holding back a write, e.g. in PHP or might the interaction between the CMS and an older PHP version be the issue? Otherwise, the only thing I can think of is; maybe there is some kind of limit to the number of records allowed.

It seems I can delete and re-add a record but I cannot not add another one.

There are 125 entries in total, all multi-field items.

Garth Holmes

Garth Holmes 1 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

You are going to need to give us some more information if you would like us to help, although that sounds more like an issue with your internet connection than with Perch.

Any support request should include your Diagnostics Report and the template on which you are seeing an issue.

<?php set_include_path($_SERVER['DOCUMENT_ROOT']); ?>
<?php include('includes/head/pages/page.php'); ?>
<body>
<div class="page">
<div id="top_section_courses">
<div class="top">
<?php include('includes/head/logo.php'); ?>
<?php include('includes/navigation/1nav.php'); ?>
</div>
</div>
<div id="bottom_section_courses">
<?php perch_content('Heading'); ?>
<nav>
<div class="sidebar">
<?php include('includes/sidebar/side.php'); ?>
</div>
</nav>
<?php include('includes/templates/page1.php'); ?>
</div>
</div>
<?php include('includes/footer/footer.php'); ?>
</body>
</html>
<?php include('perch/runtime.php'); ?>
<?php perch_content_create('Title', array('template' => 'title.html','multiple' => false)); ?>
<?php perch_content_create('Heading', array('template' => '_heading/hse.html','multiple' => false)); ?>
<?php perch_content_create('Description', array('template' => 'description.html','multiple' => false)); ?>
<?php perch_content_create('Delivery', array('template' => '_specific/delivery.html','multiple' => false)); ?>
<?php perch_content_create('Outcomes', array('template' => '_specific/outcomes.html','multiple' => false)); ?>
<?php perch_content_create('Schedule', array('template' => 'schedules.html','multiple' => false)); ?>
<?php include('includes/head/1header.php'); ?>
<section>
<?php perch_content('Description'); ?>
<h2>Delivery</h2>
<?php perch_content('Delivery'); ?>
<?php perch_content('Outcomes'); ?>
<h2>Upcoming Practical Assessment Dates</h2>
<table id="ScheduleTable">
    <thead>
        <tr>
            <th>Code</th>
            <th>Location</th>
            <th>State</th>
            <th>Dates</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <?php perch_content('Schedule'); ?>
        </tr>
    </tbody>
</table>
</section>
<perch:repeater id="Course" title="Course">
<td>
<perch:content id="code" type="text" label="Course Code" />
</td>
<td>
<perch:content id="venue" type="select" label="Venue" options="Cairns, Canberra, Darwin, Hobart, Lands, Launceston, Leonards, Mackay, Mary, Murdoch, Nerang, Picton, Preston, Regency, Salisbury, Towns" label="Venues" suppress="true" allowempty="true" />
<perch:if id="venue" value="Cairns">Cairns</perch:if>
<perch:if id="venue" value="Canberra">Canberra</perch:if>
<perch:if id="venue" value="Darwin">Darwin</perch:if>
<perch:if id="venue" value="Hobart">Hobart</perch:if>
<perch:if id="venue" value="Lands">Landsborough</perch:if>
<perch:if id="venue" value="Launceston">Launceston</perch:if>
<perch:if id="venue" value="Leonards">St. Leonards</perch:if>
<perch:if id="venue" value="Mackay">Mackay</perch:if>
<perch:if id="venue" value="Mary">Maryborough</perch:if>
<perch:if id="venue" value="Murdoch">Murdoch</perch:if>
<perch:if id="venue" value="Nerang">Nerang</perch:if>
<perch:if id="venue" value="Picton">Picton</perch:if>
<perch:if id="venue" value="Preston">Preston</perch:if>
<perch:if id="venue" value="Regency">Regency Park</perch:if>
<perch:if id="venue" value="Salisbury">Salisbury</perch:if>
<perch:if id="venue" value="Towns">Townsville</perch:if>
</td>
<td>
<perch:content id="state" type="select" label="State" options="ACT, NSW, NT, QLD, SA, TAS, VIC, WA" label="States" suppress="true" allowempty="true" />
<perch:if id="state" value="ACT">ACT</perch:if>
<perch:if id="state" value="NSW">NSW</perch:if>
<perch:if id="state" value="NT">NT</perch:if>
<perch:if id="state" value="QLD">QLD</perch:if>
<perch:if id="state" value="SA">SA</perch:if>
<perch:if id="state" value="TAS">TAS</perch:if>
<perch:if id="state" value="VIC">VIC</perch:if>
<perch:if id="state" value="WA">WA</perch:if>
</td>
<td>
<perch:content id="date" type="date" label="Date" format="%A, %e %B %Y" />
</td>
</perch:repeater>

Just a guess, but might it be because id="date" as well as type="date" ?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

and your Diagnostics Report?


Diagnostics report Health check Perch is up to date PHP 5.4.39 version is okay, but a little out of date. Consider updating soon. MySQL 5.5.42-cll is up to date Image processing available Summary information Perch: 2.8.5, PHP: 5.4.39, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.5), assets (2.8.5), categories (2.8.5), perch_forms (1.8.3), perch_backup (1.2) App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); ?> PERCH_LOGINPATH: /perch PERCH_PATH: /home/sitemaster/public_html/perch PERCH_CORE: /home/sitemaster/public_html/perch/core PERCH_RESFILEPATH: /home/sitemaster/public_html/perch/resources Image manipulation: GD PHP limits: Max upload 32M, Max POST 64M, Memory: 128M, Total max file upload: 32M Resource folder writeable: Yes DOCUMENT_ROOT: /home/sitemaster/public_html HTTP_HOST: ramsdentraining.edu.au REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Drew McLellan

Drew McLellan 2638 points
Perch Support

PHP does have a limit on the number of fields in a form. Are you editing the region with all items on one page? If so, try switching to editing items individually.

Hi Drew,

Unfortunately it seems I don't have that option since I am using repeaters rather than multiple items.

Thanks for the heads up.

Drew McLellan

Drew McLellan 2638 points
Perch Support

It sounds like you could be pushing what repeaters are designed for. Check out the max_input_vars configuration option in PHP - you could be hitting that limit.