• https://centraloh.yourcrimesite.com/burglary-on-south-side-of-columbus/

    I’ve recently moved a single site from one host to a multisite install on another host. Everything seems fine except the images. The images themselves are not displaying, only placeholders and links to the images (and those are both going to the page/post itself, even though the media is set to the media file, not the attachment page). If I look at the images in the gallery of the post itself in the editor (example above), the images ARE in the media library AND in the post as ATTACHED to this post, and with the correct url for this site (the images are NOT showing the old’s domain’s url)… but even with that, not showing in the actual post on the front end. And this happens with every themes (all the Twentys…, too).

    Thoughts?

Viewing 7 replies - 1 through 7 (of 7 total)
  • I was going to say this: Try updating your Permalinks in the WordPress menu. Just go in there and re-save it.

    But then I inspected the code by right-clicking on the image and the img tag doesn’t even have an image to link to. As you can see from the code I grabbed, the src is there but the link to the image isn’t. Easiest solution is to get the Broken Url plugin and look for all those images and link to the correct link from the Media Gallery. If you don’t have many posts, I recommend re-inserting the images then you’ll get the correct link and size.

    <img src="" alt="COW 19-36 3" title="COW 19-36 3" style="opacity: 1;">

    Thread Starter Angie Meeker

    (@ameeker)

    I CAN do it by hand, but there are about 1100 images, so if I can figure out why it’s doing that and fix another way, I’d rather.

    Why would the src break on the front end, but still be correct when clicking all the way through to the media gallery?

    When you write/edit your post, you can see the images, but when you look at the front when logged out, you don’t see them?

    Thread Starter Angie Meeker

    (@ameeker)

    No, when I’m logged in looking at post editor, I see the gallery placeholder. If I click on that, I can see the actual images themselves. If I click on the indiv images, and then “edit image” I can get to their url’s and those url’s are correct.

    Can you turn debugging on to see what errors you are getting? The source of image not displaying usually is caused by a function gone wrong.

    Have you tried fixing that cache error that is showing up? disable any caching and fix that error and see if it fixes the issue.

    After that I would try checking your media path. If you moved to a new server that might be a reason.

    Then I would disable plugins that are related to images and see if a plugin is breaking the src.

    I had something similar happen on a project. When you imported the images did you use the XML WordPress import/export tool? After I did, for me, the images were in the media library but weren’t showing up on the site, the markup was but no images; just placeholders. So, I ran this plugin and it batch downloaded the images from the previous hosted site to the new site on the new host–with the correct image path. Couldn’t hurt to give it a shot. https://www.ads-software.com/plugins/media-tools/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Gallery images linking to attachment page’ is closed to new replies.