Atocx Posted February 3, 2015 Share Posted February 3, 2015 We got following problem. When we try to upload articles via CSV upload it stops after a few seconds and we get following error message: HTTP 502 Error or depending on browser and PC "This site is temporarily down for maintenance. Please try again later." We contacted our host and asked if there are any server maintenance but he denied it. He told us it is a problem with the used script. We should contact the admins/community. We use Prestashop version 1.6.0.11 and reinstalled it 2 weeks ago since then the error shows up. Before that reinstallation there were no such error. We could use some help with this. Link to comment Share on other sites More sharing options...
Radu Posted February 3, 2015 Share Posted February 3, 2015 502 may appear also because a timeout the fcgi script (in your case php) takes too long to execute. So indeed the host can increase the limit if they want or try uploading a smaller csv file Link to comment Share on other sites More sharing options...
Atocx Posted February 3, 2015 Author Share Posted February 3, 2015 Our CSV file just has ~350 articles which is a filesize of 457KB and we tried using a smaller file with only ~60 articles which is ~90KB. Additionally we already tried increasing the limit with no effect. Link to comment Share on other sites More sharing options...
Radu Posted February 3, 2015 Share Posted February 3, 2015 hmm, the file is indeed small, you may also research if the hosting has mod security activated. Link to comment Share on other sites More sharing options...
Atocx Posted February 3, 2015 Author Share Posted February 3, 2015 We dont have any mod security activated. Our host informed us that we use PHP 5.4 and we formerly used PHP 5.3 and it could be a problem with the PHP version. Link to comment Share on other sites More sharing options...
Atocx Posted February 3, 2015 Author Share Posted February 3, 2015 (edited) We found out that it has to do something with our pictures. In the CSV file we added the link to our articles to the picture on our server. If we delete those links from the CSV file and upload it without pictures it works totally fine. With the picture links included it does not work. Edited February 3, 2015 by Atocx (see edit history) Link to comment Share on other sites More sharing options...
Radu Posted February 3, 2015 Share Posted February 3, 2015 A you said previously regarding the log file it seems that has something to do with your web application firewall. How the image links look like? Link to comment Share on other sites More sharing options...
Atocx Posted February 3, 2015 Author Share Posted February 3, 2015 www.myshop.eu/img/artikelbilder/8147.png artikelbilder = articlepictures (German equivalent) Link to comment Share on other sites More sharing options...
Radu Posted February 3, 2015 Share Posted February 3, 2015 a little strange, however the error indicated clearly it's a WAF issue. I guess you tried with other links as well and still the same issue... Link to comment Share on other sites More sharing options...
Atocx Posted February 3, 2015 Author Share Posted February 3, 2015 (edited) Indeed we tried with other links. We uploaded the pictures on a second server on our .com adress. Same problem. How can we solve this WAF issue? Do we have to contact our host? EDIT: Actually it seems the error was our own fault. We had links in the CSV file for articles that had no picture uploaded and we put a wrong/dead link for it. It seems that this was responsible for this error. It only surprises that the missing images are not skipped while uploading. Edited February 3, 2015 by Atocx (see edit history) 1 Link to comment Share on other sites More sharing options...
Atocx Posted February 4, 2015 Author Share Posted February 4, 2015 (edited) Okay we tried it with only active links and left the missing articles/pictures empty. We still get the error. Surprisingly if we take a particular image and set the link for every article it works. So it must have to do with one (or more) link(s) not working correctly, am I right? We already tested every link and put it in the browser and all are working but still we are getting an error while uploading the CSV. Does it have to do with the max upload filesize? EDIT: We realized we had some pictures with more than 2 MB filesize. After compressing to <1MB it worked. Tho our CSV upload did not end after all articles were uploaded and it just went to a blank white page after several minutes. Edited February 4, 2015 by Atocx (see edit history) 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