target46k2 Posted September 14, 2017 Share Posted September 14, 2017 (edited) Hi all, please kindly help me a problem when i create a new product by using copy function, Click to edit that product (which just generate) but product can not load, button Save alway loading and gray color I inspect by Chrome tool it show many error: Failed to load resource: htt p ://mydomain.vn/admin948wh3ha2/index.php?controller=AdminProducts&token=95f1d9c0aff1beb2b509d8b9062d9d3b&id_product=90&action=Shipping&updateproduct&ajax=1&rand=1505368603203&_=1505368600204 the server responded with a status of 500 (Internal Server Error) products.js:177 Uncaught TypeError: Cannot read property 'replace' of undefined Code Line 177 as below: if (request.responseText !== 'undefined' && request.responseText && request.responseText.length) { current_tab = $(request.responseText).filter('.product-tab').attr('id').replace('product-', ''); } I can not repoduce the error on my local. This error appear on server with information: Prestashop: 1.6.1.5 Server infomation Linux #1 SMP Wed Feb 10 08:57:30 EST 2016 x86_64 Server: Apache PHP Version 5.5.38 memory_limit 128M max_execution_time 30 Edited September 14, 2017 by target46k2 (see edit history) Link to comment Share on other sites More sharing options...
target46k2 Posted September 14, 2017 Author Share Posted September 14, 2017 (edited) I 've just try as turorial http://prestamania.com/prestashop-back-office-bug-not-saving-everytime/ It's seem to ok sometime Sometime it still not work, i think root cause is some product not loaded as in inspect (tool of chrome) jquery-1.11.0.min.js:4 GET htt p s : //mydomainvn/admin948wh3ha2/index.php?controller=AdminProducts&token=95f1d9c0aff1beb2b509d8b9062d9d3b&id_product=96&action=Features&updateproduct&ajax=1&rand=1505403977658&_=1505403963636 404 () Please anyone help me with Edited September 14, 2017 by target46k2 (see edit history) Link to comment Share on other sites More sharing options...
target46k2 Posted September 19, 2017 Author Share Posted September 19, 2017 (edited) Go go go! I've just find out the rootcause and the solution Root cause: When edit a product, have many tab call to ajax to load data, so if hosting is weak so the bugs 500 or 400 appear Solution: increase timeout from 0 to xxx mini second, in my case i change from time from 0 to 100 File: preshtashop\js\admin\product.js /*In order to prevent mod_evasive DOSPageInterval (Default 1s)*/ var time = 100; if (mod_evasive) { time = 1000; } Be happy! Edited September 21, 2017 by target46k2 (see edit history) 2 Link to comment Share on other sites More sharing options...
rubensaid Posted April 18, 2018 Share Posted April 18, 2018 This is a valuable contribution. Thank you so much @target46k2 Link to comment Share on other sites More sharing options...
Harry Posted December 15, 2019 Share Posted December 15, 2019 Excelent. This is the solution for 1.6.1.20 too Link to comment Share on other sites More sharing options...
selectshop.at Posted December 15, 2019 Share Posted December 15, 2019 @Harry- The best to avoid such old bugs is to install latest version of Prestashop 1.6.x series, or update your shop to the latest 1.6. on where this bug and others more where already debugged. 😉 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