• Hi,

    Since installing multisite and domain mapping I have been unable to upload images. I can’t insert images direct into a post/page or upload images with the “NextGEN Gallery” feature. When I click upload the page just keeps “waiting” until eventually it times out.

    I can’t upload images either on the primary blog/domain or the additional blog/domain thats been setup.

    Uploading images worked fine before multisite was installed.

    If I manually upload the images to the relevant NextGEN Gallery directory and scan it then it finds the images and adds them fine.

    I’m running Apache/2.0.64 (Win32) mod_ssl/2.0.64 OpenSSL/0.9.8o PHP/5.2.16 on my own managed server.

    The “\wp-content\blogs.dir” exists but is empty.

    .htaccess exists and contains the following:

    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]

    Any ideas?

    Many Thanks.
    Steve

Viewing 15 replies - 1 through 15 (of 15 total)
  • The “\wp-content\blogs.dir” exists but is empty.

    And this is where images are stored – which means likely permissions on that folder are not set to writable.

    Thread Starter st0ne5ish

    (@st0ne5ish)

    Thanks for the answer it’s running on a windows server though so I don’t think it’s a permissions problem. There is nothing in the apache logs to explain it.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    šŸ³ļøā€šŸŒˆ Advisor and Activist

    Windows servers can have permissions problems too.

    Please do due diligence and make sure they’re set correctly (to whatever it is on Windows – you may need to force full control to the folder)

    Thread Starter st0ne5ish

    (@st0ne5ish)

    I checked the directory and I can’t see much wrong but I’m not 100% sure. If I try the flash uploader I do get an error:

    “Security error.”

    .. which is permissions.

    You’re running Apache on a Windows box, which is different than saying you’re on a windows server.

    Right click on the folder name and look at who has perission to write to it.

    WordPRess cannot copy the picture to the right folder because

    A) it does not have permission to copy it over
    and
    b) it does not have permission to even make a new folder

    Thread Starter st0ne5ish

    (@st0ne5ish)

    The directory permissions are no different to the directory “\wp-content\uploads” that worked for uploads when it wasn’t multisite.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    šŸ³ļøā€šŸŒˆ Advisor and Activist

    For ALL the subfolders under blogs.dir? Sometimes things forget to trickle down.

    Thread Starter st0ne5ish

    (@st0ne5ish)

    I did some more testing. On the original primary domain I can create a new gallery and it creates gallery and thumbs folder in:

    \wp-content\gallery\test-regis-gallery\thumbs

    When I try and upload to the new gallery with flash enabled it gets to 67% then gives me the error:

    ERROR IO FAILURE: chickens.JPG : Error #2038

    If I try without flash it just times out no error.

    On the new mapped domain I can create a new gallery and it creates the directory in \wp-content\blogs.dir\2\files\test-coastal-gallery\thumbs

    When I try an upload with flash it gives me the error:
    ERROR SECURITY ERROR : Chickens.jpg ERROR #2049

    without flash just a timeout

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    šŸ³ļøā€šŸŒˆ Advisor and Activist

    Interesting. What plugin are you using for that? \wp-content\gallery\test-regis-gallery\thumbs isn’t standard WP. Which means uploads probably never worked quite the way they should.

    I would test permissions against \wp-content\gallery\ and \wp-content\blogs.dir

    (also, blogs.dir IS a folder, right?)

    Thread Starter st0ne5ish

    (@st0ne5ish)

    Plugin is NextGEN Gallery but I also have the same problem when trying to upload images using “Upload/Insert” on pages/blogs.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    šŸ³ļøā€šŸŒˆ Advisor and Activist

    also have the same problem when trying to upload images using “Upload/Insert” on pages/blogs.

    Yeah, that would be all the same ish.

    What ARE your permissions on blogs.dir?

    Thread Starter st0ne5ish

    (@st0ne5ish)

    blogs.dir is a folder, Users have “Full Control”, when I create a gallery apache is able to create sub directories like the “thumbs” directory.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    šŸ³ļøā€šŸŒˆ Advisor and Activist

    st0ne5ish – You need to compare the permissions and settings on blogs.dir with those of galllery.

    If it works for ONE, it should work for both.

    But. But.

    Try the NON Flash uploader.

    Thread Starter st0ne5ish

    (@st0ne5ish)

    strange I just tried a from a different laptop and I can upload fine using flash or non flash using IE 9. I can’t upload from my PC though using firefox 6 or IE 7 it had been working previously though.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    šŸ³ļøā€šŸŒˆ Advisor and Activist

    Ugh. I hate that. (IE 7 is no longer supported by WP, so you’re on your own there, but FF 6 SHOULD work… if Mozilla can stop being janky).

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Multisite – unable to upload images’ is closed to new replies.