Support » Plugin: Media Sync » Files Missing From Media Library

  • Resolved dgibb

    (@dgibb)


    I have the latest WordPress and PHP 7.3 installed and a new theme (Atmosphere Pro).
    I FTP’d files from our old server to the new server and used your handy plugin to import MOST of the files. We have folders going back to 2016 and they mostly contain small jpg files.

    When I filter the folder hierarchy to see if any files are “missing” from Media Library, it finds about 200 files in various folders that did not get imported. I repeat the import process for those files. I tried a folder at a time, then 1 file at a time, and I get the same result. It says the file was imported, but it is still showing up in the “missing files filter” AND it is not in the Media Library when I search the library for that filename.

    Here’s the debug Console message showing the Success messages.
    JQMIGRATE: Migrate is installed, version 1.4.1
    ajax_script.js?ver=5.4.1:103 [Media Sync][1] Successfully imported: media-sync-item-2016_05_cody1-jpg
    ajax_script.js?ver=5.4.1:103 [Media Sync][2] Successfully imported: media-sync-item-2016_05_conoor_kelly2-jpg
    ajax_script.js?ver=5.4.1:103 [Media Sync][3] Successfully imported: media-sync-item-2016_05_dsc02377-jpg
    ajax_script.js?ver=5.4.1:103 [Media Sync][4] Successfully imported: media-sync-item-2016_05_gigi-jpg
    ajax_script.js?ver=5.4.1:103 [Media Sync][5] Successfully imported: media-sync-item-2016_05_murphy1-jpg
    ajax_script.js?ver=5.4.1:103 [Media Sync][6] Successfully imported: media-sync-item-2016_05_patwelch-jpg

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author erolsk8

    (@erolsk8)

    Wow that’s quite strange. Thank you for the details, I also see your comments in that other related topic. But right now, I can’t think of any reason why this keeps happening. These seem to be just some regular jpg files, nothing special about them. And it’s not that you’re importing too many files at once.

    It’s a wild guess, but is it possible that there is already a file with the same or similar name in the folder?

    There are no duplicates in the folder or even across folders.
    Today I used ftp and added a new folder under uploads called logos. Media sync doesn’t see this new folder, but it sees another folder I added last week. Is there a way to force a new scan or something that will show the new folder?

    Each of the files in my logos folder follow this naming convention. Could that be problematic?
    bichonfurkids.org/wp-content/uploads/logos/logo_furkid_97x150.png

    My files used a naming convention with the height and width in the name, like this
    /wp-content/uploads/logos/logo_furkid_97x150.png

    I had to rename the files and leave off everything after the “x” and it found the new folder and files.

    That still doesn’t resolve my initial issue of files not being recognized by media sync. The filter shows which files it thinks are missing.
    I select one of those files and try to sync it.
    filename Angie2Head1.jpg
    It says it synched 1 file.
    I re-scan and filter again, and that file is still coming up as not being synched.

    Plugin Author erolsk8

    (@erolsk8)

    Hi @dgibb, thanks for the details.

    Is there a way to force a new scan or something that will show the new folder?

    This plugin doesn’t cache folders, so when you click “Scan Files” it should find current folders.

    Each of the files in my logos folder follow this naming convention. Could that be problematic?

    Yes, because this plugin skips WordPress generated thumbnails by checking if the file name ends with thumbnails size (e.g. 97×150). If it wasn’t ignoring those files, you’d have to select files only by one, which misses the point of this plugin.

    That still doesn’t resolve my initial issue of files not being recognized by media sync.

    Unfortunately, I can’t think of any reason why that is happening. So I don’t even know where would I start in fixing this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.