Viewing 12 replies - 1 through 12 (of 12 total)
  • Tara King

    (@sparklingrobots)

    Hi @garyploski!

    I’m curious — are the images still present on the server?

    Can you see them in your Media Library?

    Let us know and perhaps we can sort this one out!

    Thread Starter garyploski

    (@garyploski)

    Heya, @sparklingrobots! Thanks!

    Curiously enough, when I was advised about the issue, the images were gone. Since then, I used a backup to put them back into the appropriate folder with permissions set to 755 (folders) and 644 (images).

    Thread Starter garyploski

    (@garyploski)

    Sorry, I missed your second question, @sparklingrobots. I see gray thumbnails in the Media Library. Curiously enough, when I click on a gray thumbnail, then edit image, the image loads.

    Pleased to see your issue as I think I have the same problem ,I am also confused and in need of light on this same issue. Need help.

    TelltheBell

    Tara King

    (@sparklingrobots)

    Thanks for the response @garyploski!

    I see two separate issues here:

    1. The images were missing from your server.
    2. The site is not serving the images now that they are back in place.

    For the first one, you may want to contact your host to see if they can help you find out why that happened. They may have access to logs or other information that we don’t have here on the forums.

    For the second one, if you use the Media Library to insert the image into the page, does it work?

    @perez628 – I’m sorry to hear you have a similar problem. Please open a new thread detailing your issue, rather than trying to solve both issues here.

    Thread Starter garyploski

    (@garyploski)

    Per your suggestion @sparklingrobots, I’ve reached out to Site5 support again, though with a specific request for logs.

    When I uploaded a new asset, the UI looks the same – a gray box appears. When I click on the gray box, nothing appears in the image UI, and when I click ‘edit image’ the image appears with the edit options.

    Also, when I went to the new asset’s unique URL, the asset did not load.

    This is so peculiar!

    @perez628, please let me know what your issue number is. Sorry you’re seeing the same issue!

    Tara King

    (@sparklingrobots)

    I had a few more thoughts:

    If you’ve comfortable trying out WP-CLI, there’s a command to regenerate thumbnails that might help out: https://developer.wordpress.org/cli/commands/media/regenerate/

    If I were in your shoes, I’d delete one of the broken images entirely, and re-uplaod and re-insert it. If you can get a single image working, then perhaps we’d learn something about why the others aren’t working.

    Tara King

    (@sparklingrobots)

    Found a plugin method for regenerating the thumbnails — I haven’t tried it myself, though. https://wordpress.org/plugins/regenerate-thumbnails/

    Thread Starter garyploski

    (@garyploski)

    Thanks, @sparklingrobots.

    I tried regenerating the thumbnails – no change. Per your idea of regenerating the thumbnamils, I ran an ssh command for all files and folders to ensure the correct permissions are in place – no change.

    I restored the site to a backup from May and continue to experience the same issue running 5.8.

    I tried disabling all plugins and switching to twenty twenty-one – the same issues persist.

    After creating a new blog post with a single image, I found that the issue is persistent with the new image in the Media Library, and it does not load in the blog post – http://garyploski.com/2021-test-post

    To say that I’m at a complete loss would be more than accurate. I haven’t the slightest idea of what could be causing this.

    Thread Starter garyploski

    (@garyploski)

    Here’s an interesting find. My other multi-site on Site5 is working properly though it is running 5.7, while this site is running 5.8. Does this lead you to think about any possible changes that took place between .7 and .8, @sparklingrobots ?

    Thread Starter garyploski

    (@garyploski)

    It was an .htaccess issue, @sparklingrobots and @perez628 !

    I found that someone else ran into the same issue and applied the fix. All images are loading properly now!

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
     
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
     
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    Tara King

    (@sparklingrobots)

    I’m so glad it’s sorted out @garyploski! Thanks for coming back and explaining the fix for the rest of us.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Multisite images don’t load due to URL change’ is closed to new replies.