0

I've just upgraded to the latest version of Craft on a site that uses the Guest Entries plugin. While it was fine before hand, I'm now running into the titled issue.

Has anyone run into this before?

Here's the entry form

<form class="hard" method="post" action="" accept-charset="UTF-8">
      {{ getCsrfInput() }}
      <input type="hidden" name="action" value="guestEntries/saveEntry">
      <input type="hidden" name="redirect" value="{{ craft.request.url }}?registrationSuccess">
      <input type="hidden" name="sectionId" value="16">
      <input type="hidden" name="postDate" value="{{ now|date("Y-m-j H:i:s") }}">
      <input type="hidden" name="fields[event][]" value="{{ relatedEvent.first.id }}">
      <input type="hidden" name="title" value="Registration for {{ relatedEvent.first.title }} | Event ID {{ relatedEvent.first.id }} on {{ now|date("Y-m-j H:i:s") }}">
      <p><label for="firstName">Parent first name <span class="required">*</span></label>
        <input id="firstName" required placeholder="John" type="text" name="fields[firstName]">
      </p>
      <p><label for="lastName">Parent last name <span class="required">*</span></label>
        <input id="lastName" required placeholder="Doe" type="text" name="fields[lastName]">
      </p>
      <p><label for="email">Your email <span class="required">*</span></label>
        <input id="email" required placeholder="me@harvestglasgow.org" type="email" name="fields[email]">
      </p>
      <p><label for="streetAddress">Street address <span class="required">*</span></label>
        <input id="streetAddress" required placeholder="29 Acacia Road" type="text" name="fields[streetAddress]">
      </p>
      <p><label for="town">Town <span class="required">*</span></label>
        <input id="town" required placeholder="Glasgow" type="text" name="fields[town]">
      </p>
      <p><label for="postcode">Postcode <span class="required">*</span></label>
        <input id="postcode" required placeholder="G72 1JP" type="text" name="fields[postcode]">
      </p>
      <p><label for="phone">Your phone <span class="required">*</span></label>
        <input id="phone" placeholder="07766123456" type="tel" name="fields[phone]" required>
      </p>
      <p><label for="emergencyContactName">First emergency contact name <span class="required">*</span></label>
        <input id="emergencyContactName" placeholder="" type="text" name="fields[emergencyContactName]" required>
      </p>
      <p><label for="emergencyContactNumber">First emergency contact phone <span class="required">*</span></label>
        <input id="emergencyContactNumber" placeholder="07766505050" type="tel" name="fields[emergencyContactNumber]" required>
      </p>
      <p><label for="emergencyContactName2">Second emergency contact name <span class="required">*</span></label>
        <input id="emergencyContactName2" placeholder="" type="text" name="fields[emergencyContactName2]" required>
      </p>
      <p><label for="emergencyContactNumber2">Second emergency contact phone <span class="required">*</span></label>
        <input id="emergencyContactNumber2" placeholder="07766505050" type="tel" name="fields[emergencyContactNumber2]" required>
      </p>
      <p><label for="eventKids">How many kids are you registering? <span class="required">*</span></label>
        <input type="number" placeholder="1" id="eventKids" name="fields[eventKids]" required></p>
      <p><label for="friends">Other friends attending</label>
        <textarea name="fields[friends]" placeholder="if your kid has any friends attending holiday club, let us know and we'll try group them together" id="friends" cols="30" rows="10"></textarea>
      </p>
      <p><label for="specialRequirements">Any special requirements?</label>
        <textarea name="fields[specialRequirements]" placeholder="if there's any dietary requirements or other needs that we should know about, please let us know" id="specialRequirements" cols="30" rows="10"></textarea>
      </p>
      <p><label>Add your kid's information</label>
      </p>
      <table class="table table-bordered table-hover" id="tab_logic">
        <thead>
          <tr>
            <th>Name</th>
            <th>Age</th>
            <th>DoB</th>
            <th>School Year @ May 2017</th>
          </tr>
        </thead>
        <tbody>
        <tr id='addr0'>
          <td width="30%">
            <input type="text" name="fields[kidsInformation][0][col1]" placeholder="Name">
          </td>
          <td width="13%">
            <input type="number" min="4" max="12" name="fields[kidsInformation][0][col2]" placeholder="7">
          </td>
          <td width="20%">
            <input type="date" name="fields[kidsInformation][0][col3]" placeholder="22/03/2008">
          </td>
          <td width="25%">
            <input type="text" name="fields[kidsInformation][0][col4]" placeholder="P4">
          </td>
        </tr>
        <tr id='addr1'></tr>
        </tbody>
      </table>

      <a id="add_row" class="btn btn-default pull-left  btn--small">Add Kid</a><a id='delete_row' class="pull-right btn btn-default btn--small">Remove Kid</a>

      <p>
        <label for="photographPermission">I give permission for my kid to be photographed and understand that photos may be used for future Harvest Glasgow event promotions. We will also make photographs available for parents to download from our website</label>

        <input type="radio" name="fields[photoPermission]" value="Yes" checked> Yes, I'm happy with that<br>
        <input type="radio" name="fields[photoPermission]" value="No"> No, I don't want any pictures of my kid taken
      </p>

      <button id="submit" type="submit" class="ready submit">Register</button>
    </form>
  • What version of Guest Entries are you on? The (current) latest for Craft 2 is 1.5.2 (github.com/craftcms/guest-entries/releases/tag/1.5.2) – Brad Bell Aug 2 '17 at 3:18
  • Sorry, should have said I upgraded Guest Entries first before Craft so the site is using 1.5.2 – Steven Grant Aug 2 '17 at 6:36
  • Hrm... I'd probably start to narrow down the form field to try and figure out which one(s) are causing the error. My guess is there is some data not getting passed in properly. – Brad Bell Aug 3 '17 at 19:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.