suehami Posted December 20, 2017 Share Posted December 20, 2017 Hi Thank you for taking the time to read my question. I recently moved my store to a new server and have found 2 issues that I think may be related. Firstly if I enter the URL www.layella.com I get the maintenance page (I have checked all the possible solutions for this after asking previously) However if I enter www.layella.com/index.php or www.layella.com/en I get the shop as I expect. So it's not redirecting properly. The second issue is that when I try to add to cart I get this error: Impossible to add the product to the cart. textStatus: 'parsererror' errorThrown: 'SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data' responseText: With the response text being the under maintenance page. I'm stuck as to where to check next. Any ideas and help would be gratefully received. Thanks Sue Link to comment Share on other sites More sharing options...
suehami Posted December 21, 2017 Author Share Posted December 21, 2017 In case anyone comes across this and needs an answer. The issue is with my server picking up the index.html file as the main default home page. I renamed the file and the site is working fine now, both issues were solved. Of course I'm going to have to find a more permanent fix as this means changing the file name back again any time I want to put the store into maintenance mode. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted December 22, 2017 Share Posted December 22, 2017 @suehami There is no file named 'index.html' in the root directory of PrestaShop, the file that you have renamed must be a custom file and it should be renamed permanently or moved to another location. This is the only permanent fix for the issue that you have mentioned. Link to comment Share on other sites More sharing options...
suehami Posted December 22, 2017 Author Share Posted December 22, 2017 okay, thanks. It is a custom file but I'd forgotten that, it's a long time since it was done and it worked fine on the old server. 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