Same problem here. Magento 1.4.0.1 using blank theme.
Have google and found two way to fix this problem, but both fail for me.
1. Make sure you have <input type="text" name="hideit" id="hideit" value="” style="display:none !important;” /> in your form.phtml
*** A fresh 1.4.0.1 install will alway have this already
2. comment out
if (Zend_Validate::is(trim($post[’hideit’]), ‘NotEmpty’)) {
$error = true;
}
inside app/code/core/Mage/contacts/controllers/indexController.php
*** Have done this , but same problem.
Be sure that you edit right form.phtml!
And yes, the first solution works.
Put <input type="text" name="hideit" id="hideit" value="” style="display:none !important;” /> inside your form tags. Is simples and it works, I have to made this to all of my Magento´s.
I changed that code in 1.3.4 and working fine, I did not check recently but today I noticed its not working at all! not sure how many inquiries I have lost!
Yes,i done it, and after test send email it show \\\"Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.\\\”
but i can\\\’t get this inqure email, what is the problem????????????????????
Not to be a buzzkill, but like the original poster I haven’t had success with these fixes. My contact templates already have the line in them, and I still get the same error.
Is anybody else in the same boat? Having my contact-us page disabled is killing me.
Same here ! Using Mag 1.4.1 with the Classic theme by Templates Master and the ASchroder SMTP Pro Email. It was working fine until I installed SMTP Pro Email.
So, I’ve tried what all of you guys said. The only form.phtml I have is in the app/design/frontend/base/default/template/contacts folder, and it already contains this line.
So I really don’t know what to do.... I can still remove SMTP Pro Email but I need it for my transactions emails not to arrive in the spam section of my customers’ inbox
Too bad :/
EDIT : I’ve tried desinstalling SMTP Pro Email and now it works (disabling it is not enough) - so in my case, it really is a problem with SMTP Pro Email - or my theme, or both
- First try to correct the \’hideit\’ code in the form.phtml and IndexController.php files (see previous posts).
- Adjust the backoffice settings to use the right template and settings (see previous posts).
- Try to upload all the default email templates as mentioned in previous posts.
Still not working? Don\’t worry, it is probably your Template.php file in code/core/magento/core/model/email/template.php
Update this file (or the one in your local-dir) and everything probably works fine!