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,