500 error on form submittal

Hi,

I am getting a 500 error when a form is submitted? The logs are telling me teh following…

production.ERROR: Api cache config for [Statamic\API\Cachers\DefaultCacher] is not properly defined.
#0 /home/thebuckinnco/227-Buck-Inn-Re-development/vendor/statamic/cms/src/Support/Manager.php(28): Statamic\\API\\ApiCacheManager->resolve('Statamic\\\\API\\\\Ca...')
#1 /home/thebuckinnco/227-Buck-Inn-Re-development/vendor/statamic/cms/src/Support/Manager.php(23): Statamic\\Support\\Manager->get('Statamic\\\\API\\\\Ca...')
#2 /home/thebuckinnco/227-Buck-Inn-Re-development/vendor/statamic/cms/src/API/ServiceProvider.php(25): Statamic\\Support\\Manager->driver()
#3 /home/thebuckinnco/227-Buck-Inn-Re-development/vendor/laravel/framework/src/Illuminate/Container/Container.php(805): Statamic\\API\\ServiceProvider->Statamic\\API\\{closure}(Object(Illuminate\\Foundation\\Application), Array)
#4 /home/thebuckinnco/227-Buck-Inn-Re-development/vendor/laravel/framework/src/Illuminate/Container/Container.php(691): Illuminate\\Container\\Container->build(Object(Closure))
#5 /home/thebuckinnco/227-Buck-Inn-Re-development/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(796): Illuminate\\Container\\Container->resolve('Statamic\\\\API\\\\Ca...', Array, true)
#6 /home/thebuckinnco/227-Buck-Inn-Re-development/vendor/laravel/framework/src/Illuminate/Container/Container.php(637): Illuminate\\Foundation\\Application->resolve('Statamic\\\\API\\\\Ca...', Array)
#7 /home/thebuckinnco/227-Buck-Inn-Re-development/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(781): Illuminate\\Container\\Container->make('Statamic\\\\API\\\\Ca...', Array)
#8 /home/thebuckinnco/227-Buck-Inn-Re-development/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(119): Illuminate\\Foundation\\Application->make('Statamic\\\\API\\\\Ca...', Array)
#9 /home/thebuckinnco/227-Buck-Inn-Re-development/vendor/statamic/cms/src/API/Subscriber.php(34): app('Statamic\\\\API\\\\Ca...')
#10 /home/thebuckinnco/227-Buck-Inn-Re-development/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(401): Statamic\\API\\Subscriber->invalidate(Object(Statamic\\Events\\SubmissionSaved))

I don't understand what the above is telling me though?

Here is my form…

{{ form:create in="contact_form" redirect="/thank-you" }}

          {{ if errors }}
          <div class="alert alert-warning">
            <p>Oops, here's what went wrong:</p>
            {{ errors }}
              {{ value }}<br>
            {{ /errors }}
          </div>
          {{ /if }}

        <div class="form flow__sm">
          <div class="horizontal-field">
            <div class="field">
              <label for="name">Your Name<span class="require"> *</span></label>
              <input type="text" id="name" name="name" placeholder="Forename Surname">
            </div>
            <div class="field">
              <label for="email">Your Email<span class="require"> *</span></label>
              <input type="email" id="email" name="email" placeholder="[email protected]">
            </div>
          </div>
          <div class="field">
            <label for="subject">Subject<span class="require"> *</span></label>
            <input type="text" id="subject" name="subject" placeholder="I'd like to book the hall…">
          </div>
          <div class="field">
            <label for="message">Your Message<span class="require"> *</span></label>
            <textarea id="message" name="message" placeholder="Please type your message here"></textarea>
          </div>

          <input type="text" name="easteregg" class="special" />

          <button type="submit" class="primary fw-mobile">Send Enquiry</button>
        </div>
        {{ /form:create }}

I have cache set to exclude the contact page…

    'exclude' => [
        '/contact',
    ],

Would really appreciate some help…

Answered by Duncan McClean!
>>>>>>> Answered <<<<<<<
8 Replies
2 Followers