Jump to content

1.6.0.9 To 1.6.1.4 Timeout Error When Editing A Product


Recommended Posts

I have solved this issue.

 

Here is the solution that worked for me...

 

 

Using FTP go to "admin > themes > default > template > controllers > products" and in all .tpl files find:

 

<button type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"> {l s='Save'}</button>

 

<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"> {l s='Save and stay'}</button>

 

1. Remove " disabled="disabled "

 

2. Replace "process-icon-loading" with "process-icon-save"

 

The results should be:

 

<button type="submit" name="submitAddproduct" class="btn btn-default pull-right"> {l s='Save'}</button>

 

<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right"> {l s='Save and stay'}</button>

 

NOTE:

 

I used Dreamwaver to open all files from the >>products folder and then I used "Find and Replace" tool to search and replace in all files at once.

 

Save all files and you're done!

  • Like 4
Link to comment
Share on other sites

  • 3 months later...

Hello, i have seen so many tutorials to solve this problem but no one works, please help I cant create new product, everytime it says timeout and saving button still spinning.


Prestashop version 1.6.1.3 - max_execution time 30 (server configuration dont allow me more)


 


Console says:


 


http://polepto.com/a..._=1463251251561" -H "Accept: */*" -H "cache-control: no-cache" -H "Referer: http://polepto.com/admin529vvr43k/index.php?controller=AdminProducts&id_product=147&updateproduct&conf=4&key_tab=Seo&token=c53a89c8f7b9709ea0b18c3a984a3cd1" -H "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36" -H "X-Requested-With: XMLHttpRequest" --compressed


 


 


See this picture and red line


30s.jpg


Link to comment
Share on other sites

  • 3 weeks later...

We use the Prestashop online hosted version and cannot edit the code.

 

Only some PC's show the system errors, particulalry if they are still running XP (to support legacy applications).

 

Has anyone a suggestion on the cause of timeouts or other errors which may be stopping us editing or creating new products?

Link to comment
Share on other sites

  • 9 months later...

I have solved this issue.

 

Here is the solution that worked for me...

 

 

Using FTP go to "admin > themes > default > template > controllers > products" and in all .tpl files find:

 

<button type="submit" name="submitAddproduct" class="btn btn-default pull-right" disabled="disabled"> {l s='Save'}</button>

 

<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"> {l s='Save and stay'}</button>

 

1. Remove " disabled="disabled "

 

2. Replace "process-icon-loading" with "process-icon-save"

 

The results should be:

 

<button type="submit" name="submitAddproduct" class="btn btn-default pull-right"> {l s='Save'}</button>

 

<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right"> {l s='Save and stay'}</button>

 

NOTE:

 

I used Dreamwaver to open all files from the >>products folder and then I used "Find and Replace" tool to search and replace in all files at once.

 

Save all files and you're done!

 

This problem is a resource issue, changing the way buttons display does not "solve" the problem. Prestashop is extremely heavy on the product edit page with javascript and resource consumption, you need to look at your memory and timeout values for php.

 

Again, I repeat... This is a RESOURCE issue and modifying the buttons will actually fix nothing.

 

Because everyone's hosting is so different, you need to contact your hosting provider for assistance with resolving the resource issues based on the server options for your hosting plan.

  • Like 1
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...