WordPress.org

Support

Support » Multisite » Lost all my Media in 3.4 upgrade

Lost all my Media in 3.4 upgrade

  • Hi everyone!
    I upgraded my MU site to 3.4 (http://zerflin.com), and everything that I’d been including in blog posts has disappeared. Indeed, when I open my media library, though the individual items show up, all the previews are “missing image” icons.

    Any ideas?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The full path to a missing image is //http://zerflin.com/files/2012/06/Screen-Shot-2012-06-13-at-10.22.31-AM.png

    Verify that the file(s) are at that path.

    Nope, they’re not there. I don’t even see a “files” folder on my server. Where are images normally when they’re uploaded into Media Library?

    wp-content/uploads/ and then maybe year/month (year and month if that option is selected in media library settings).

    Does WordPress redirect the file location to be <root>/files?

    The files aren’t showing up in wp-content/uploads/

    I’m not entirely sure that helps me. The problem is that suddenly with the upgrade, I’ve lost all images.

    What I need to know is where on the server they were actually stored so I can try to get my hosting to restore that folder (hopefully).

    Moderator Jan Dembowski

    @jdembowski

    Brute Squad and Volunteer Moderator

    What I need to know is where on the server they were actually stored so I can try to get my hosting to restore that folder (hopefully).

    You’re running multisite, can you determine if there is or was a wp-content/blogs.dir/1/files/2012/06/Screen-Shot-2012-06-13-at-10.22.31-AM.png file on your server?

    Yes! There is! Oh good, they’re all there. 🙂

    So how do I fix this problem? do you need to move these guys, or do I need to tell WordPress they’re there?

    Moderator Jan Dembowski

    @jdembowski

    Brute Squad and Volunteer Moderator

    You have multisite, so there should be a set of rewrite rules in your .htaccess file that handles that.

    Make a backup copy of the existing .htaccess and visit your network dashboard to see what the rules should be.

    http://zerflin.com/wp-admin/network/setup.php

    That page should show you what the .htaccess entries should be.

    For example, mine look like this:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    Make sure those rules from your installation (check, don’t just copy mine) are all in place.

    Hmmm. When I click on that link, I get an error message that says “The Network creation panel is not for WordPress MU networks.”

    Is there another way to check?

    Oh yeah, if you were using WPMU (pre 3.0 merger) then you can’t :/

    You’ll have to grab an example from here: http://codex.wordpress.org/Multisite_Network_Administration#.htaccess_and_Mod_Rewrite

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Lost all my Media in 3.4 upgrade’ is closed to new replies.
Skip to toolbar