javilol Posted November 20, 2013 Share Posted November 20, 2013 (edited) Hello. I just updated from 1.5.6.0 to 1.5.6.1 and activated all CCC options. Now when I try to upload an image I get an undefined error, and the javascript console reports this: Failed to load resource: the server responded with a status of 404 (Not Found) http://<mysite.com>/img/p/es-default-small_default.jpg Failed to load resource: the server responded with a status of 404 (Not Found) http://<mysite.com>/<admindir>/ajax-tab.php?id_product=410&id_categor…x=1&legend%5B3%5D=MicroSD+16GB+Clase+6+Samsung&qqfile=microsd16gbc6sam.jpg I've been looking online for a solution but I find none. I disabled the CCC options but I still get the error. I have tried regenerating thumbnails, but I get another error: Cannot write "No picture" image to (%s) images folder. Please check the folder's writing permissions. So it must be something related to permissions I guess. Any answers will be much appreciated. Thanks! Edited November 20, 2013 by javilol (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 20, 2013 Share Posted November 20, 2013 hello you've got this message: Failed to load resource: the server responded with a status of 404 (Not Found) but for what file it is related? try to change chmod to /img/ directory to 777, recursively (for each subdirectory & file) Link to comment Share on other sites More sharing options...
javilol Posted November 20, 2013 Author Share Posted November 20, 2013 Just posted complete info, the bb was messing with the links. Thanks for the fast reply, trying that right now. Link to comment Share on other sites More sharing options...
javilol Posted November 20, 2013 Author Share Posted November 20, 2013 hello you've got this message: but for what file it is related? try to change chmod to /img/ directory to 777, recursively (for each subdirectory & file) That didnt fix it Link to comment Share on other sites More sharing options...
vekia Posted November 20, 2013 Share Posted November 20, 2013 That didnt fix it check this topic: http://www.prestashop.com/forums/topic/290297-uploading-products-images-issues/?view=findpost&p=1463305 maybe it's related to your issue! Link to comment Share on other sites More sharing options...
joao fernando Posted November 21, 2013 Share Posted November 21, 2013 bom dia ontem fiz a actualização do prestashop 1.5.6.0 para o 1.5.6.1 e a partir desse momento deixei de poder carregar as imagens do produtos, se alguem souber como resolver esse problema agradecia . Estou muito atrapalhado pois é atraves da loja virtual que eu trabalho abraço Link to comment Share on other sites More sharing options...
javilol Posted November 21, 2013 Author Share Posted November 21, 2013 check this topic: http://www.prestashop.com/forums/topic/290297-uploading-products-images-issues/?view=findpost&p=1463305 maybe it's related to your issue! That was not related. In the end I gave up and rolled back to 1.5.6.0. It was a production server, so I couldn't afford to have it offline. Thanks anyway. Link to comment Share on other sites More sharing options...
joao fernando Posted November 21, 2013 Share Posted November 21, 2013 mas o meu problema é que eu não posso reverter a actualização porque tenho estado a carregar produtos ha dois dias se alguem me puder ajudar agradecia Link to comment Share on other sites More sharing options...
letiferus Posted November 22, 2013 Share Posted November 22, 2013 I'm having a similar problem. The error in my console says thus: 403 ForbiddenForbiddenYou don't have permission to access /shop/admin/ajax-tab.phpon this server.Additionally, a 404 Not Founderror was encountered while trying to use an ErrorDocument to handle the request. I looked on the server and the permission for the listed php file was 644 so I tried changing it to 755. Still didn't work. Any other suggestions? I also just updated 1.5.6.0 to 1.5.6.1. Link to comment Share on other sites More sharing options...
Scott J Posted November 26, 2013 Share Posted November 26, 2013 This fix worked for me : https://github.com/PrestaShop/PrestaShop/commit/2a1c991612c7b7d48f819b55f31218c93c5509fd 1 Link to comment Share on other sites More sharing options...
benjamin utterback Posted November 27, 2013 Share Posted November 27, 2013 I'm having a similar problem. The error in my console says thus: 403 Forbidden Forbidden You don't have permission to access /shop/admin/ajax-tab.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I looked on the server and the permission for the listed php file was 644 so I tried changing it to 755. Still didn't work. Any other suggestions? I also just updated 1.5.6.0 to 1.5.6.1. Hi, did the Github fix work for you? Link to comment Share on other sites More sharing options...
letiferus Posted November 28, 2013 Share Posted November 28, 2013 Hi, did the Github fix work for you? I didn't try it. I just rolled my install back to 1.5.6.0 since an image upload was such basic functionality that a "stable" update shouldn't have broken it. Link to comment Share on other sites More sharing options...
tarantoo Posted November 28, 2013 Share Posted November 28, 2013 (edited) Hello there, I have the same problem. Can't get it work, using prestashop 1.5.6. Also tried github fix and didn't help. Asked hosting service to turn off mod_security didn't help... going crazy with this! Tried IE, Firefox, Chrome...Any body got fix for this? [Wed Nov 27 22:10:44 2013] [error] [client 93.142.199.173] ModSecurity: Access denied with code 406 (phase 1). Match of "rx ^%{tx.allowed_request_content_type}$" against "TX:0" required. [file "/usr/local/apache/conf/crs/activated_rules/modsecurity_crs_30_http_policy.conf"] [line "64"] [id "960010"] [msg "Request content type is not allowed by policy"] [data "application/octet-stream"] [severity "WARNING"] [tag "POLICY/ENCODING_NOT_ALLOWED"] [tag "WASCTC/WASC-20"] [tag "OWASP_TOP_10/A1"] [tag "OWASP_AppSensor/EE2"] [tag "PCI/12.1"] [hostname "xxxx.com"] [uri "/admin123/ajax-tab.php"] [unique_id "UpZf1E4uY2oACy3WbkwAAABd"] Edited November 28, 2013 by tarantoo (see edit history) Link to comment Share on other sites More sharing options...
benjamin utterback Posted November 29, 2013 Share Posted November 29, 2013 Hello there, I have the same problem. Can't get it work, using prestashop 1.5.6. Also tried github fix and didn't help. Asked hosting service to turn off mod_security didn't help... going crazy with this! Tried IE, Firefox, Chrome...Any body got fix for this? [Wed Nov 27 22:10:44 2013] [error] [client 93.142.199.173] ModSecurity: Access denied with code 406 (phase 1). Match of "rx ^%{tx.allowed_request_content_type}$" against "TX:0" required. [file "/usr/local/apache/conf/crs/activated_rules/modsecurity_crs_30_http_policy.conf"] [line "64"] [id "960010"] [msg "Request content type is not allowed by policy"] [data "application/octet-stream"] [severity "WARNING"] [tag "POLICY/ENCODING_NOT_ALLOWED"] [tag "WASCTC/WASC-20"] [tag "OWASP_TOP_10/A1"] [tag "OWASP_AppSensor/EE2"] [tag "PCI/12.1"] [hostname "xxxx.com"] [uri "/admin123/ajax-tab.php"] [unique_id "UpZf1E4uY2oACy3WbkwAAABd"] I think you should double check with your hosting provider because this 406 error is only concerning your Server security and permissions. Which hosting are you using? mod_security can be tricky to turn off some rules. Link to comment Share on other sites More sharing options...
joao fernando Posted November 30, 2013 Share Posted November 30, 2013 bom dia pedi ao fornecedor de conta de alojamento para Desativar o Mod_Security na conta de alojamento para verificar se seria alguma regra do respetivo mod_security. Era mesmo essa a questão e ficou assim solucionado. <não vale a pena fazer o reverter para a versão antiga que mesmo assim não se consegue enviar fotos Espero que assim resolvam abraço joao fernando 1 Link to comment Share on other sites More sharing options...
tarantoo Posted November 30, 2013 Share Posted November 30, 2013 I think you should double check with your hosting provider because this 406 error is only concerning your Server security and permissions. Which hosting are you using? mod_security can be tricky to turn off some rules. This error was given to me by my hosting team before they turned of mod_security, I have croatian hosting, service is fast and excelent, I get respond always under 1 hour. They know what they are doing because I have more that 10 clients on that site, and there was no problem or if there was any it was solved the same day by hosting team. For now image upload is only working with fresh installed IE. Problem was tested od 3 different PCs, in 3 countries using Chrome, Firefox, Opera and IE, win Xp, win 7, win 8. Something is wrong with prestashop, and more I search google for this problem, more I realise nobody really knows whats the problem. 1 Link to comment Share on other sites More sharing options...
cgsoratto Posted September 3, 2014 Share Posted September 3, 2014 This fix worked for me : https://github.com/PrestaShop/PrestaShop/commit/2a1c991612c7b7d48f819b55f31218c93c5509fd THANK YOU!! Link to comment Share on other sites More sharing options...
Recommended Posts