• [ Moved to the Fixing WordPress sub-forum. ]

    Hi. Many of the images at blog.xbydesign.biz are showing a broken image icon. When you click on the icon, the image pops up as expected (even in the case of custom urls).
    The site in question is 4th House on the Right and https://blog.xbydesign.biz/one-room-challenge-week-3-deciding-on-textiles/ here is a specific page you can look at for reference. FYI, it is on a multisite installation

    After some time, trial, & error – deactivating plugins, playing with .htaccess, double checking file locations, etc – I have narrowed this down to an image sizing issue. I have most of my images set to a custom size in the “Add Media –> Image Display” dialogue box. When I edit a post & edit the media item, simply changing the size under display settings fixes the issue.

    That’s great BUT… I would like to know if there is a better way to do this than to edit each individual post. I have since changed the default size for my medium images and tried regenerating thumbnails with no luck.

    I have started fixing posts 1 x 1 because the site is live, but this will take some time because there are lots of images. I will also consider plugins that may somehow allow me to bulk edit the images. (??)

    Any help would be absolutely GREAT! Thanks in advance y’all!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter N’Ckyola

    (@nckyola)

    Hi Rajesh.
    Thanks for the suggestion, but I have already tried that.
    After more digging, I have found that every post has something similar to the following:

    <a href="https://blog.xbydesign.biz/wp-content/uploads/sites/9/2016/10/Fabric-Options.png"><img src="https://blog.xbydesign.biz/wp-content/uploads/sites/9/2016/10/Fabric-Options-400x600.png" alt="Deciding on textiles - Upholstery" width="400" height="600" /></a>

    The problem is in the src – when I remove size (” – 400×600.png”) off the src file (from resizing within the post itself), all is perfect. I started writing a query to change this in the database, but ran into a problem because the string will change and the SQL “replace” operation doesn’t work with wildcards.

    Back to the drawing board.

    • This reply was modified 7 years, 8 months ago by N'Ckyola. Reason: added code
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Images within posts show broken image icon’ is closed to new replies.