Magento 1.8 – Form Submit Message Appearing Twice

contact-usmagento-1.8

I have included contact us form in cms page using below code

{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}

But after doing this, message after submitting the form is coming twice.

http://i.stack.imgur.com/PScwj.png

How this can be rectified? Any help will be appreciated.

Best Answer

<div id="messages_product_view"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>

This is inside the app/design/frontend/base/default/template/contacts/form.phtml So the messages are just echo'ed twice. Either remove the standard message block from the layout or remove the above from the template. I think editing the template is easier.