• So I messed up with images. I un-ticked the box that makes the images sorted by year and month, By my lack of reading I moved everything out of the dated folders and just into /wp-content/uploads. I then added in this code snippet “define( ‘UPLOADS’, ‘wp-content/uploads’ );” to make them go to the new location, However it now tries to go to “/wp-content/uploads/datedfolder/datedfolder/image” is there anything I can do to fix my error

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You moved existing images out of their date folders and placed them directly in /uploads/? There is a bunch of media meta data in the DB that is still pointing to the dated folders. Either all of that needs to be updated for the new location, or the images need to be sorted back into their dated folders so the file locations and meta data match.

    If there are a lot of images involved, it’s possible to develop a script to make the necessary changes. I’m not sure if such a script which you could use already exists.

Viewing 1 replies (of 1 total)
  • The topic ‘images broken on self hosted install’ is closed to new replies.