WordPress.org

Ready to get started?Download WordPress

Forums

Lost all my Media in 3.4 upgrade (12 posts)

  1. benjancewicz
    Member
    Posted 2 years ago #

    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?

  2. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    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.

  3. benjancewicz
    Member
    Posted 2 years ago #

    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?

  4. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

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

  5. benjancewicz
    Member
    Posted 2 years ago #

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

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

  6. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

  7. benjancewicz
    Member
    Posted 2 years ago #

    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).

  8. 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?

  9. benjancewicz
    Member
    Posted 2 years ago #

    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?

  10. 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.

  11. benjancewicz
    Member
    Posted 2 years ago #

    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?

  12. 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

Topic Closed

This topic has been closed to new replies.

About this Topic