• Hey there 🙂

    It’s trying to compress pdf files and gives the following error:

    This media lacks the required metadata and cannot be optimized.

    And it also mostly returns the following error:

    Our server returned an error (0 - getaddrinfo() thread failed to start).

    Image of the errors: https://ibb.co/56mjSMX

    I have the premium version too, we bought it for a month, and it’s happening on all of our websites for the past month.

    To fix this I have to click Try again around 3-4 times for each image and wait a ton of time.

    What are we doing wrong?

    Or is this really a server error like the error message states?
    If so can we contact support to get another month that works for free without paying again?

    WordPress 5.8
    Imagify 1.1
    PHP: 8.0.8
    We're also using the WP-Rocket 3.9.1.1 and Cloud Flare on development mode
    Max execution time: 450
    Memory limit: 256MB
    Max memory limit: 384MB

    Thanks for the helpers, let me know if you need any other details, this happens on multiple sites and on multiple hosts.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ‪Orr Burgel‬‏

    (@burgil)

    We also noticed that the PageSpeed drops after making a WebP version of the entire site on imagify, turning on WebP compatibility in WP-Rocket, purging all caches from cloudflare, varnish, wp-rocket, regenerating and waiting for it to preload for a long time.
    The entire process can take up to 1.5 days for 500 images since I have to click try again 5 times per image (the error above).

    I literally made a script that does it for me with 3-5 seconds intervals now until there isn’t any server errors.

    Testing the PageSpeed on Google afterwards does remove the error “Serve Images in Next Gen Format” but reduce the Desktop speed every time from 100 to 90 over multiple tests.
    (Average of 10 points lose in the desktop version alone, but not on the mobile version)

    Is there a helper plugin that only uses WebP for Mobile cache version?
    Or any other tip on why it’s happening or how to fix it?

    Please any help will be highly appreciated, feel free to contact me on private.

    Thread Starter ‪Orr Burgel‬‏

    (@burgil)

    At one point, after a full month of having this issues on multiple sites, it felt less time consuming to come here and report the issue than to keep pressing try again again and again 🙂

    I will love to help you solve it and make Imagify great again <3

    Thanks!

    Thread Starter ‪Orr Burgel‬‏

    (@burgil)

    Reporting that I just found a new type of server sided error:
    Our server returned an error (0 - Operation timed out after 45000 milliseconds with 0 bytes received).

    Plugin Author WP Media

    (@wp_media)

    Hi @burgil!

    This is Joseph from Imagify, and I’ll gladly assist you here!

    I’m really sorry you’re having these errors.

    Regarding the PDF files and the “This media lacks the required metadata and cannot be optimized” errors, we believe this is due to the _wp_attachment_metadata value not being added to your wp_postmeta table in your WordPress database when you are uploading PDF files.

    We are not entirely sure why, but we think it is a hosting issue, so it may be best to contact your host about that. It’s possible that it could be due to something else as well.

    Regarding the Pagespeed scores dropping after WebP display is enabled, to be honest, I can’t be sure why that is happening without seeing the specifics of the scores before and after. It’s possible it could just be the test coming to different scores at different times. That could be based on differing network speeds during the different tests.

    I’m really sorry, I’m just not sure why enabling the WebP display would lower the score. We generally see scores increase when this option is enabled.

    Regarding the getaddrinfo() errors, you could try taking the following steps and then test if the issue is resolved:

    ​• Uninstall Imagify (Any optimized images will remain optimized)
    • Log out of your WordPress
    • Clear all browser cache and cookies
    • Do a hard refresh of the browser page (usually Ctr + F5 on Windows, Command + R on Mac)
    • Log back in
    • Re-install and re-activate Imagify

    Then see if the issue is resolved after doing that. Go back to the Imagify plugin settings page and re-enter your API key to see if it will work.

    If that doesn’t work, you could also try the following changes:

    • Add the following to your wp-config.php file (before the “That’s all! Stop editing…” message) to increase the amount of memory and time available for image optimization (this can be a larger number if your host/server will allow):
    define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
    set_time_limit(0);

    • Reduce the number of images optimized simultaneously from 4 down to 1 to ease server load by installing this helper plugin:
    https://github.com/wp-media/imagify-helpers/raw/master/optimization/imagify-bulk-optimization-buffer/imagify-bulk-optimization-buffer.zip

    • It may also help to disable any thumbnail sizes from the “Files Optimization” section that you’re absolutely sure your theme/site doesn’t use. The fewer of these thumbnail sizes that need to be optimized, the lighter the load on your server. For example, say you have 20 thumbnail sizes you’re optimizing (as some users do, or even more sometimes) and you have WebP generation enabled, that would mean that for each original image you’re optimizing, 42 individual images need to be either optimized or generated. Given this, the more thumbnail sizes that are enabled for optimization, the longer the process can take.

    Sometimes when optimization is very slow or not working well, it can be due to an image manipulation module your server uses called Imagick. You can try using the following helper plugin to make your server use another module called GD instead:
    https://github.com/wp-media/imagify-helpers/raw/master/optimization/imagify-dont-use-imagemagick/imagify-dont-use-imagemagick.zip

    If the above didn’t resolve your issue, you can install our Imagify Tools plugin, which we have developed to offer more in-depth information about any issues that could be occurring:

    https://github.com/wp-media/imagify-helpers/raw/master/various/imagify-tools/imagify-tools.zip

    Once installed, go to Imagify Tools > Infos, and let us know if any of the settings are highlighted in red and what error messages are being displayed. Screenshots would be appreciated, if possible. Once we have this information we may be able to offer better advice on how to fix your issue.

    If you’d prefer to continue the support and share the private screenshots confidentially, you could contact us using https://imagify.io/contact/ and feel free to reference a link to this thread as well.

    I’ll look forward to your response and I’ll be glad to continue assisting however I can!

    Best regards,

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

The topic ‘Tons of errors’ is closed to new replies.