Jump to content

Contact form not working on mobile phones


Recommended Posts

Hello

 

We are using prestashop 1.6.0.9, and a customer contacted us, saying that she wasn't able to use our contact form.

When trying on a desktop computer, the message was sent just fine, but when using our smartphones, iPhone 4s and S6 edge, we got an error.

 

When digging a little into the problem, I discovered that the "user_agent" field in the customer_message table was to short.

 

The length of this field is only 128, but when checking the user agent of my S6 chrome browser it is reported as this:

 

Mozilla/5.0 (Linux; Android 5.0.2; SAMSUNG SM-G925F Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/3.0 Chrome/38.0.2125.102 Mobile Safari/537.36

 

It has a length of 167, so I've changed the length to 256 and now i works on both the S6 and the iPhone 4s.

 

Tomas

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...