• HI. All my media library image links are showing as broken. When I upload a new image it is displayed, but not existing images. Existing image are linked via a path to a folder which may be connected to the EWWW Image Optimizer plugin. Rather than going to sitename/wpfoldername/wp-content/uploads/2014/07 they go to sitename/wpfoldername//wpfoldername/wp-content/uploads/2014/07 .
    To remove the extra wp folder name I tried to search and replace all instances of wpfoldername//wpfoldername/ with wpfoldername/ but the search came up with just 11 instances of wpfoldername//wpfoldername/. There are 59 images on the site and none are displaying, so there must be more instances of the doubled wp folder name. I did the same search in PHPMyAdmin in all table and fond no instances!
    Any ideas?

    https://www.ads-software.com/plugins/ewww-image-optimizer/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    That doesn’t look like something EWWW IO would do, especially since uploading is working fine. The plugin does the same thing for new images as it does for existing ones. However, I do have some ideas on how to search for it.

    First, the full path isn’t (normally) stored in the database and the specific table you want to look at is wp_postmeta. With only 59 images, you probably don’t even need to search, you’ll be able to see the mangled entries right away.

    Some additional information on how WP generates/stores the paths. A normal path in the database would look like 2014/07/somefile.jpg which is relative to the uploads/ folder. Based on the paths you’re seeing, it sounds like some plugin seriously mangled the paths, or you’ve changed some of the built-in wordpress constants.

    At any rate, hope that helps. If you do somehow pin it down to the EWWW IO plugin, let me know right away, and we’ll track it down. But like I said before, that seems highly unlikely.

    Thread Starter Robert Hart-Fletcher

    (@robbuddy)

    Hi nosilver4u
    Thanks for that very comprehensive response. I’ll follow through and let you know how I get on.
    Robert

    Thread Starter Robert Hart-Fletcher

    (@robbuddy)

    Hi nosilver4u
    I fixed it!
    It’s not the most elegant solution, but the easiest.
    I copied the wp-content folder from the original WordPress folder into the rogue folder.
    The media library links were all then fulfilled and the site is back to normal.
    So looks like it was not an EWWW IO problem, but as you say something that wrecked the WP path.
    Thanks for your help.
    – Robert

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Broken Image Links’ is closed to new replies.