s-piotrek Posted February 2, 2016 Share Posted February 2, 2016 Hello, I am using prestashop 1.6 and from a few days I cannot edit any product. Photos, prices, information etc. After clicked to any mentioned function it cannot be loaded. I would like to note that I have not done any update recently. Have anyone had similar problem? Thanks in advance. Best regards s-piotrek Link to comment Share on other sites More sharing options...
tuk66 Posted February 4, 2016 Share Posted February 4, 2016 Strange. Is it a local installation? Link to comment Share on other sites More sharing options...
s-piotrek Posted February 5, 2016 Author Share Posted February 5, 2016 No it is not a local installation. I have commented following linies in /js/admin/products.js /*In order to prevent mod_evasive DOSPageInterval (Default 1s) if (mod_evasive) sleep(1000); */ and now some product features like "information", "pictures" and a few others are displayed but website seems to be still loading. I can see all the time loading "ring" in the top left corner. Prices feature is still not displayed at all. I have found in chrome console mode following errors during loading features: Uncaught ReferenceError: priceDisplayPrecision is not definedUncaught ReferenceError: search_product_msg is not defined Do you know what that means and how to solve it? Best regards s-piotrek Link to comment Share on other sites More sharing options...
J.Sahu Posted October 27, 2016 Share Posted October 27, 2016 In one prestashop website the page is getting loaded without making nay changes. Is there anything related to it? 1 Link to comment Share on other sites More sharing options...
Denver Prophit Jr. Posted October 27, 2016 Share Posted October 27, 2016 (edited) This pull / patch should fix your save and stay issue while editing products. https://github.com/PrestaShop/PrestaShop/blob/1.6.1.x/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl#L252-L254 Just remove: submitHandler: function(form) { form.submit(); }, Edited October 27, 2016 by Denver Prophit Jr. (see edit history) 2 Link to comment Share on other sites More sharing options...
p_r_i_m_e Posted October 27, 2016 Share Posted October 27, 2016 I had a similar problem, and fixed it with the above patch, how has this just cropped up as it was working and just suddenly failed, again as above no recent changes/updates, I'm keen to ensure it doesn't happen again Link to comment Share on other sites More sharing options...
roband Posted October 27, 2016 Share Posted October 27, 2016 The bug has been in PrestaShop for many years, but wasn't exposed until very recent releases of browsers that had newer/faster/different implementations of Javascript. The browser upgrade that caused this problem for most people was the upgrade from Chrome 53 to 54. Link to comment Share on other sites More sharing options...
J.Sahu Posted October 28, 2016 Share Posted October 28, 2016 (edited) This pull / patch should fix your save and stay issue while editing products. https://github.com/PrestaShop/PrestaShop/blob/1.6.1.x/admin-dev/themes/default/template/controllers/products/helpers/form/form.tpl#L252-L254 Just remove: submitHandler: function(form) { form.submit(); }, Thank You @Denver Prophit Jr. for the solution. It worked perfectly. But why the issue was not occurring before with the code existing and suddenly it appeared? I appreciate your help. Edited October 28, 2016 by J.Sahu (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted October 28, 2016 Share Posted October 28, 2016 It's because synchronous AJAX requests have been deprecated and removed from the latest version of Google Chrome and PrestaShop was relying on them. 1 Link to comment Share on other sites More sharing options...
MarlboroMan Posted October 28, 2016 Share Posted October 28, 2016 If I remove the below lines I get kicked back to login page when trying to go into products. submitHandler: function(form) { form.submit(); }, "New Prestashop install, latest version" Link to comment Share on other sites More sharing options...
MarlboroMan Posted October 28, 2016 Share Posted October 28, 2016 Hi Managed to get it working. Thanks Everyone. Just needed to do a clear all in google account. 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