cancel
Showing results for 
Search instead for 
Did you mean: 

Timeout while changing product image

Timeout while changing product image

magento 2.2.8
PHP 7.1
LiteSpeed webserver

System have 50.000 products 6 websites.
Max RAM = 3GB

 

For some prpoducts I get a timeout when changing product image. It doesn't matter if picture is 1.4MB or only 70KB

 

It's like my site loose connectionn with Cloudflare,... So after a while I'm sent to the admin dashboard by cloudflare, saying my site went down and what I see is the "keep-alive" feature of cloudfare... then I refresh the site and it is back again.... but the picture is not changed...

 

I have checked CPU and memory usage, and everything is normal there

 

any idea

2 REPLIES 2

Re: Timeout while changing product image

Hi @Loginname,

Check max_execution_time and memory_limit on the server.

Increase memory_limit and max_execution_time on the server. Or add following line in index.php of the root folder disable it.

ini_set("memory_limit","-1");
ini_set("max_execution_time",0);

Check the permission as well. Or rerun the following command.

sudo find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento

sudo chmod -R 0777 pub/ var/ generated/

I hope it will help you!

Re: Timeout while changing product image

Hi @Loginname 

 

We had same issue reported with the Magento 2.1.X earlier. Please confirm that if you are facing this issue with the configurable products.

 

Here I found this closing pull request of this issue. It might help you.

 

Thanks

 

If my answer is useful, please Accept as Solution & give Kudos