• Resolved passaconcursos

    (@passaconcursos)


    Hi,

    I am facing an issue where auto optimization keep stuck in the “In Progress” stage.

    If i do a bulk optimization later on, all the previously imported images are successfully optimized.

    I am using version 2.9.6 with default settings, this means no parallel optimization and no programmed optimization.

    I activated the debug setting and i get no information in the Dynamic Image Debugging page even after importing some images, waiting some time with the In Progress stuck problem and then bulk optimizing these images successfully.

    I have been looking at my wordpress debug log file while importing images and found no error while importing image.

    My config debug data is here and a bulk optimization debug data is here.

    If you need more data to debug the problem, i’ll be happy to provide it.

    Thanks for your help.

    https://ww.wp.xz.cn/plugins/ewww-image-optimizer/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shane Bishop

    (@nosilver4u)

    In the plugin folder there is also a debug.log file, delete that so we have a fresh start, and then upload a couple images with EWWW’s debugging turned on. Wait about minutes (go get coffee or something) and then either post the new debug.log or you can send it to me via https://ewww.io/contact-us/

    Plugin Author Shane Bishop

    (@nosilver4u)

    So, based on the debug.log, it seems that your site (or a firewall or something) is just plain blocking the async requests to optimize those images in the background.
    I’ve built in a check in the next release (later today hopefully), that tests the background processing and keeps it disabled if it isn’t successful, so I think that will take care of things for you.

    Thread Starter passaconcursos

    (@passaconcursos)

    Ok, I have found the reason to this problem.

    It seems that ewww does the async request work through wp-cron. This is why it was not working and getting blocked on my server.
    My website is configured to use SSL. As i am using Cloudflare for SSL, the certificate on the server side do not need to be renewed to appear valid to browser, on the other hand, when it expires it does not appear as a valid certificate when called locally on the server.
    My server is configured to use a cron job to make calls to wp-cron. Since the certificate on my server expired a few days ago, cron tasks were not executed due to the fact that the curl command was rejecting not valid certificates URLs. Removing the certificate check for curl made wp-cron tasks to be normally executed again.
    I made new tests and now automatic compression works!

    So the problem was related to my server configuration.

    Thanks for your help solving this issue!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Not Auto optimizing, only bulk optimization works’ is closed to new replies.