• Hi folks,

    I get this error when I try to upload some files to one of my multisite-blogs.

    Warning: realpath() [function.realpath]: Unable to access /my/site/dir/wp-admin/wp-content/blogs.dir/2/files in /my/site/dir/wp-includes/functions.php  on line 2058
    Ablehnen "file.jpg" konnte wegen eines Fehlers nicht hochgeladen werden
    Das Verzeichnis /my/site/dir/wp-content/blogs.dir/2/files/2010/07 kann nicht angelegt werden. Ist das übergeordnete Verzeichnis durch den Server beschreibbar?

    In English:

    Could not upload "file.jpg" because an error occurred.
    Could not create directory /my/site/dir/wp-content/blogs.dir/2/files/2010/07. Check if the directory is writeable.

    I changed the blogs.dir to 777, but the same error.

    When I tried to create the dirs manually, I got this error:

    Warning: realpath() [function.realpath]: Unable to access /my/site/dir/wp-admin/wp-content/blogs.dir/2/files in /my/site/dir/wp-includes/functions.php  on line 2058
    
    Warning: realpath() [function.realpath]: Unable to access /my/site/dir/wp-admin/wp-content/blogs.dir/2/files in /my/site/dir/wp-includes/functions.php on line 2058
    
    Warning: realpath() [function.realpath]: Unable to access /my/site/dir/wp-admin/wp-content/blogs.dir/2/files in /my/site/dir/wp-includes/functions.php on line 2058
    16

    I’m using wp3.0 with domain mapping plugin. My .htaccess file is looks like this:

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

    Anyone any idea?

    Thx!

Viewing 6 replies - 1 through 6 (of 6 total)
  • I changed the blogs.dir to 777, but the same error.

    What about the internal folders under that?

    Thread Starter ulinho

    (@ulinho)

    Hi Andrea_r,
    changed the wp-content-dir to 777 but didn’t work either. Any other suggestions?

    Warning: realpath() [function.realpath]: Unable to access /my/site/dir/wp-admin/wp-content/blogs.dir/2/files in /my/site/dir/wp-includes/functions.php on line 2058

    Something’s wrong with your site setup, as /wp-content is at the same level as /wp-admin; it’s not a subdirectory. That’s probably the root cause, I guess the protection issue symptoms are arising because of attempts to write into /wp-admin.

    Thread Starter ulinho

    (@ulinho)

    Hi dgilmour,
    I just thought the same, but couldn’t find this configuration. Can you give me a hint where or how to find this configuration.

    Good catch, dgilmour.

    When I tried to create the dirs manually, I got this error:

    And that’s where the /wp-admin/ came into play. you didn;t try & createm under the wp-admin folder did you?

    Hi Andrea_r,
    changed the wp-content-dir to 777 but didn’t work either. Any other suggestions?

    Ack, change it back. ??

    By under blog.dir, i meant the folders *within* blogs.dir, not above. wp-content is above.

    Thread Starter ulinho

    (@ulinho)

    I don’t know why this problem appears but now I reinstalled the network with subdirectories instead of subdomains and it works…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Upload problems on WordPress Mulitsite 3.0’ is closed to new replies.