• Resolved francishunger

    (@francishunger)


    “image.jpg” has failed to upload due to an error Unable to create directory uploads/2014/02. Is its parent directory writable by the server?

    This problem appeared after updating from 3.7.
    I have followed the procedures as proposed in most theads with no success:
    – reinstalled wp 3.8.1.
    – disable all plugins
    – enable standard theme
    – set the uploads folder to 777

    I also have followed this thread:
    https://www.ads-software.com/support/topic/not-resolved-404-error-on-uploaded-images?replies=17

    The procedure as decribed by ashiado seemed to work partially for me.
    When I changed the variable upload_path from “/wp-content/uploads/” to “wp-content/uploads/” the upload itself worked again. But all images, including the recently uploaded were broken in the media library.

    I wonder if there might be issues with the multi-user .htaccess, but my tests seemed not to indicate that.

    ### reroute inkearns.de to www.inkearns.de
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^inkearns.de$
    RewriteRule ^(.*)$ https://www.inkearns.de$1 [R=301,L]
    
    ### BEGIN WordPress Multisite ###
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    
    #RewriteCond %{REQUEST_FILENAME} -f [OR]
    #RewriteCond %{REQUEST_FILENAME} -d
    #RewriteRule ^ - [L]
    #RewriteRule . index.php [L]
    # END WordPress

    Thanks for your comments in advance, best Francis

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

    (@ipstenu)

    ?????? Advisor and Activist

    Does this happen on all sites or just one?

    Are you using subdomains or subfolders?

    Your .htaccess looks… wrong, but that shouldn’t break things in that way. You would use one of these: https://codex.www.ads-software.com/htaccess#WordPress_3.4_and_below

    Thread Starter francishunger

    (@francishunger)

    Hi Mika, thanks for your comments.

    I’m using subdomains.

    The first part of the .htaccess shouldn’t be the problem, I have deleted it and tested it without success.

    But your next question turns out to produce interesting results. My MU installation consists of two sites and one of them works, the the other doesn’t.

    The upload path for the working site is “wp-content/blogs.dir/2/files” while the non-working is set to “/wp-content/uploads”. Setting the latter to “wp-content/blogs.dir/1/files” lead to a working upload. Great, so far!

    Now all existing images of that blog disappeared and aren’t visible in front and backend. So I moved all images from “wp-content/uploads/” to “wp-content/blogs.dir/1/files” and now it works.

    Would be interesting to know, what was initially causing the trouble…

    thanks, Francis

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    No I meant this looked wrong:

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

    Compare it to this: https://codex.www.ads-software.com/htaccess#WordPress_3.4_and_below You’ll see

    Setting the latter to “wp-content/blogs.dir/1/files” lead to a working upload.

    THAT is really weird and wrong. it should be /wp-content/uploads/ – I wonder if a plugin or theme tweaked it with some bad assumptions ??

    Thread Starter francishunger

    (@francishunger)

    nope, as far as I can see this is provided by WP MultiUser 3.8 on its permalinks page itself.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘After Update to 3.8 MU images can not be uploaded’ is closed to new replies.