Title: localhost multisite issue
Last modified: January 17, 2023

---

# localhost multisite issue

 *  Resolved [itsfrancisnadal](https://wordpress.org/support/users/itsfrancisnadal/)
 * (@itsfrancisnadal)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/localhost-multisite-issue/)
 * to preface: we have a client that has a live multisite, they want to remove images
   that are no longer used. i set the multisite in my local, wanted to use the plugin
   to remove the images and delete also the image files. they have a base site which
   I will call base-site.eu and other 9 sites (with a .be, .fr, .de , .nl, .com.
   uk, etc).
 * here’s the issue: for testing, when i upload an image in the base site, the image
   is available to all other sites, but if I upload from one of the other site, 
   it wont be available to others. i think this is the default behavior of wp multisite.
   the uploads from base site go to normal upload directory, but for the other sites,
   they are supposed to go to uploads/sites/ and the sites have their own directory
   but in my local, they still go to normal upload directory.
 * when i installed the plugin, it is working fine. to test if I can use and purchase
   the plugin, i upload a photo in media library and do not use it. I then go to
   cleaner and do a scan, and as expected, it shows. the problem is, if I upload
   the image in base site, scan, and delete the image, it moves the image files 
   from uploads folder to wpmc-trash which is correct. but when i empty the trash,
   the image files moved to trash are brought back to uploads folder. and when i
   test the other sites, i upload the test image but instead of going to /uploads/
   sites, it goes to the normal uploads directory. after the upload, i do the scan,
   trash the test image, but the image file are not being moved to wpmc-trash, it
   even shows a broken image link. and if I permanently delete the trashed image,
   the files are also not deleted.
 * We really want to make this plugin work and purchase it, but maybe anyone encounter
   this and we hope can give some insight to our issue. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/localhost-multisite-issue/#post-16380368)
 * Hi,
 * I am sorry, that’s impossible to do. In fact, officially and technically, each
   site has its own database, with its own table of the attachments. Also, it has
   its own /uploads folder.
 * Uploading image on one site, and using on another, will work in practice, but
   in theory, it will break every process related to images. I don’t recommend you
   to do that, even though I know it’s tempting to have a common database or source
   for all your images.
 * The only way would be to use a remote server for your images but I don’t recommend
   do this neither as it’s not built in WordPress yet, and it will not behave nicely
   in every situation with every plugin.
 *  Thread Starter [itsfrancisnadal](https://wordpress.org/support/users/itsfrancisnadal/)
 * (@itsfrancisnadal)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/localhost-multisite-issue/#post-16380560)
 * Hi [@tigroumeow](https://wordpress.org/support/users/tigroumeow/)
 * Thank you for replying, actually I’m okay with each site having their own media
   cleaner instance, and I’m okay with deleting images in each site. What I just
   want to understand is, why the images in subsites are not being moved to wpmc-
   trash. So for example: the subsite with .de domain, I uploaded an image without
   using it. I initiate the scan, and media cleaner picks up the image which is 
   great. But when I trash the image, it was not moved to the trash folder. I’m 
   honestly confused here, because for subsites, they have their own upload folder(/
   uploads/sites/4/ <- the upload content of the subsite). wpmc also creates a trash
   folder inside this directory.
 * When I deleted the test image of the subsite, I checked the logs. It gave me 
   this error: “The file /Applications/MAMP/htdocs/project/wp-content/uploads/sites/
   4/Applications/MAMP/htdocs/project/wp-content/uploads/2023/01/SCR-20230113-kf5.
   png actually does not exist.” It’s weird that the “/Applications/MAMP/htdocs/
   project/wp-content/uploads/” repeated, and I guess the reason is because I’m 
   on localhost setup. The image is deleted from the “Issues” and is currently in“
   Trash” but file wasn’t moved.
 * Have you ever been asked with a similar issue?
    -  This reply was modified 3 years, 2 months ago by [itsfrancisnadal](https://wordpress.org/support/users/itsfrancisnadal/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘localhost multisite issue’ is closed to new replies.

 * ![](https://ps.w.org/media-cleaner/assets/icon-256x256.png?rev=2791576)
 * [Media Cleaner: Clean your WordPress!](https://wordpress.org/plugins/media-cleaner/)
 * [Support Threads](https://wordpress.org/support/plugin/media-cleaner/)
 * [Active Topics](https://wordpress.org/support/plugin/media-cleaner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-cleaner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-cleaner/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [itsfrancisnadal](https://wordpress.org/support/users/itsfrancisnadal/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/localhost-multisite-issue/#post-16380560)
 * Status: resolved