• We had previously defined the UPLOADS variable in wp-config to point to an alternate directory:
    define(‘UPLOADS’, ‘media’);

    This has been working just fine since 2017. The other day I updated WordPress to 5.3.2. Every single image in the media library disappeared and every single blog post featured image disappeared from our website.

    If I go into the media library, the media library now thinks that all the images are in wp-content/uploads/ but if I go into the post table, the record for the matching image has its location as being at /media/ – which is correct.

    Has this happened to anyone else who over-rode the default directory? Did someone at WordPress decide to hard code the wp-content/uploads/ directory somewhere – instead of using the UPLOADS variable defined in the wp-config.php file?

    Any assistance on getting this fixed would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Were all of you images stored in the one directory, or separated into month/year folders? Also, try:

    define(‘UPLOADS’, ”.’media’);

    And see if that works.

    Thread Starter artsnovadotcom

    (@artsnovadotcom)

    Hi Malcolm, as stated in my original post, UPLOADS was defined in the config file and everything was working fine until I clicked the update button.

    I had no choice but to move all the images to the wp-content/uploads/ directory and then use SQL to go back and change all the links that were coded inside pages/posts to point to wp-content/uploads/ instead of the media directory we had been using.

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

The topic ‘WordPress Media Library Broken after WordPress Update’ is closed to new replies.