Jump to content

Contact form not working


Recommended Posts

When I submit my contact form I get an Firefox error "server not found". Clearly this line of code is causing the error:-

 

<form action="{$request_uri|escape:'htmlall':'UTF-8'}" method="post" class="std bordercolor" enctype="multipart/form-data" id="contact_form">

 

I know this because the url of the Contact page is

 

http://www.modern-living.co//en/contact-us

 

And the one shown in the address bar after submission is:

 

http://en/contact-us

 

I can only presume it's something in the <for action= statement. Can anybody see an error in the code.

 

Thanks in advance.

Link to comment
Share on other sites

When I submit my contact form I get an Firefox error "server not found. Clearly this line of code is causing the error"

 

Not necessarily. There is a problem with the way your URLs are built in general. Notice the second, spurious slash in every URL:

 

...living.co//...

 

This may be due to the theme you are using or URLs setup under Preferences > SEO & URLs tab.

 

Looks like you are not using multiple languages. First turn off caching and turn on force compile (Preferences > Performance tab). Disable all installed languages that are not in use (Tools > Languages tab). Regenerate .htaccess file (Tools > Generators tab). You can then revert cache and compile settings. Post again if this does not solve it.

 

Hope that helps!

 

Marty Shue

  • Like 1
Link to comment
Share on other sites

Thanks once again Marty. The problem was with the double back slash in the url. I removed it from the main shop url in Preferences > SEO & URLs tab.

 

Glad to hear you got it sorted.

 

Next time I'm in Carolina, I'll buy you 2 beers.

 

Don't drink beer........could we make it a couple of old fashioned Carolina Sundrops :D

 

Marty Shue

Link to comment
Share on other sites

×
×
  • Create New...