{"id":44,"date":"2021-03-29T05:42:40","date_gmt":"2021-03-29T05:42:40","guid":{"rendered":"https:\/\/imagify.io\/documentation\/?p=44"},"modified":"2025-11-28T06:22:15","modified_gmt":"2025-11-28T06:22:15","slug":"optimization-is-stuck","status":"publish","type":"post","link":"https:\/\/imagify.io\/documentation\/optimization-is-stuck\/","title":{"rendered":"Optimization is Stuck"},"content":{"rendered":"\n<p>When you optimize images (manually or automatically) through the Media Library or Bulk Optimization, sometimes the process gets stuck or errors appear. You might notice one of the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Stuck at 0% or not moving past a certain percentage<\/li>\n\n\n\n<li>Error messages like \u201cYou have consumed all your data\u201d (even if you\u2019re on an unlimited plan)<\/li>\n\n\n\n<li>A server error or other unknown issues<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Why Does This Happen?<\/h3>\n\n\n\n<p>This issue can occur for many reasons, but the best way to find out the cause is by installing our <strong><a href=\"https:\/\/github.com\/wp-media\/imagify-helpers\/raw\/master\/various\/imagify-tools\/imagify-tools.zip\" target=\"_blank\" rel=\"noopener\">Imagify Tools plugin<\/a><\/strong>. The helper plugin will highlight problem areas in red. Here are the most common causes and their solutions:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Low Memory or Timeout<\/h3>\n\n\n\n<p>A common cause is low memory or timeout settings. The error can be unknown or may look like:<\/p>\n\n\n\n<p><code>100 \u2013 Operation timed out after 45000 milliseconds with 0 bytes received<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"150\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2024\/09\/image-1.png\" alt=\"low memory limit\" class=\"wp-image-1048\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2024\/09\/image-1.png 702w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2024\/09\/image-1-300x64.png 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/figure>\n\n\n\n<p>The first step to fix any optimization issue is to increase the memory and timeout settings. Ideally, set the memory to 256M and the timeout to 60 seconds (value 600) at least. You can do this by adding the following lines to your <code>wp-config.php<\/code> file(before the &#8220;That&#8217;s all! Stop editing&#8230;&#8221; message):<\/p>\n\n\n\n<p><code>define( 'WP_MEMORY_LIMIT', '256M' );<span style=\"font-family: inherit;font-size: inherit;color: initial\"><\/br>set_time_limit(0);<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1012\" height=\"508\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/03\/Screenshot-2021-05-17-at-14.24.19.png\" alt=\"\" class=\"wp-image-394\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/03\/Screenshot-2021-05-17-at-14.24.19.png 1012w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/03\/Screenshot-2021-05-17-at-14.24.19-300x151.png 300w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/03\/Screenshot-2021-05-17-at-14.24.19-768x386.png 768w\" sizes=\"auto, (max-width: 1012px) 100vw, 1012px\" \/><\/figure>\n\n\n\n<p>After making these changes, try optimizing again.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Slow or Stuck Optimization<\/h3>\n\n\n\n<p>If the optimization is slow or stops after a while, you can install our <strong><a href=\"https:\/\/github.com\/wp-media\/imagify-helpers\/raw\/master\/optimization\/imagify-dont-use-imagemagick\/imagify-dont-use-imagemagick.zip\" target=\"_blank\" rel=\"noopener\">Don\u2019t Use ImageMagick<\/a> helper plugin<\/strong>. This plugin forces your server to use the GD module instead of Imagick, which can sometimes slow down or stop the optimization. Just install and activate it to see if that fixes the issue.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Blocked Server Requests<\/h3>\n\n\n\n<p>Another cause could be that Imagify\u2019s servers are being blocked from performing the optimization. If you see errors in <strong>Imagify Tools<\/strong> like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Self-requests (wp-cron, admin-ajax, wp-post)<\/li>\n\n\n\n<li>Error codes such as 403, 404, 502, 503, or cURL 28<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"325\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/03\/self-request-blocked-1024x325.png\" alt=\"\" class=\"wp-image-644\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/03\/self-request-blocked-1024x325.png 1024w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/03\/self-request-blocked-300x95.png 300w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/03\/self-request-blocked-768x244.png 768w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/03\/self-request-blocked.png 1602w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This could mean a firewall, security plugin, or server settings are blocking the connection. Contact your hosting provider for help, as they can monitor and help resolve the issue.<\/p>\n\n\n\n<p>Make sure that access is allowed to the following IP address and URL:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>https:\/\/app.imagify.io\/<\/strong><\/li>\n\n\n\n<li>46.30.211.203<\/li>\n\n\n\n<li>46.30.212.204<\/li>\n\n\n\n<li>46.30.212.205<\/li>\n\n\n\n<li>46.30.212.206<\/li>\n\n\n\n<li>46.30.212.207<\/li>\n<\/ul>\n\n\n<div class=\"message-panel orange\"><i class=\"fa fa-info-circle\"><\/i><span class=\"message-panel__title\">Note<\/span><span class=\"message-panel__message\">If you experience a problem when clicking on \u201cGenerate Missing WebP Versions\u201d button in Imagify Settings., refer this <a href=\"https:\/\/imagify.io\/documentation\/generate-missing-webp-versions-feature-is-stuck\/\">guide<\/a>.<\/span><\/div>\n\n\n\n<p>If the above steps do not resolve your issue, install our <strong><a href=\"https:\/\/github.com\/wp-media\/imagify-helpers\/raw\/master\/various\/imagify-tools\/imagify-tools.zip\" target=\"_blank\" rel=\"noopener\">Imagify Tools<\/a> <\/strong>plugin, which provides detailed information about any problems that could be occurring. After installing the plugin, please send us a screenshot of the info page by creating a ticket at <a href=\"https:\/\/imagify.io\/documentation\/support\/\">our support page<\/a>. You can use <strong>imgbb<\/strong> or other free service to send us the link to your screenshots.<\/p>\n\n\n\n<p>Once we have this information, we may be able to offer better advice on how to fix the issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you optimize images (manually or automatically) through the Media Library or Bulk Optimization, sometimes the process gets stuck or errors appear. You might notice one of the following: Why Does This Happen? This issue can occur for many reasons, but the best way to find out the cause is by installing our Imagify Tools [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[15,11],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-image-optimization","category-wordpress-plugin","tag-image-optimization","tag-wp-plugin"],"_links":{"self":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":22,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":1187,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/44\/revisions\/1187"}],"wp:attachment":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}