WordPress.org

Ready to get started?Download WordPress

Forums

Upload problems on WordPress Mulitsite 3.0 (7 posts)

  1. ulinho
    Member
    Posted 4 years ago #

    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!

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

    What about the internal folders under that?

  3. ulinho
    Member
    Posted 4 years ago #

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

  4. dgilmour
    Member
    Posted 4 years ago #

    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.

  5. ulinho
    Member
    Posted 4 years ago #

    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.

  6. 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. :D

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

  7. ulinho
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic