Jump to content

Spinning Save and Save button, Prestashop 1.6.1.3


carinac

Recommended Posts

I only have 59 products, and whenever I try to go in and edit an item or put in another item I get the spinning save and stay forever. The weird thing is, sometimes when I go into a page it will stop spinning right away and allow me to press the button and save. But most of the time it will just spin and spin.

Why is it doing this? Why will most the time it won't let me save, but sometimes it will? It is very frustrating especially when I have something on a page that is incorrect and I am unable to change it.

Link to comment
Share on other sites

This comes up

jquery-1.11.0.min.js:4 GET http://doorshop.com/admin123/index.php?controller=AdminProducts&token=df8df…action=Attachments&updateproduct&ajax=1&rand=1464800784872&_=1464800783186 500 (Internal Server Error)send @ jquery-1.11.0.min.js:4n.extend.ajax @ jquery-1.11.0.min.js:4ProductTabsManager.display @ products.js:117ProductTabsManager.displayBulk @ products.js:166(anonymous function) @ products.js:208
products.js:177 Uncaught TypeError: Cannot read property 'replace' of undefined(anonymous function) @ products.js:177j @ jquery-1.11.0.min.js:2k.fireWith @ jquery-1.11.0.min.js:2x @ jquery-1.11.0.min.js:4b @ jquery-1.11.0.min.js:4
jquery-1.11.0.min.js:4 GET http://doorshop.com/admin123/index.php?controller=AdminProducts&token=df8df…6&action=Suppliers&updateproduct&ajax=1&rand=1464800784877&_=1464800783187 500 (Internal Server Error)send @ jquery-1.11.0.min.js:4n.extend.ajax @ jquery-1.11.0.min.js:4ProductTabsManager.display @ products.js:117ProductTabsManager.displayBulk @ products.js:166(anonymous function) @ products.js:208
products.js:177 Uncaught TypeError: Cannot read property 'replace' of undefined(anonymous function) @ products.js:177j @ jquery-1.11.0.min.js:2k.fireWith @ jquery-1.11.0.min.js:2x @ jquery-1.11.0.min.js:4b @ jquery-1.11.0.min.js:4

please follow these steps:

1) turn on back office in CHROME browser

2) press ctrl+shift+j

3) go to product edit page

4) do you see some red errors in the console?

5) if so ,please paste them here

Link to comment
Share on other sites

jquery-1.11.0.min.js:4 GET http://doorshop.com/admin123/index.php?controller=AdminProducts&token=df8df…ion=VirtualProduct&updateproduct&ajax=1&rand=1464803205587&_=1464803203794 500 (Internal Server Error)send @ jquery-1.11.0.min.js:4n.extend.ajax @ jquery-1.11.0.min.js:4ProductTabsManager.display @ products.js:117ProductTabsManager.displayBulk @ products.js:166(anonymous function) @ products.js:208

 

 

products.js:177 Uncaught TypeError: Cannot read property 'replace' of undefined(anonymous function) @ products.js:177j @ jquery-1.11.0.min.js:2k.fireWith @ jquery-1.11.0.min.js:2x @ jquery-1.11.0.min.js:4b @ jquery-1.11.0.min.js:4
jquery-1.11.0.min.js:4 GET http://doorshop.com/admin123/index.php?controller=AdminProducts&token=df8df…&action=Quantities&updateproduct&ajax=1&rand=1464803205582&_=1464803203793 500 (Internal Server Error)send @ jquery-1.11.0.min.js:4n.extend.ajax @ jquery-1.11.0.min.js:4ProductTabsManager.display @ products.js:117ProductTabsManager.displayBulk @ products.js:166(anonymous function) @ products.js:208

 

GET http://doorshop.com/admin123/index.php?controller=AdminProducts&token=df8df…&action=Quantities&updateproduct&ajax=1&rand=1464803205582&_=1464803203793 500 (Internal Server Error)send @ jquery-1.11.0.min.js:4n.extend.ajax @ jquery-1.11.0.min.js:4ProductTabsManager.display @ products.js:117ProductTabsManager.displayBulk @ products.js:166(anonymous function) @ products.js:208
products.js:177 Uncaught TypeError: Cannot read property 'replace' of undefined(anonymous function) @ products.js:177j @ jquery-1.11.0.min.js:2k.fireWith @ jquery-1.11.0.min.js:2x @ jquery-1.11.0.min.js:4b @ jquery-1.11.0.min.js:4

 

products.js:177 Uncaught TypeError: Cannot read property 'replace' of undefined(anonymous function) @ products.js:177j @ jquery-1.11.0.min.js:2k.fireWith @ jquery-1.11.0.min.js:2x @ jquery-1.11.0.min.js:4b @ jquery-1.11.0.min.js:4
jquery-1.11.0.min.js:4 GET http://doorshop.com/admin123/index.php?controller=AdminProducts&token=df8df…t=26&action=Images&updateproduct&ajax=1&rand=1464803205594&_=1464803203795 500 (Internal Server Error)send @ jquery-1.11.0.min.js:4n.extend.ajax @ jquery-1.11.0.min.js:4ProductTabsManager.display @ products.js:117ProductTabsManager.displayBulk @ products.js:166(anonymous function) @ products.js:208

 

jquery-1.11.0.min.js:4 GET http://doorshop.com/admin123/index.php?controller=AdminProducts&token=df8df…t=26&action=Images&updateproduct&ajax=1&rand=1464803205594&_=1464803203795 500 (Internal Server Error)send @ jquery-1.11.0.min.js:4n.extend.ajax @ jquery-1.11.0.min.js:4ProductTabsManager.display @ products.js:117ProductTabsManager.displayBulk @ products.js:166(anonymous function) @ products.js:208

 

products.js:177 Uncaught TypeError: Cannot read property 'replace' of undefined(anonymous function) @ products.js:177j @ jquery-1.11.0.min.js:2k.fireWith @ jquery-1.11.0.min.js:2x @ jquery-1.11.0.min.js:4b @ jquery-1.11.0.min.js:4
jquery-1.11.0.min.js:4 GET http://doorshop.com/admin123/index.php?controller=AdminProducts&token=df8df…26&action=Features&updateproduct&ajax=1&rand=1464803205598&_=1464803203796 500 (Internal Server Error)send @ jquery-1.11.0.min.js:4n.extend.ajax @ jquery-1.11.0.min.js:4ProductTabsManager.display @ products.js:117ProductTabsManager.displayBulk @ products.js:166(anonymous function) @ products.js:208

 

 

jquery-1.11.0.min.js:4 GET http://doorshop.com/admin123/index.php?controller=AdminProducts&token=df8df…26&action=Features&updateproduct&ajax=1&rand=1464803205598&_=1464803203796 500 (Internal Server Error)send @ jquery-1.11.0.min.js:4n.extend.ajax @ jquery-1.11.0.min.js:4ProductTabsManager.display @ products.js:117ProductTabsManager.displayBulk @ products.js:166(anonymous function) @ products.js:208
products.js:177 Uncaught TypeError: Cannot read property 'replace' of undefined(anonymous function) @ products.js:177j @ jquery-1.11.0.min.js:2k.fireWith @ jquery-1.11.0.min.js:2x @ jquery-1.11.0.min.js:4b @ jquery-1.11.0.min.js:4

 

Uncaught TypeError: Cannot read property 'replace' of undefined(anonymous function) @ products.js:177j @ jquery-1.11.0.min.js:2k.fireWith @ jquery-1.11.0.min.js:2x @ jquery-1.11.0.min.js:4b @ jquery-1.11.0.min.js:4

Link to comment
Share on other sites

A 500 error usually means that there was a php error. As this happened in an ajax operation you cannot see the details directly. However, the error message should be in the php error log. Also, at least with Firebug, you can see in the console what error message was returned in the ajax call (see picture).

 

post-302430-0-02359500-1465035798_thumb.jpg

 

The class index file provides an overview of all the classes in your shop. That file is rebuilt every time you add or remove some module. However, sometimes something goes wrong and it misses a class. By deleting the file you force a rebuild. 

 

But if the problem keeps coming back it may be a good idea to have a look and see what class is missing each time and think about probable causes.

Link to comment
Share on other sites

  • 4 months later...
  • 1 year later...

Hi there, 

I don't know if you still are here on prestashop forum but have informations how to fix this annoying prestashop bug.

 

Just go there -> YOUR-WEBSITE/adminfolder/themes/default/template/controllers/products/ 
There you will find .tpl files for each tab from product page (Informations, Price, Shipping, Feature, Images etc)
Open first informations.tpl file , search and delete this: disabled="disabled" and then next of that find <i class="process-icon-loading"> and change "loading" to "save". That code need to looks like  <i class="process-icon-save">

You have to do that twice at each file you edit. 1. for Save and stay button and 2. for Save button.


Repeat that in each file for each tab.

You can thanks me later :)

  • Thanks 1
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

I've applied this fix to PS 1.6.1.17 this morning and it seems to be working well! THANK YOU!. My only issue is that I'm using a template with a TM Product Video and can't seem to find where the template file is located to apply the fix.

Stef

Link to comment
Share on other sites

  • 5 months later...

Thank you for this, I applied to PS 1.6.1.22 this morning.

Error Log for PS Developers although 1.6  is on its way out so if it hasn't been fixed by now...it won't be in the future

Uncaught TypeError: Cannot read property 'length' of undefined
    at Function.each (jquery-1.11.0.min.js:2)
    at Object.success (notifications.js:51)
    at j (jquery-1.11.0.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.0.min.js:2)
    at x (jquery-1.11.0.min.js:4)
    at XMLHttpRequest.b (jquery-1.11.0.min.js:4)
08:49:45.616 index.php?controller=AdminProducts&id_product=104&updateproduct&token=96249ae8e3bce24b8ebb730b1f4ead2b:1 [DOM] Found 4 elements with non-unique id #product_form_submit_btn: (More info: https://goo.gl/9p2vKq) <button id="product_form_submit_btn" type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"></button> <button id="product_form_submit_btn" type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"></button> <button id="product_form_submit_btn" type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"></button> <button id="product_form_submit_btn" type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"></button>
08:49:59.684 VM3951:41 Uncaught SyntaxError: Unexpected token ,
    at eval (<anonymous>)
    at jquery-1.11.0.min.js:2
    at Function.globalEval (jquery-1.11.0.min.js:2)
    at e.fn.init.domManip (jquery-1.11.0.min.js:3)
    at e.fn.init.append (jquery-1.11.0.min.js:3)
    at e.fn.init.<anonymous> (jquery-1.11.0.min.js:3)
    at n.access (jquery-1.11.0.min.js:3)
    at e.fn.init.html (jquery-1.11.0.min.js:3)
    at Object.success (products.js:127)
    at j (jquery-1.11.0.min.js:2)

 

Link to comment
Share on other sites

  • 1 month later...
  • 2 years later...
On 3/18/2018 at 12:02 AM, ZikmaSolutions said:

Hi there, 

I don't know if you still are here on prestashop forum but have informations how to fix this annoying prestashop bug.

 

Just go there -> YOUR-WEBSITE/adminfolder/themes/default/template/controllers/products/ 
There you will find .tpl files for each tab from product page (Informations, Price, Shipping, Feature, Images etc)
Open first informations.tpl file , search and delete this: disabled="disabled" and then next of that find <i class="process-icon-loading"> and change "loading" to "save". That code need to looks like  <i class="process-icon-save">

You have to do that twice at each file you edit. 1. for Save and stay button and 2. for Save button.


Repeat that in each file for each tab.

You can thanks me later :)

Thanks a lot. Its working fine. Everything is working fine accept two section under price section Please check the image in attachment.

Prestashop version 1.6.1.24

specific rule.PNG

Edited by Pravesh Singh
need to ad something (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...