We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Getting Undefined property: EE::$TMPL with the contact form

How Do I?

pantasarus's avatar
pantasarus
28 posts
8 years ago
pantasarus's avatar pantasarus

Hi All, I’m currently updating a site from 2.10 to 2.11.2 but I’m stuck on a problem that I have with the contact form. When I use it to send a message on my local machine, the message is sent and the site shows:

Thank You!

Your email message has been sent.

Click here if you are not redirected automatically

However, if I install Custom System Messages, I get this instead…

A PHP Error was encountered

Severity: Notice

Message: Undefined property: EE::$TMPL

Filename: stash/mod.stash.php

Line Number: 191

This is my template partial for the contact form

<article>

 <main>
  {exp:email:contact_form charset="utf-8" form_class="contact" recipients="[email protected]" redirect="5" user_recipients="no" return="{path='site_index'}"}
   <fieldset>
    <input type="text" name="name" id="name" placeholder="Your Name" />
    <input type="email" name="from" id="from" placeholder="Your Email" />
    <input type="hidden" id="subject" name="subject" value="Mea Fabula contact form" />
   </fieldset>

   <fieldset>
    <textarea name="message" id="message" placeholder="Message" rows="7"></textarea>
   </fieldset>

   <div class="row">
    <div class="form_button">
     <button name="submit" type="submit" class="form_submit">Send</button>
    </div>
   </div>
  {/exp:email:contact_form}
 </main>
</article>

I setup a page without any stash tags but with Custom System Messages and I still got the same error (not sure how as I didn’t think I was using stash!).

If I have a fresh install with Custom System Messages it all works fine though.

I’ve included a screen grab of the stack trace. Any help would be gratefully received!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.