cancel
Showing results for 
Search instead for 
Did you mean: 

Contact form in CMS page not working

Re: Contact form in CMS page not working


@Theis Corfixen wrote:

Hi @TWSdesign

 

The easiest way for you to debug this without any tools for it would be to add a little piece of code the line:

 

Mage::getSingleton('customer/session')->addError(Mage::helper('contacts')->__('Unable to submit your request. Please, try again later'));

 

The code should be as follows:

 

echo '<pre>';
echo $e;
echo '</pre>';
exit;

This will print the exact location where the exception happens. Let me know what you find :-)

 

 

 


Hey there, hope to revive this thread. I have tried the above by changing the "Unable to submit your request. Please, try again later" to something else and yes it does display the error. So I would say the problem is with

 

Mage::getSingleton('customer/session')->addError(Mage::helper('contacts')

 

As such I am unable to submit a form, any help? Thanks!