• Hi everyone,

    I’m running a multisite-network with a subfolder setup for 2 languages /de and /en for a client of mine.

    Every now and then the mediauploader refuses to upload an image. The errormessage claims that there is no permission to write to the blogs.dir – which is right, because there is no such directory…the site, once started on 3.xx and running under 4.1 now, is using the uploads/sitexx/… directory…

    After a little bit of research i found a plugin called “Migrate Multisite Files”. after using it i’m able to upload new images without a problem. But after a few days if i try to upload new files, i’m stuck with the old error again, until i re-run the plug in.

    Is there a way to permanently fix this without the need to use this plug-in-routine every time?

    maybe the error is in the htaccess file?

    this is how it looks:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Hope someone can help…

    thanks in advance

    Marcus

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

    (@ipstenu)

    ?????? Advisor and Activist

    Your .htacces is fine for a subfolder multisite network.

    Every now and then the mediauploader refuses to upload an image. The errormessage claims that there is no permission to write to the blogs.dir – which is right, because there is no such directory…the site, once started on 3.xx and running under 4.1 now, is using the uploads/sitexx/… directory…

    That it’s only SOMETIMES happening is interesting.

    Is this happening on ALL sites or just some?

    What plugins are active on the network and on the affected sites?

    When it happens, is there anything usefull in your error logs?

    Thread Starter d-baser

    (@d-baser)

    THanks for your answer.

    Yes, it is quite strange….the last few days i had no problems at all, after i ran the migrate multisite plug in again. After my client logged in with his admin-Account i’m back to square-one with the following error:

    Unable to create directory wp-content/blogs.dir/3/files/2015/04. Is its parent directory writable by the server?

    besides the permissions, the blogs.dir shouldn’t be necessary at all in WP 4.1.1

    Maybe it happens when a different admin account is used?

    I observed a strange behaviour in the database:
    In the wp-sitemeta the entry of ms_files_rewriting change from 0 (media upload working) to 1 (media upload not working).

    What plug in or routine could be responsible for this?

    these Plugins are in active use:

    Active NETWORK PLUGINS:
    – 404 to Start 1.5.8.1
    – Acunetix WP Security 4.0.5
    – Duplicate Post 2.6
    – Duplicator 0.5.12
    – Image Widget 4.1
    – Migrate Multisite 2.4
    – Multilingual Press Pro 2.1.2
    – Official Statcounter Plugin
    – WordPress SEO 1.7.4

    Active SITE PLUGINS
    Wordpress SEO 1.7.4

    any hint is appreciated ??

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Media upload fails’ is closed to new replies.