WordPress.org

Ready to get started?Download WordPress

Forums

Imsanity
Search images: Doesnt find correct images in uploads folder (4 posts)

  1. jrc_gw
    Member
    Posted 2 years ago #

    Hi,

    when i click on the search images button, the images found are not in the uploads folder - it seems to pick up the old images. Any ideas as to why this is?

    Thanks.

    http://wordpress.org/extend/plugins/imsanity/

  2. Jason
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, Imsanity reads from the wp_content database table of WordPress which contains a record for all each file upload - it doesn't scan the filesystem. So if you perhaps moved the location of WordPress or something like that it's possible the images are no longer in the expected location..?

  3. jrc_gw
    Member
    Posted 2 years ago #

    Thanks for getting back to me. The process i went through was:

    1) Backed up all original images in the uploads folder from server to local.

    2) Delete all server side images (in the uploads folder) via FTP (i had scaled to the wrong size so needed the originals back up).

    3) Reuploaded the original images.

    Would this most likely have been a permissions issue? Or something else? The directory structure was not changed or any other changes made to the backup, so figured there wouldn't be a problem.

    In the end, i manually uploaded all images again as a fix, but would be good to have an idea of how to deal with this issue if i face it again.

    Thanks.

  4. Jason
    Member
    Plugin Author

    Posted 2 years ago #

    Your explanation sounds logical but I don't think it's an imsanity issue. Imsanity is revealing some type of discrepancy with what is in your WP database and what is actually on the disk. Whether that is due to moving files around or something, I can't really tell from the information you've given me.

    I think to troubleshoot what I would do is to locate one specific problem image instead of working with the whole batch. Find one image in the WP database and take a deep look at the filesystem paths and see what was going on. The WP attachment table actually pretty simple.

    I never rule out the possibility of a bug in my code, but so far it sounds more like a path issue on the server.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags