LeoFish Posted July 26, 2015 Share Posted July 26, 2015 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 1 Link to comment Share on other sites More sharing options...
tintinz Posted October 20, 2015 Share Posted October 20, 2015 Hey, I think i have the same problem. can you explain in more detail how you fix the problem? was ther a quarry in database or somthing in a file? BR Patrik Link to comment Share on other sites More sharing options...
LeoFish Posted October 20, 2015 Author Share Posted October 20, 2015 Hello Tintinz Yes the change is in the database. You have to alter the 'user_agent' field in the 'customer_message' table. The default length is 128 just change this number to 256. Regards Tomas 1 Link to comment Share on other sites More sharing options...
tintinz Posted October 20, 2015 Share Posted October 20, 2015 Thank you! Now it's working ! I did search for the Customer_massage and got 0 resolts. I have a surfix that trouble that for me. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now