Jump to content

Spinning save button


fonteyne131

Recommended Posts

Hi,

 

Our save button keeps spinning when we open and want to save a product. I changed already the form.tpl

In console i'm getting these errors:

[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"><i class="process-icon-save"></i>" Opslaan"</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>
 

Somebody has a good solution?

 

It's Prestashop 1.6.1.0

 

Best regards

Jurgen

Link to comment
Share on other sites

Can you please also share the screenshot of the Network panel as well (Chrome toolbar network panel, instead of console panel)

Open the Chrome toolbar & Go to Network. Then press the save button & share the screenshot (I think there is 500 error in the ajax request).

If yes, Kindly check the details of the error in the server error log.

 

Link to comment
Share on other sites

There is a known issue with Google Chrome and some versions of Prestashop. Various codes have been deprecated and Chrome has started to be niggly about it

 

if you search the forum you will find the solution as it has been discussed many times. Upgrade is best to the latets 1.6 verions (remember to do lots of backups though) if you do not want to upgrade there is an article on github how to manually fix

Link to comment
Share on other sites

12 hours ago, haylau said:

There is a known issue with Google Chrome and some versions of Prestashop. Various codes have been deprecated and Chrome has started to be niggly about it

 

if you search the forum you will find the solution as it has been discussed many times. Upgrade is best to the latets 1.6 verions (remember to do lots of backups though) if you do not want to upgrade there is an article on github how to manually fix

 

I hope you are talking about non-unique-id warning by google. I don't think non-unique-id warning has anything with the spinning issue. Kindly confirm.

 

 

Link to comment
Share on other sites

  • 2 months later...

I too have the issue, below is the information I can provide, any help would be appreciated:

 

Host: Godaddy
PrestaShop Version: 1.6.1.23
System: Linux
PHP Version: 7.0

After upgrading to 1.6.1.23 I have the "save buttons spinning" on the products pages. (Last year I solved the issue of the "prestashop save buttons spinning" however can not find my notes on it.)

I have tried the below:

(1) Upgraded PHP Version from 5.6PHP to 7.0PHP.

(2) Visited [http://prestamania.com/prestashop-back-office-bug-not-saving-everytime/] but no string of [submitHandler: function(form) { form.submit(); },] is found to edit in the [admin//themes/default/template/controllers/products/helpers/form/form.tpl] file.

(3) Force Compiled in the BO - Performance Page

(4) Checked Folder permissions: 

Folder permissions for /admin_folder/ = 755

Folder permissions for /admin_folder/filemanager/ = 755

 

When using Chrome and the Inspect Setting I see 4 Errors:

 

#1 -------------------------------------------------------------------------------------------------------------------------------------------------------
jquery.fileupload-process.js:32

Uncaught TypeError: Cannot read property 'fileupload' of undefined
    at jquery.fileupload-process.js:32
    at jquery.fileupload-process.js:25
    at jquery.fileupload-process.js:29
(anonymous) @ jquery.fileupload-process.js:32
(anonymous) @ jquery.fileupload-process.js:25
(anonymous) @ jquery.fileupload-process.js:29

#2 -------------------------------------------------------------------------------------------------------------------------------------------------------

jquery.fileupload-validate.js:33

Uncaught TypeError: Cannot read property 'fileupload' of undefined
    at jquery.fileupload-validate.js:33
    at jquery.fileupload-validate.js:25
    at jquery.fileupload-validate.js:29

 

#3 -------------------------------------------------------------------------------------------------------------------------------------------------------
[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"><i class="process-icon-loading"></i> Save</button>

<button id="product_form_submit_btn" type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> Save and stay</button>

<button id="product_form_submit_btn" type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> Save</button>

<button id="product_form_submit_btn" type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i> Save and stay</button>
 
 #4 -------------------------------------------------------------------------------------------------------------------------------------------------------
Uncaught TypeError: $(...).fileupload is not a function
    at HTMLDocument.eval (eval at <anonymous> (jquery-1.11.0.min.js:2), <anonymous>:25:14)
    at j (jquery-1.11.0.min.js:2)
    at Object.add [as done] (jquery-1.11.0.min.js:2)
    at e.fn.init.n.fn.ready (jquery-1.11.0.min.js:2)
    at eval (eval at <anonymous> (jquery-1.11.0.min.js:2), <anonymous>:19:16)
    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)

 

Any ideas to try?

Link to comment
Share on other sites

Ok, I solved my issue. I had a file with no data in it. Thus I took a backup file and copied the code into the server file. Below is the file I needed to populate to make the spinning save buttons work.

"admin_folder"/themes/default/js/jquery.fileupload-validate.js

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...