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!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.