weeme Posted May 30, 2022 Share Posted May 30, 2022 Hello, Had a very frustrating problem with our store that we have just kind of put up with for a few months now, however after adding another multistore and increasing the products we have it's getting to be a bit of a problem now (The problem began on a fresh PS install prior to adding multistore features) Basically, when editing the quantities of a product that has multiple variants, the first 1-6 times clicking save give the error "Unable to update settings" but if we keep clicking save, it will eventually save correctly When inspecting the element, in network the problem seems to be from "prestashop-ui-kit.js" and for this particular product I have tested, when it fails the size of request is only 72b, when it succeeds the size is 7kb I have followed all the guides that can be found regarding this, and we are using the following settings PHP version: 7.2.34 Memory limit: 512M Max execution time: 10000 Prestashop : 1.7.8.0 Does anyone know how to fix this issue as its rather annoying? Many thanks in advance Link to comment Share on other sites More sharing options...
El Patron Posted May 30, 2022 Share Posted May 30, 2022 Hi, did you enable debug mode to see if underlying error exposed? google how to enable debug mode if you do not know how. also check hosting error log when this happens. tip, using chrome development tools inspect, you can look at console for errors when you have this issue to see if .js bug learn more here about using chrome dev tools, very useful the key is knowing that the underlying error is, Link to comment Share on other sites More sharing options...
weeme Posted May 31, 2022 Author Share Posted May 31, 2022 (edited) On 5/30/2022 at 10:09 PM, El Patron said: Hi, did you enable debug mode to see if underlying error exposed? google how to enable debug mode if you do not know how. also check hosting error log when this happens. tip, using chrome development tools inspect, you can look at console for errors when you have this issue to see if .js bug learn more here about using chrome dev tools, very useful the key is knowing that the underlying error is, Hi El Patron, Thanks for your reply With debug mode enabled, when I try to perform the action, the only bit that flashes red is the ajax entries Method : POST Type : xhr Status : 500 Time : 1369ms Should I paste the Symfony Profiler profile info? Chrome dev tools console error shows its a problem with prestashop ui kit js prestashop-ui-kit.js:1 JQMIGRATE: Migrate is installed with logging active, version 3.3.2 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.expr.filters is deprecated; use jQuery.expr.pseudos s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.isArray is deprecated; use Array.isArray s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.isFunction() is deprecated s @ prestashop-ui-kit.js:1 module_card.js?1.7.8.0:1 Uncaught SyntaxError: Identifier 'moduleCardController' has already been declared (at module_card.js?1.7.8.0:1:1) prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.click() event shorthand is deprecated s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.hover() is deprecated s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.resize() event shorthand is deprecated s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.bind() is deprecated s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.submit() event shorthand is deprecated s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.change() event shorthand is deprecated s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.unique is deprecated; use jQuery.uniqueSort s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.keyup() event shorthand is deprecated s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.parseJSON is deprecated; use JSON.parse s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.unbind() is deprecated s @ prestashop-ui-kit.js:1 /xxx/index.php/sell/catalog/products/358?_token=zjpWylQxSfUJs_akoDWnz6yM-j6CyDstjgp3iWhSrys#tab-step3:1 Failed to load resource: the server responded with a status of 500 () prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.removeAttr no longer sets boolean properties: disabled s @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 POST https://weemeboutique.co.uk/xxx/index.php/sell/catalog/products/358?_token=zjpWylQxSfUJs_akoDWnz6yM-j6CyDstjgp3iWhSrys 500 send @ prestashop-ui-kit.js:1 ajax @ prestashop-ui-kit.js:1 e.ajax @ prestashop-ui-kit.js:1 send @ form.js?1.7.8.0:677 (anonymous) @ form.js?1.7.8.0:876 dispatch @ prestashop-ui-kit.js:1 _.handle @ prestashop-ui-kit.js:1 Many thanks! Edited June 1, 2022 by weeme Removed admin folder name (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted May 31, 2022 Share Posted May 31, 2022 Hi, that is a lot more info! well done! Yes you have 500 but that is difficult to solve unless hands on. You can google prestashop github or other with message to see if someone has similar issue with solution. I recommend posting in job section for help, it's useful to have a relationship with a developer who can help when you need it. Link to comment Share on other sites More sharing options...
JBW Posted June 3, 2022 Share Posted June 3, 2022 If you have a 500 in the ajax request, enable debug mode and then check the XHR request response details in the browser console, it will show the error details. Link to comment Share on other sites More sharing options...
weeme Posted June 7, 2022 Author Share Posted June 7, 2022 On 6/3/2022 at 7:57 PM, JBW said: If you have a 500 in the ajax request, enable debug mode and then check the XHR request response details in the browser console, it will show the error details. Hey, this is what the console outputs, seems to be an issue with PS Ui Kits JS prestashop-ui-kit.js:1 JQMIGRATE: Migrate is installed with logging active, version 3.3.2 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos s @ prestashop-ui-kit.js:1 get @ prestashop-ui-kit.js:1 t @ jquery-ui.js:1252 (anonymous) @ jquery-ui.js:17 10278 @ jquery-ui.js:18710 __webpack_require__ @ bootstrap:19 (anonymous) @ theme.js:29 (anonymous) @ main.bundle.js:2 (anonymous) @ main.bundle.js:2 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.expr.filters is deprecated; use jQuery.expr.pseudos s @ prestashop-ui-kit.js:1 get @ prestashop-ui-kit.js:1 (anonymous) @ jquery-ui.js:2226 t @ jquery-ui.js:2224 (anonymous) @ jquery-ui.js:17 10278 @ jquery-ui.js:18710 __webpack_require__ @ bootstrap:19 (anonymous) @ theme.js:29 (anonymous) @ main.bundle.js:2 (anonymous) @ main.bundle.js:2 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.isArray is deprecated; use Array.isArray s @ prestashop-ui-kit.js:1 e.<computed> @ prestashop-ui-kit.js:1 e.widget @ jquery-ui.js:81 t @ jquery-ui.js:4321 (anonymous) @ jquery-ui.js:17 10278 @ jquery-ui.js:18710 __webpack_require__ @ bootstrap:19 (anonymous) @ theme.js:29 (anonymous) @ main.bundle.js:2 (anonymous) @ main.bundle.js:2 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.isFunction() is deprecated s @ prestashop-ui-kit.js:1 e.<computed> @ prestashop-ui-kit.js:1 (anonymous) @ jquery-ui.js:126 each @ prestashop-ui-kit.js:1 e.widget @ jquery-ui.js:125 t @ jquery-ui.js:4321 (anonymous) @ jquery-ui.js:17 10278 @ jquery-ui.js:18710 __webpack_require__ @ bootstrap:19 (anonymous) @ theme.js:29 (anonymous) @ main.bundle.js:2 (anonymous) @ main.bundle.js:2 module_card.js?1.7.8.0:1 Uncaught SyntaxError: Identifier 'moduleCardController' has already been declared (at module_card.js?1.7.8.0:1:1) prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.click() event shorthand is deprecated s @ prestashop-ui-kit.js:1 e.each.e.fn.<computed> @ prestashop-ui-kit.js:1 (anonymous) @ modal-confirmation.js?1.7.8.0:20 (anonymous) @ modal-confirmation.js?1.7.8.0:53 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.hover() is deprecated s @ prestashop-ui-kit.js:1 hover @ prestashop-ui-kit.js:1 (anonymous) @ nav_bar.js:63 o @ prestashop-ui-kit.js:1 d @ prestashop-ui-kit.js:1 setTimeout (async) (anonymous) @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 fire @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 ready @ prestashop-ui-kit.js:1 $ @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.resize() event shorthand is deprecated s @ prestashop-ui-kit.js:1 e.each.e.fn.<computed> @ prestashop-ui-kit.js:1 value @ header.js:174 (anonymous) @ header.js:36 o @ prestashop-ui-kit.js:1 d @ prestashop-ui-kit.js:1 setTimeout (async) (anonymous) @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 fire @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 ready @ prestashop-ui-kit.js:1 $ @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.bind() is deprecated s @ prestashop-ui-kit.js:1 bind @ prestashop-ui-kit.js:1 value @ auto-complete-search.js:100 t @ auto-complete-search.js:92 (anonymous) @ multistore-dropdown.js:75 (anonymous) @ multistore-dropdown.js:79 o @ prestashop-ui-kit.js:1 d @ prestashop-ui-kit.js:1 setTimeout (async) (anonymous) @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 fire @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 ready @ prestashop-ui-kit.js:1 $ @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.submit() event shorthand is deprecated s @ prestashop-ui-kit.js:1 e.each.e.fn.<computed> @ prestashop-ui-kit.js:1 (anonymous) @ tools.js?v=1.7.8.0:743 o @ prestashop-ui-kit.js:1 d @ prestashop-ui-kit.js:1 setTimeout (async) (anonymous) @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 fire @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 ready @ prestashop-ui-kit.js:1 $ @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.change() event shorthand is deprecated s @ prestashop-ui-kit.js:1 e.each.e.fn.<computed> @ prestashop-ui-kit.js:1 (anonymous) @ back.js:16 o @ prestashop-ui-kit.js:1 d @ prestashop-ui-kit.js:1 setTimeout (async) (anonymous) @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 fire @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 ready @ prestashop-ui-kit.js:1 $ @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.unique is deprecated; use jQuery.uniqueSort s @ prestashop-ui-kit.js:1 e.<computed> @ prestashop-ui-kit.js:1 s @ jquery-ui.js:520 _classes @ jquery-ui.js:537 _toggleClass @ jquery-ui.js:572 _addClass @ jquery-ui.js:560 _create @ jquery-ui.js:15276 (anonymous) @ jquery-ui.js:147 _createWidget @ jquery-ui.js:344 e.<computed>.<computed> @ jquery-ui.js:102 (anonymous) @ jquery-ui.js:284 each @ prestashop-ui-kit.js:1 each @ prestashop-ui-kit.js:1 e.fn.<computed> @ jquery-ui.js:276 init @ form.js?1.7.8.0:1447 value @ dropzone.js:1421 t @ dropzone.js:1147 (anonymous) @ dropzone.js:3479 each @ prestashop-ui-kit.js:1 each @ prestashop-ui-kit.js:1 i.fn.dropzone @ dropzone.js:3478 init @ form.js?1.7.8.0:1491 (anonymous) @ form.js?1.7.8.0:38 o @ prestashop-ui-kit.js:1 d @ prestashop-ui-kit.js:1 setTimeout (async) (anonymous) @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 fire @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 ready @ prestashop-ui-kit.js:1 $ @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.keyup() event shorthand is deprecated s @ prestashop-ui-kit.js:1 e.each.e.fn.<computed> @ prestashop-ui-kit.js:1 init @ form.js?1.7.8.0:1757 (anonymous) @ form.js?1.7.8.0:39 o @ prestashop-ui-kit.js:1 d @ prestashop-ui-kit.js:1 setTimeout (async) (anonymous) @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 fire @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 ready @ prestashop-ui-kit.js:1 $ @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.parseJSON is deprecated; use JSON.parse s @ prestashop-ui-kit.js:1 e.<computed> @ prestashop-ui-kit.js:1 success @ back.js:71 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 D @ prestashop-ui-kit.js:1 (anonymous) @ prestashop-ui-kit.js:1 load (async) send @ prestashop-ui-kit.js:1 ajax @ prestashop-ui-kit.js:1 e.ajax @ prestashop-ui-kit.js:1 (anonymous) @ back.js:58 o @ prestashop-ui-kit.js:1 d @ prestashop-ui-kit.js:1 setTimeout (async) (anonymous) @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 fire @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 ready @ prestashop-ui-kit.js:1 $ @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.unbind() is deprecated s @ prestashop-ui-kit.js:1 unbind @ prestashop-ui-kit.js:1 f.fn.fancybox @ jquery.fancybox.js:44 success @ gamification_bt.js:80 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 D @ prestashop-ui-kit.js:1 (anonymous) @ prestashop-ui-kit.js:1 load (async) send @ prestashop-ui-kit.js:1 ajax @ prestashop-ui-kit.js:1 e.ajax @ prestashop-ui-kit.js:1 gamificationTasks @ gamification_bt.js:10 (anonymous) @ gamification_bt.js:3 o @ prestashop-ui-kit.js:1 d @ prestashop-ui-kit.js:1 setTimeout (async) (anonymous) @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 fire @ prestashop-ui-kit.js:1 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 ready @ prestashop-ui-kit.js:1 $ @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.type is deprecated s @ prestashop-ui-kit.js:1 e.<computed> @ prestashop-ui-kit.js:1 error @ form.js?1.7.8.0:1419 (anonymous) @ jquery-ui.js:255 each @ prestashop-ui-kit.js:1 each @ prestashop-ui-kit.js:1 e.fn.<computed> @ jquery-ui.js:239 (anonymous) @ form.js?1.7.8.0:68 dispatch @ prestashop-ui-kit.js:1 _.handle @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 POST https://weemeboutique.co.uk/XXX/index.php/sell/catalog/products/420?_token=GaONmsGG-Dsrc_uRBwrUnEx74qEPgDqoJs8CK0sX1I8 500 send @ prestashop-ui-kit.js:1 ajax @ prestashop-ui-kit.js:1 e.ajax @ prestashop-ui-kit.js:1 send @ form.js?1.7.8.0:677 (anonymous) @ form.js?1.7.8.0:876 dispatch @ prestashop-ui-kit.js:1 _.handle @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 JQMIGRATE: jQuery.fn.removeAttr no longer sets boolean properties: disabled s @ prestashop-ui-kit.js:1 (anonymous) @ prestashop-ui-kit.js:1 each @ prestashop-ui-kit.js:1 e.fn.removeAttr @ prestashop-ui-kit.js:1 complete @ form.js?1.7.8.0:786 i @ prestashop-ui-kit.js:1 fireWith @ prestashop-ui-kit.js:1 D @ prestashop-ui-kit.js:1 (anonymous) @ prestashop-ui-kit.js:1 load (async) send @ prestashop-ui-kit.js:1 ajax @ prestashop-ui-kit.js:1 e.ajax @ prestashop-ui-kit.js:1 send @ form.js?1.7.8.0:677 (anonymous) @ form.js?1.7.8.0:876 dispatch @ prestashop-ui-kit.js:1 _.handle @ prestashop-ui-kit.js:1 prestashop-ui-kit.js:1 POST https://weemeboutique.co.uk/XXX/index.php/sell/catalog/products/420?_token=GaONmsGG-Dsrc_uRBwrUnEx74qEPgDqoJs8CK0sX1I8 500 send @ prestashop-ui-kit.js:1 ajax @ prestashop-ui-kit.js:1 e.ajax @ prestashop-ui-kit.js:1 send @ form.js?1.7.8.0:677 (anonymous) @ form.js?1.7.8.0:876 dispatch @ prestashop-ui-kit.js:1 _.handle @ prestashop-ui-kit.js:1 Any ideas? Many thanks Link to comment Share on other sites More sharing options...
JBW Posted June 7, 2022 Share Posted June 7, 2022 These are errors in the JS console. You have to check for the XHR response instead. Link to comment Share on other sites More sharing options...
JBW Posted June 7, 2022 Share Posted June 7, 2022 14 minutes ago, weeme said: module_card.js?1.7.8.0:1 Uncaught SyntaxError: Identifier 'moduleCardController' has already been declared (at module_card.js?1.7.8. Check if it helps to deactivate this module "cardController" 1 Link to comment Share on other sites More sharing options...
weeme Posted June 7, 2022 Author Share Posted June 7, 2022 9 minutes ago, JBW said: Check if it helps to deactivate this module "cardController" Hey How would I check the XHR request response, via debug or chrome inspect/dev tools? I cant seem to find any module named cardController or anything similar, but in the console in sources>module_card.js its showing the error is on the first line /* eslint-disable max-len */ Has the red X beside it, with "Uncaught SyntaxError: Identifier 'moduleCardController' has already been declared" Many thanks Link to comment Share on other sites More sharing options...
JBW Posted June 7, 2022 Share Posted June 7, 2022 Example chrome Link to comment Share on other sites More sharing options...
weeme Posted June 7, 2022 Author Share Posted June 7, 2022 22 minutes ago, JBW said: Example chrome Thank you The response is unfortunately empty, so not much extra to go on there though Link to comment Share on other sites More sharing options...
JBW Posted June 7, 2022 Share Posted June 7, 2022 5 hours ago, weeme said: The response is unfortunately empty, so not much extra to go on there though Debug mode has to be active 6 hours ago, weeme said: I cant seem to find any module named cardController or anything similar, but in the console in sources>module_card.js Check the path to the JS file, it will be most probably guide you to the module folder Link to comment Share on other sites More sharing options...
weeme Posted June 8, 2022 Author Share Posted June 8, 2022 18 hours ago, JBW said: Debug mode has to be active Check the path to the JS file, it will be most probably guide you to the module folder With debug mode active, the response is still empty unfortunately And the JS file is located in /admin/themes/default/js/bundle/module/ so not part of an actual module that can be disabled I got a new copy of module_cart.js from the prestashop installer, uploaded, cleared cache etc, however same issue It seems prestashop ui kits js is the main culprit however, as that is what is giving the 500 error Link to comment Share on other sites More sharing options...
JBW Posted June 9, 2022 Share Posted June 9, 2022 19 hours ago, weeme said: With debug mode active, the response is still empty unfortunately Thats strange. Last resort would be to check the server error log, the 500 should be logged there Link to comment Share on other sites More sharing options...
weeme Posted June 9, 2022 Author Share Posted June 9, 2022 1 hour ago, JBW said: Thats strange. Last resort would be to check the server error log, the 500 should be logged there When I check the error log on cPanel there are no errors, I can go to products, change quantity, receive 500 error in console, then check error log and there is nothing Is there a different error log I should check? Perhaps a log file on FTP? Many thanks Link to comment Share on other sites More sharing options...
ArnasDEV Posted April 8, 2024 Share Posted April 8, 2024 Did you find the solution? 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