Smush Pro CDN not showing my images

There are multiple 404 errors in Console when I enable Smush Pro CDN.

  • Adam
    • Support Gorilla

    Hello Marianna

    I hope you’re well today and thank you for your question!

    There’s been some short temporary “spikes” in our Smush CDN usage overall (not related to you site) that might have caused temporary issues few hours ago but I see that there are still images missing.

    I did some checks on site and apparently it comes down to two images (though they seem to appear in more than two places) that are:

    https://_yoursite_/wp-content/uploads/2019/07/DesignBurst-logo-320-wide.png

    https://_yoursite_/wp-content/uploads/2019/07/app-19-2.png

    With CDN disabled they are not loading either and I found out that the first one is on the server but as a JPG image and not PNG. So the link above won’t load it (thus CDN will not be able to properly process it either) but with .jpg extension it does work

    https://_yoursite_/wp-content/uploads/2019/07/DesignBurst-logo-320-wide.jpg

    The second one doesn’t seem to exist at all. They both are referenced on the site though, both as .png images.

    That leads me to thinking that for the first image:

    – did you ever use the convert PNG to JPEG option in Bulk Smushing in Smush plugin?

    – if yes, that would explain why the image is converted to JPG but still referenced on page as PNG – such converted images must have their URLs updated manually on site

    – I can see that this option is currently disabled but if it was ever used and the image was converted but URL was not updated, that would be happening

    As for he second image, it seems like it was physically removed from the server.

    That said, I think the solution for this would be as follows: for the first image you’d need to find where it’s added to the site (it’s a logo image so probably some theme logo options, maybe somewhere in the content and/or footer too) and edit it, replacing .png file extension with .jpg.

    The second image should physically be re-uploaded to the site (via FTP) to the “wp-content/uploads/2019/07/app-19-2.png”.

    Clearing caches (and possibly disabling and re-enabling CDN if clearing cache alone doesn’t work) should fix the issue. Could you give it a try, please?

    Kind regards,

    Adam

  • Marianna
    • Irish Design Hero

    Hi

    Thanks for that I made the changes there – it must have been the convert to png that broke the site. Maybe a warning on tht option because it seems a straightforward thing but if it doesn’t automatically update the references then its easy to break the site.

  • Adam
    • Support Gorilla

    Hello Marianna

    Maybe a warning on tht option because it seems a straightforward thing but if it doesn’t automatically update the references then its easy to break the site.

    It actually does say that. There’s a not in the option description below the option switch that states:

    The resulting file will have a new filename and extension (JPEG), and any hard-coded URLs on your site that contain the original PNG filename will need to be updated.

    I can see though how such kind of “fine print” can easily be missed so I’ve asked our developers if we could make it “stand out” more in future versions of the plugin, just to help avoid any confusion and issues that this may cause :slight_smile:

    Best regards,

    Adam