wp-sync-db / wp-sync-db-media-files

Sync media libraries between WordPress installations - an addon for wp-sync-db
GNU General Public License v2.0
530 stars 142 forks source link

Copying from server to local machine #4

Open BrandonShutter opened 10 years ago

BrandonShutter commented 10 years ago

Hey there.

Running Windows - Server is running Linux.

Upon starting the media transfer process, right after it says trying to determine which files to move, I get this error.

Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileInfo::getSize() [<a href='splfileinfo.getsize'>splfileinfo.getsize</a>]: stat failed for C:\Ampps\www\calton\live/wp-content/uploads\2014\02\JPEG-Image-612-�+�-�576-pixels-100x100.jpg' in C:\Ampps\www\calton\live\wp-content\plugins\wp-sync-db-media-files-master\class\wpsdb-media-files.php:151 Stack trace: #0 C:\Ampps\www\calton\live\wp-content\plugins\wp-sync-db-media-files-master\class\wpsdb-media-files.php(151): SplFileInfo->getSize() #1 C:\Ampps\www\calton\live\wp-content\plugins\wp-sync-db-media-files-master\class\wpsdb-media-files.php(317): WPSDB_Media_Files->get_local_media() #2 [internal function]: WPSDB_Media_Files->ajax_determine_media_to_migrate('') #3 C:\Ampps\www\calton\live\wp-includes\plugin.php(470): call_user_func_array(Array, Array) #4 C:\Ampps\www\calton\live\wp-admin\admin-ajax.php(82): do_action('wp_ajax_wpsdbmf...') #5 {main} thrown in C:\Ampps\www\calton\live\wp-content\plugins\wp-sync-db-media-files-master\class\wpsdb-media-files.php on line 151

notslang commented 10 years ago

Ugh... the issue is probably related to supporting windows file paths. The forward slashes in C:\Ampps\www\calton\live/wp-content/uploads\2014\02\JPEG-Image-612-�+�-�576-pixels-100x100.jpg mean that there's some code that isn't checking the platform-specific path separator.

BrandonShutter commented 10 years ago

Just got back to using this on a Windows machine. Any progress on this?