Support » Plugin: Smush - Lazy Load Images, Optimize & Compress Images » WordPress Smush Images Error: Could not find /srv/htdocs/wp-content/uploads

  • jsnz

    (@jsnz)


    Hi there, I am having a problem with my WordPress images in my most recent blog posts. Usually my images get automatically Smushed when they are uploaded, but now they don’t get auto-Smushed, and when I try to Smush them manually, and I get the following error: “Could not find /srv/htdocs/wp-content/uploads/2020/10/20201003_153324-300×169.jpg”.
    – WP Support have confirmed that my images are in the correct folder in the media library.
    – when I test the URL: https://tinytramper.com/wp-content/uploads/2020/10/20201003_153324-300×169.jpg – I am able to see the image.
    – I have de-activated, uninstalled and re-installed Smush.
    – As per a similar thread on this site, I have tried disabling “Speed up image load times” option in “Performance” section of Jetpack settings, which did nothing.
    – I have tried creating a new blog post and adding images, and the same thing happens – nothing is Smushed.
    – Interestingly when I posted the link on FaceBook, Facebook was also unable to find the featured image for this post, so instead returned a thumbnail of my main website itself and NOT the blog post.
    Thanks in advance for your help, looking forward to hearing your thoughts 🙂

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Support Jonathan – WPMU DEV Support

    (@wpmudev-support9)

    Hi @jsnz,

    Thank you for contacting us.

    I tried to access the image directly at https://tinytramper.com/wp-content/uploads/2020/10/20201003_153324-300%C3%97169.jpg but got a 404 error: https://snipboard.io/dm4Ta2.jpg

    Could you please check for any other image optimization features with any other plugin(aside from Jetpack), or theme options? Please also try to upload the image once more and check if you are able to Smush it.

    Best,
    Jonathan S

    jsnz

    (@jsnz)

    Attn: Patrick Freitas
    Hi Patrick, thanks for your Email. I have responded as you recommended.
    Kind regards, Julie

    jsnz

    (@jsnz)

    @wpmudev-support9 thanks for your reply. No, I have no other image optimsing plugins, and no, Smush is not optimising any of my images (I have started a new blog post and the same is happening with all my images). Thanks

    jsnz

    (@jsnz)

    .. and strangely I also now get the 404 error when I try to view the image. (Yeseterday I was able to view the image using url: https://tinytramper.com/wp-content/uploads/2020/10/20201003_153324-300×169.jpg).

    jsnz

    (@jsnz)

    @wpmudev-support9
    Ah… I may have inadvertantly deleted that image. Here are another example of a couple of images which appear in my blog post, which I cannot Smush.
    https://tinytramper.com/wp-content/uploads/2020/10/20201003_153324-300×169.jpg
    https://tinytramper.com/wp-content/uploads/2020/10/20201003_154214-Copy-169×300.jpg
    If someone could help me I would be very grateful..

    Plugin Support Jonathan – WPMU DEV Support

    (@wpmudev-support9)

    Hi @jsnz

    Thanks for providing the additional image links. Unfortunately, these images are also showing 404 not found error(clicked on the links), which would explain why Smush is not able to find them and compress them. Could you please verify an image that you currently have and that it has not been removed, then let us know the error you receive when trying to Smush it?

    You can also try uploading a new image for testing purpose.

    Best,
    Jonathan

    jsnz

    (@jsnz)

    Hi Jonathn @wpmudev-support9
    Ok maybe I am giving you the wrong links to look at. May we continue the conversation by Email? Then I can attach screenshots to show you the images that I am unable to Smush, as they appear in my WordPress site media library. Or perhaps you can take a look in my WordPress media library if I allow you access?

    Just to confirm, all the images appear OK in my blog post https://tinytramper.com/black-birch-blarich-loop/ it’s just that Smush can’t find them to Smush them from the WordPress media library as it usually would.

    I have tried uploading several new images to the media library – in a new post, all of which gave the same error. So going back to original published post, When I try to Smush images from the media library I get the folowing error:

    – Could not find /srv/htdocs/wp-content/uploads/2020/10/Black-Birch-Blairich-Loop-300×114.jpg
    – Could not find /srv/htdocs/wp-content/uploads/2020/10/20201003_154214-Copy-169×300.jpg
    – Could not find /srv/htdocs/wp-content/uploads/2020/10/20201003_153324-300×169.jpg
    – Could not find /srv/htdocs/wp-content/uploads/2020/10/20201003_145657-300×169.jpg

    Thanks

    • This reply was modified 1 month ago by jsnz.
    • This reply was modified 1 month ago by jsnz.
    jsnz

    (@jsnz)

    Hi Jonathan @wpmudev-support9
    Just to try again for you with a few URLs to test. All these URLs worked in Firefox and Chrome browser for me this morning. I have checked via an FTP client and these images are all in my WP ‘uploads’ folder (I have screenshots I can show you by Email).

    https://tinytramper.com/wp-content/uploads/2020/10/Black-Birch-Blairich-Loop.jpg
    https://tinytramper.com/wp-content/uploads/2020/10/20201003_154214-Copy.jpg
    https://tinytramper.com/wp-content/uploads/2020/10/20201003_153324.jpg
    https://tinytramper.com/wp-content/uploads/2020/10/20201003_145657.jpg

    When I try to Smush them, the errors I get are:
    – Could not find /srv/htdocs/wp-content/uploads/2020/10/Black-Birch-Blairich-Loop-300×114.jpg
    – Could not find /srv/htdocs/wp-content/uploads/2020/10/20201003_154214-Copy-169×300.jpg
    – Could not find /srv/htdocs/wp-content/uploads/2020/10/20201003_153324-300×169.jpg
    – Could not find /srv/htdocs/wp-content/uploads/2020/10/20201003_145657-300×169.jpg

    In my WP uploads folder I compared images from Setpember (Smushed) and October ( not Smushed.. and I found multiple sizes of the same image in my media library in September, and only one full size image for October.
    The following post tells me that WordPress should be creating thumbnails for me when my images are being uploaded (https://premium.wpmudev.org/blog/wordpress-image-sizes/) but mine don’t appear to have been created in October. Do you think this could be anything to do with the problem?

    Thanks

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @jsnz

    Thank you for the information [redacted].

    Could you please try to regenerate the thumbnails using this plugin? https://wordpress.org/plugins/regenerate-thumbnails/

    Once done, run a new bulk Smush.

    Let us know the result you got.
    Best Regards
    Patrick Freitas

    Hi Patrick,
    I tried the regenerate thumbnails as you suggested but it did not work. I got red crosses next to them all (which I had sent by Email in screenshots to you.. but then realised I could not reply to your Email.. only via this page).
    When I try to re-smush after that, I get the same error as before ‘could not find/srv/htdocs/wp-content/wploads etc..

    If you can let me know how to add screenshots to this post or if we could Email, it would be much easier than trying to explain!

    Cheers, Julie

    Plugin Support Jonathan – WPMU DEV Support

    (@wpmudev-support9)

    Hi @jsnz,

    Thanks for providing all these details so far. It may be possible that how images resize is being done on WP.com image CDN server, Smush is not able to find them when trying to Smush them. Could you proceed to turn this off by adding wp-config file define that their support mentioned in their reply and then re-upload a fresh image to see if this image’s thumbnails get Smushed?

    [redacted]

    Look forward to your reply.

    Best,
    Jonathan S

    Yes. WordPress have now told me they have changed the way they handle thumbnail images and that the image resize is being done on their WP.com image CDN server, which according to them will “save me heaps of space”.

    Reading up on the question of using Smush vs WordPress image CDN, it seems that there is some debate over which method is ‘best’ method to optimise images – I would be interested to hear your opinion on the differences between WP CDN and Smush, and the advantages of me continuing to use Smush now that WP have implemented this change?

    If WordPress have made this seemingly major change, can you tell me, is this not a problem for many of your other Smush users??

    You recommend in your reply to tweak the WordPress Config file via FTP. I’m no expert in code or FTP so I would rather not start fiddling around with something I don’t know. [redacted]

    I would be interested to hear your thoughts on Smush Vs WP CDN servers for optimising images before I proceed further.

    Many thanks,
    Jules

    Plugin Support Jonathan – WPMU DEV Support

    (@wpmudev-support9)

    Hi @jsnz,

    Thanks for confirming. I checked the email but the screenshot you shared with the new password was not visible. Could I bother you to resend it to our contact email and set attention to me so that I can check?

    Also, would it be ok for me to make the adjustment on the wp-config so that you can test if this indeed would be the cause of the current Smush issue?

    As far as your question in regard to Smush vs WP CDN, there really is no correct answer here as it really depends on what type of optimization you would prefer since both options have their own advantages. The WP CDN only affects users that are using WordPress.com hosting which is different from WordPress.org as the latter is set on any hosting provider and not strictly with just WordPress.com(You can see the difference here:https://wordpress.org/support/article/wordpress-vs-wordpress-com/). If once the test with defines are done, and we can determine this new change from WP.com will conflict with Smush, I will forward this to our Plugin Team, so they can take a further look.

    Best,
    Jonathan S

    Plugin Support Kasia – WPMU DEV Support

    (@wpmudev-support2)

    Hello @jsnz ,

    I’ve responded to your email.

    kind regards,
    Kasia

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    @jsnz Please don’t offer to send or post logon credentials on these forums: https://wordpress.org/support/guidelines#the-bad-stuff

    You may trust this developer/author, but it normalizes a dangerous practice. It’s a fine line, but one that we need to enforce. Thanks for your cooperation.

    @wpmudev-support9 While I know you have the best of intentions, it’s forum policy that you not ask users for admin or server access. Users on the forums aren’t your customers, they’re your open source collaborators, and requesting that kind of access can put you and them at high risk.

    If they are paying customers (such as people who bought a premium service/product from you) then by all means, direct them to your official customer support system. But in all other cases, you need to help them here on the forums.

    Thankfully are other ways to get information you need:

    You get the idea.

    We know volunteer support is not easy, and this guideline can feel needlessly restrictive. It’s actually there to protect you as much as end users. Should their site be hacked or have any issues after you accessed it, you could be held legally liable for damages. In addition, it’s difficult for end users to know the difference between helpful developers and people with malicious intentions. Because of that, we rely on plugin developers and long-standing volunteers (like you) to help us and uphold this particular guideline.

    When you help users here and in public, you also help the next person with the same problem. They’ll be able to read the debugging and solution and educate themselves. That’s how we get the next generation of developers.

Viewing 15 replies - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.