WordPress.org

Ready to get started?Download WordPress

Forums

Ye Olde Image Uploader problemo (21 posts)

  1. mick e
    Member
    Posted 3 years ago #

    So I enabled multi-site to an existing site and am suffering with the image uploader redirect. I have done all sorts or chickenbones on this (.htaccess changes, permissions on files and permissions, etc.), and nothing seems to be working. Here is my story:

    The uploader is effectively placing the images into the blogs.dir/2/images folder.

    The image resizing functions also work within that directory

    HOWEVER - after uploading, the image placed on the page is no worky. The thumbnail is not visible in the upload panel or Gallery or Media Library panels.

    The button for "edit this image" is there and functional. When I click on that I see a thumbnail preview, but when I click back to the other panels there is still no thumbnail.

    Bottom line - something is funky with the redirect going from blogs.dir/2/images and mysite.domain.com/images.

    I have perused just about all the image uploader threads here in the multisite section and haven't been able to find a definite answer. Please let me know if I am missing something.

    Here is the site url:

    http://bella.ctihospitality.com

  2. 1) Subdomains or Subfolders?

    2) What's your .htaccess?

  3. mick e
    Member
    Posted 3 years ago #

    It is subdomain.

    Here is my current htaccess:

    # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    
    # END WordPress
  4. The uploader is effectively placing the images into the blogs.dir/2/images folder.

    Did you change something on your site? The default location is wp-content/blogs.dir/2/files/ not Images.

    I can see your images here: http://bella.ctihospitality.com/wp-content/blogs.dir/2/files/101_0584.jpg which is not quite right. They SHOULD be in folders like this:

    wp-content/blogs.dir/2/files/2010/12/101_0584.jpg

  5. Go chekc under Super Admin -> Sites -> Edit that the upload folders for the 2nd site are correct. By default, they shoudl be. If you edited it... well.... :D

  6. mick e
    Member
    Posted 3 years ago #

    I miswrote that. It should have read "blogs.dir/2/files".

    Anyhoo - I had all sorts of other issues with the uploader and some of those issues got fixed through searching the archives here.

    One of the things I ended up doing was to manually create the files directory and indicate the image upload path in my superadmin as: wp-content/blogs.dir/2/files/

    The image Fileupload URL shown in that panel is: http://bella.ctihospitality.com/files

    I'm going to delete the files and folders inside the blogs.dir directory and see what happens.

  7. mick e
    Member
    Posted 3 years ago #

    So I deleted the files folder from the blogs.dir/2/

    Then I changed the upload path in superadmin to:
    wp-content/blogs.dir/2/

    When I uploaded and image, wordpress created a new files/ directory and uploaded the image. Unfortunately, nothing has changed.

    Here is the location of the image I uploaded:
    blogs.dir/2/files/SHSFairfax008.jpg

  8. Upload path should be wp-content/blogs.dir/2/files

    Fileupload Url shoulf be http://bella.ctihospitality.com/files

  9. Why is it not making the Year/Month folders, though ... That makes no sense?

  10. yeah, I dunno? Plugins? A define in wp-config?

  11. mick e
    Member
    Posted 3 years ago #

  12. mick e
    Member
    Posted 3 years ago #

    Here is what the define in my config looks like:

    */
    define ('WPLANG', '');
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'www.ctihospitality.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    /* That's all, stop editing! Happy blogging. */
  13. mick e
    Member
    Posted 3 years ago #

    regarding the define:

    I stripped the "www" from the current site line. It made no difference.

    Also there are/were no active plugins on the site.

  14. So.. basically a virgin install?

  15. mick e
    Member
    Posted 3 years ago #

    Basically - the main site had been going for a while, but was a standard wordpress 3 install.

    Then I switched to multisite in order to add this one.

  16. mick e
    Member
    Posted 3 years ago #

    However I do remember having upload problems with that one, and needing to change some permissions or something. It's become something of a blur.

  17. Can you add another test site, see what it does out of the box?

  18. mick e
    Member
    Posted 3 years ago #

    I'll give it a go.

  19. mick e
    Member
    Posted 3 years ago #

    The test site does the same thing.

  20. mick e
    Member
    Posted 3 years ago #

    Yay - I have stumped the experts!

    ...yeah - not really yay.

    :(

  21. Do you have any image protection - like hotlink protection - setup on your server?

    We can't repro it so it's likely a server config issue at this point.

Topic Closed

This topic has been closed to new replies.

About this Topic