5ummer5 Posted November 27, 2016 Share Posted November 27, 2016 Hi all, I have been going round and round AND ROUND in circles about this issue for a while now and still cannot solve it. I will be as detailed as I can about the issue. Overview I have a multistore install setup with 2 shops I run prestashop 1.6.1.6 The issue When editing a product (in either store) it doesn't save the information I just entered when clicking "Save and Stay" OR "Save". It just reloads the page without the information I just entered. It only manages to save the information every so often, intermittently, there doesn't seem to be a pattern, it just saves when it wants to. As you can imagine this make maintaining the store with over 2k products almost an impossible task as it take a whole day to update only a few products because of the constant re-entry needed. Other info All caches, on prestashop and on the server are disabled. There is nothing in the prestashop log. There is nothing in the servers error log. I have tried using several browsers on 3 machines in 2 locations to see if it a client side issue, it isnt. I really hope that someone has come across this issue and has been able to resolve it as I am starting to pull my hair out. Thank you in advance to anyone that can help with this issue! 1 Link to comment Share on other sites More sharing options...
selectshop.at Posted November 27, 2016 Share Posted November 27, 2016 You are using chrome browser ? Try another browser. Chrome in latest version is using chromium, which is causing some problems with some scripts. 1 Link to comment Share on other sites More sharing options...
5ummer5 Posted November 27, 2016 Author Share Posted November 27, 2016 (edited) Thanks for the quick reply. I have just tried Safari and it seems to be ok 10 times in a row! I tested with chrome & firefox last week and was having the issues in both so I ruled out that it was a browser issue! Bloody typical it seems to work ok with Safari. Thank you very much for your help! Edited November 27, 2016 by 5ummer5 (see edit history) Link to comment Share on other sites More sharing options...
dusko.dusko Posted December 7, 2016 Share Posted December 7, 2016 (edited) You are using chrome browser ? Try another browser. Chrome in latest version is using chromium, which is causing some problems with some scripts. Thanks I tried with firefox and it is working. As you said I was using Chrome. Do you know if this will be fixed? Edited December 7, 2016 by kprintx (see edit history) Link to comment Share on other sites More sharing options...
calbearfan Posted December 15, 2016 Share Posted December 15, 2016 I had the same issue, some changes were saving (Enabled, product code) and almost everything else not. A few items of note for the devs. - Error occurred in both Chrome and Edge but went away with Firefox Dev Edition - Turning on Debug mode in config\defines.inc.php took away the problem in Chrome but not a long term solution - Cleared cache, force compile themes, didn't help So for now, using Firefox Dev Edition Link to comment Share on other sites More sharing options...
jacograaff Posted January 15, 2017 Share Posted January 15, 2017 Posting my temp unworkable solution here as well: I downloaded a contained version of Chromium - Version 30.0.1556.0 (210028) http://commondatasto...Win_x64/210028/ downloaded and extracted the zip package https://www.googleap...86000&alt=media using it as a standalone browser - no install Prestashop Back Office Product save and update seems to work with this 2013 version Link to comment Share on other sites More sharing options...
selectshop.at Posted January 17, 2017 Share Posted January 17, 2017 This problem should be solved on latest Prestashop versions (1.6.1.9 and 1.6.1.10) Link to comment Share on other sites More sharing options...
jacograaff Posted January 18, 2017 Share Posted January 18, 2017 I am running 1.6.1.10 and it does not work - I have jumped from 1.6.1.6 to 10 - maybe something did not update correctly I also did a clean install of 1.6.1.10 - reapplied my theme - still does not work Link to comment Share on other sites More sharing options...
biomassives Posted February 6, 2017 Share Posted February 6, 2017 I am working on this bug by addressing an Ajax error that I saw on the chrome dev console, and will report back in the next 24 hrs. Link to comment Share on other sites More sharing options...
DanielHerbert77 Posted March 16, 2017 Share Posted March 16, 2017 Having the issue with PS 1.6.1.4 and Chrome 56.0.2924.87 (64-bit). Not happy. I don't want to update the PS version yet as I need functionality and I've had problems with custom modules in the past when I update. Again, Not Happy. Link to comment Share on other sites More sharing options...
daveyrow Posted March 17, 2017 Share Posted March 17, 2017 (edited) Hi, yes, chrome in some versions doesn't send fields 'submitAddproduct' and 'submitAddproductAndStay' in http post request. So i added lines to /js/admin/products.js at the end of $(document).ready() : $(document).on('click','button[name="submitAddproduct"]',function(e) { e.preventDefault(); $('form#product_form').append('<input type="hidden" name="submitAddproduct" value="1" />'); $('form#product_form').submit(); }); $(document).on('click','button[name="submitAddproductAndStay"]',function(e) { e.preventDefault(); $('form#product_form').append('<input type="hidden" name="submitAddproductAndStay" value="1" />'); $('form#product_form').submit(); }); hope it will help somebody edit: i dont know, but maybe, chrome have problems with fact, that element with name 'submitAddproduct' is actually multiple times in that product form and does not have a value Edited March 17, 2017 by daveyrow (see edit history) Link to comment Share on other sites More sharing options...
itsoft Posted March 20, 2017 Share Posted March 20, 2017 (edited) To me it did not work any method. Other ideas? (My Prestashop version is 1.7.0.6. ) Edited March 20, 2017 by itsoft (see edit history) Link to comment Share on other sites More sharing options...
selectshop.at Posted March 21, 2017 Share Posted March 21, 2017 @itsoft - your server fulfill all needed requirements ? Please follow the topics related to PS 1.7.x here: https://www.prestashop.com/forums/forum/273-170x-in-development/ Link to comment Share on other sites More sharing options...
itsoft Posted March 21, 2017 Share Posted March 21, 2017 @itsoft - your server fulfill all needed requirements ? Please follow the topics related to PS 1.7.x here: https://www.prestashop.com/forums/forum/273-170x-in-development/ Yes. All requirements it's OK. Link to comment Share on other sites More sharing options...
intandem Posted March 30, 2017 Share Posted March 30, 2017 Hi, yes, chrome in some versions doesn't send fields 'submitAddproduct' and 'submitAddproductAndStay' in http post request. So i added lines to /js/admin/products.js at the end of $(document).ready() : $(document).on('click','button[name="submitAddproduct"]',function(e) { e.preventDefault(); $('form#product_form').append('<input type="hidden" name="submitAddproduct" value="1" />'); $('form#product_form').submit(); }); $(document).on('click','button[name="submitAddproductAndStay"]',function(e) { e.preventDefault(); $('form#product_form').append('<input type="hidden" name="submitAddproductAndStay" value="1" />'); $('form#product_form').submit(); }); Hi daveyrow Can you show me the code after yours is inserted - I'm not exactly sure where to place it .... Thanks so much! Link to comment Share on other sites More sharing options...
daveyrow Posted March 31, 2017 Share Posted March 31, 2017 (edited) Hi daveyrow Can you show me the code after yours is inserted - I'm not exactly sure where to place it .... Thanks so much! Hi , the file is located in /js/admin/products.js the end of file with added code looks like this this: please dont forget to ctrl+f5 the admin product page or remove browser cache to reload the loaded js file and report if trouble is gone thx) var tabs_manager = new ProductTabsManager(); tabs_manager.setTabs(product_tabs); $(document).ready(function() { // The manager schedules the onReady() methods of each tab to be called when the tab is loaded tabs_manager.init(); updateCurrentText(); $("#name_" + id_lang_default + ",#link_rewrite_" + id_lang_default) .on("change", function(e) { $(this).trigger("handleSaveButtons"); }); // bind that custom event $("#name_" + id_lang_default + ",#link_rewrite_" + id_lang_default) .on("handleSaveButtons", function(e) { handleSaveButtons() }); // Pressing enter in an input field should not submit the form $('#product_form').delegate('input', 'keypress', function(e) { var code = null; code = (e.keyCode ? e.keyCode : e.which); return (code == 13) ? false : true; }); $('#product_form').submit(function(e) { $('#selectedCarriers option').attr('selected', 'selected'); $('#selectAttachment1 option').attr('selected', 'selected'); return true; }); $(document).on('click','button[name="submitAddproduct"]',function(e) { e.preventDefault(); $('form#product_form').append('<input type="hidden" name="submitAddproduct" value="1" />'); $('form#product_form').submit(); }); $(document).on('click','button[name="submitAddproductAndStay"]',function(e) { e.preventDefault(); $('form#product_form').append('<input type="hidden" name="submitAddproductAndStay" value="1" />'); $('form#product_form').submit(); }); }); Edited March 31, 2017 by daveyrow (see edit history) Link to comment Share on other sites More sharing options...
Aura Host Posted February 24, 2018 Share Posted February 24, 2018 Finally - A Solution! Very simple solution, And I tried them all; Chrome - Version 64.0.3282.186 Prestashop - Version 1.6.1.18 - Make sure you are using PHP 7.2! - Boom! 1 Link to comment Share on other sites More sharing options...
the hat lady Posted October 12, 2019 Share Posted October 12, 2019 Thank You ,so much have tried everything been searching for a solution for months. Link to comment Share on other sites More sharing options...
Yulia Vitun Posted November 10, 2020 Share Posted November 10, 2020 my pies of the problem: cannot save customized value of added feature if language of BO is English, in Dutch - no problem. any one else having it? or ideas for resolution ? 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