Support » Networking WordPress » Fresh WPMU image upload issues

  • Resolved Travillian

    (@travillian)


    Hey all.
    I’m new to WP.org and learning a lot. Luckily I don’t have much to lose if I’ve totally screwed everything up.

    angelatravillian.com is my main site. I can upload images here just fine.

    I am using Laughing Squid and trying to use subdirectories for a class project at angelatravillian.com/acme.

    I modified my .htaccess file per the instructions. I added a blogs.dir file to wp-content. Everything seems fine until I try to upload an image. *I can upload an image to the original site.

    My .htaccess file looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress

    When trying to upload, I get the error: Unable to create directory wp-content/blogs.dir/2/files/2012/11. Is its parent directory writable by the server?

    Yes. blogs.dir is there. I changed the permissions to allow changes.

    I don’t know what else to do. Can anyone help?

    Thanks in advance!!!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Halfelf Rogue & Plugin Review Team Rep

    Yes. blogs.dir is there. I changed the permissions to allow changes.

    What permissions? πŸ™‚

    Travillian

    (@travillian)

    All have permission to read and the owner has write permissions. Is that good?

    I’m learning this for a college class, but the book doesn’t help with details for me, since I have multi-site set up.

    Thanks!!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Halfelf Rogue & Plugin Review Team Rep

    For a test, make it 777. Yes I know.

    Travillian

    (@travillian)

    I changed it to 777 and still got this…

    β€œbits.png” has failed to upload due to an error
    Unable to create directory wp-content/blogs.dir/2/files/2012/11. Is its parent directory writable by the server?

    dgilmour

    (@dgilmour)

    I don’t remember ever having to create blogs.dir, but I have been using Multisite since earliest WPMU days, and maybe it wasn’t needed.

    Could the file ownership of blogs.dir be the problem? That could happen if you created the blogs.dir directory from a terminal session, when logged on as root.

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    I don’t remember ever having to create blogs.dir, but I have been using Multisite since earliest WPMU days, and maybe it wasn’t needed.

    It was needed, and it was magically created for you. πŸ˜‰

    Folder ownership is my guess.

    blogs.dir is a *folder* – not a file.

    Travillian

    (@travillian)

    How do I check the ownership? I’m on my phone and can’t include a link, but I followed the instructions on the WP.org site. I just created blogs.dir like it said. I don’t really know anything about it. As I said, I’m new to all of this.

    Travillian

    (@travillian)

    And thanks for your help! My teacher hasn’t offered any solutions. He’s probably busy helping the other students with their typical installs. I’m glad I’m learning how to do this, though.

    Andrea Rennick

    (@andrea_r)

    Customer Care at Copyblogger Media and Studiopress

    I just created blogs.dir like it said.

    Did you make it a *folder*?

    Travillian

    (@travillian)

    No, it’s a .dir file.

    How do I make it a folder? What would be inside of the folder?

    Thanks again!!

    Frank

    (@fescamil)

    Laughingsquid Rep.

    You can create a folder using your FTP client. Usually it’s a right click -> Create New Folder or something similar. Just leave it empty and WordPress should know what to do with it. If you’re still having trouble feel free to open a support ticket and we can help you out further there:

    Support & Contact Information

    Travillian

    (@travillian)

    Thanks, Frank! You guys have been really helpful. I just changed it, tested it and it worked.

    It would help if the WP.org setup instructions said that it was a folder πŸ™‚ Then, I could have set it up correctly the first time!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Halfelf Rogue & Plugin Review Team Rep

    It does, Travillian. It actually says to make a folder named blogs.dir

    The problem is many people read ‘blah DOT foo’ and they’re used to seeing that as a filename.

    Travillian

    (@travillian)

    Ah, ok. Well, I feel silly. That’s exactly what I did.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Fresh WPMU image upload issues’ is closed to new replies.