I'm trying to edit an expired entry from the front end.

However, when I hit save, none of the changes persist and a redirect doesn't take place.

Entries that have a live status are fine. Even when I modify the postDate and expiryDate manually, it doesn't update.

I was using the auto-expire plugin and it works fine for new entries. Even disabling it temporarily, the editing of expired entries fails.

Have even stripped out all required fields

<form id="jobForm" method="post" accept-charset="UTF-8">
        {{ getCsrfInput() }}
        <input type="hidden" name="action" value="entries/saveEntry">
        <input type="hidden" name="redirect" value="{slug}/{id}">
        <input type="hidden" name="entryId" value="{{ entry.id }}">
        <input type="hidden" name="sectionId" value="3">
        <input type="hidden" name="enabled" value="1">
        <p> <label for="Date">Date</label>
                <input type="date" id="postDate" name="postDate" value="{{ entry.postDate }}">
        <p><label for="Expiry">Expiry</label>
            <input type="date" id="expiryDate" name="expiryDate" value="{{ entry.expiryDate }}">
        <label for="title">Title</label>
        <input id="title" type="text" name="title"
                {%- if entry is defined %} value="{{ entry.title }}"{% endif -%}>

        {% if entry is defined %}
            {{ errorList(entry.getErrors('title')) }}
        {% endif %}

        <input type="submit" value="Publish">

Has something changed in Craft because it did work on older versions?

  • If you dump entry.getErrors() after trying to submit, does it return anything?
    – Brad Bell
    Commented Nov 13, 2017 at 17:46
  • No, tried that with no joy either. Commented Nov 14, 2017 at 16:56


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.