WordPress.org

Ready to get started?Download WordPress

Forums

Image upload problems for multisite subdomain site (15 posts)

  1. tameryilmaz
    Member
    Posted 1 year ago #

    Hi,

    I have a same problem with that post: http://wordpress.org/support/topic/image-upload-problems-for-multisite-subdomain-site?replies=6

    But the solution there, is'nt work for me.

    My .htaccess file looks like this:

    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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]
    </IfModule>
    
    # END WordPress

    My main site is http://www.mainsite.com and I created http://www.site1.com, http://www.site2.com etc.

    My network setting details:

    (Network Admin / Sites / Info)
    Domain: http://www.site1.com
    Path: /

    (Network Admin / Sites / Settings)
    Siteurl: http://www.site1.com
    Upload path: wp-content/blogs.dir/2/files
    Fileupload url: http://www.site1.com/files (I also tried site1.mainsite.com and didn't work)

    Any help would be appreciated. Thanks in advance.

  2. (Network Admin / Sites / Settings)
    Siteurl: http://www.site1.com
    Upload path: wp-content/blogs.dir/2/files
    Fileupload url: http://www.site1.com/files (I also tried site1.mainsite.com and didn't work)

    That's wrong... Your fileupload URL should still show as site1.mainsite.com/files (yes, I know it's weird, but that's how domain mapping works).

    What domain mapping plugin are you using?

    Did you verify that allowoverride is set to all on your httpd.conf?

  3. tameryilmaz
    Member
    Posted 1 year ago #

    I'm using WordPress MU Domain Mapping plugin.

    Allowoverride is set to all.

    I'm also looked at blogs.dir folder ownership (chown) set. its user and group are same.

    What am I missing?

  4. Did you check to make sure that uploads worked before you mapped the domain?

  5. tameryilmaz
    Member
    Posted 1 year ago #

    Yes I did. Currently, uploads are working on unmapped mainsite.

    At first, I set the my main site address as mainsite.com instead www.mainsite.com. At that time uploads were not working. And later, I changed it to www.mainsite.com (manually search and replace in database). Still didn't work. Could that be a problem?

    Thanks for trying to help me Ipstenu.
    (And sorry for google translate, my english isn't so good)

  6. It's okay :) You're doing fine!

    Are you trying to map the main site on your domain? You can't do that.

    You can map the subsites only.

  7. tameryilmaz
    Member
    Posted 1 year ago #

    No I'm not trying to map the main site. (or am I? Here is the screenshot of my network sites section: http://i48.tinypic.com/29as192.png)

    There is no problem at the main site.

    I mapped the subsites only as you say. My uploads at the subsites are not properly working. When I look at the uploaded image path, it's showing

    http://www.site1.com/files/2012/06/image.jpg (which is broken)

    I also look at the blogs.dir folder, I see the uploaded image there:

    /blogs.dir/2/files/2012/06/image.jpg

    Apparently the image is successfully uploading into the blogs.dir folder. That's fine. But I can't see the image on the subsite.

    I'm exhausted now :(
    Thanks for helping again.

  8. Look on the far left of that screenshot. See how it says / ? That isn't right :D

    Are you using subfolders for your subsites? Because if you use subdomaains (i.e subdomain.domain.com ) for your sites, then that view is wrong, and so is your .htaccess :)

  9. tameryilmaz
    Member
    Posted 1 year ago #

    I'm confused. I don't use sub-directories, I used sub-domains at first install. But, when I look "Settings - Network Setup" section I see the setup codes like this ss: http://i49.tinypic.com/pq5hw.png

    on that screenshot, htaccess codes are for sub-directories. am I wrong? But I checked sub-domains at first install.

    I tried that htaccess codes though, didn't work too.

    You said that view is wrong, what do you mean that? How should be that for right view?

  10. Sites should look like this: http://cl.ly/21152C1Z2Z2U171l2K46

    See how I have one with / and the rest have the name of the subfolder? That's what's wrong. EVEN when you map a domain, that stays true!

    Did you edit those sites manually instead of using a plugin?

  11. tameryilmaz
    Member
    Posted 1 year ago #

    Yes I did edit manually, because when I add a new site it looks that: http://site5.mainsite.com in sites/info - domain field

    which It's not open in this way. So I edit that field as http://www.site5.com
    Than site5.com is opening.

  12. because when I add a new site it looks that: http://site5.mainsite.com in sites/info - domain field

    You've done something very wrong.

    The domain column should have the orginal name of your subsite. So if you named the site site5.mainsite.com, then 'site5' shows up in domain.

    The Mapping column should have the domain name site5.com

    You should NEVER EVER have to edit the sites manually. Otherwise what's the point of the plugin. You mapped things 'wrong' and I don't know how.

  13. tameryilmaz
    Member
    Posted 1 year ago #

    If I don't edit manually, the subsites are not opening. I guess I've done something very wrong as you said. But what or where?

    In wp-config, I set the domain_current_site as www.mainsite.com
    Otherwise the main site is opening without www part. I dont want that. So do you think that adding www part be a problem?

    Another curios: http://i49.tinypic.com/w8ox9s.png
    Server IP address is empty in domain mapping configration page. Should be entered my mainsite ip address?

    And last, what do you suggest, should I delete all and return single installation and then start new multisite configration again? (I already have 4 subsite with content by the way)
    Or should I contunie in this way? (because the subsites are working except image uploads)

  14. tameryilmaz
    Member
    Posted 1 year ago #

    Addition, these both are not opening:

    site5.mainsite.com/wp-admin
    http://www.mainsite.com/site5/wp-admin

    only when I manually edit site as http://www.site5.com
    then working http://www.site5.com/wp-admin

    I don't know what's wrong.
    Hope you help me Mika

  15. http://i49.tinypic.com/w8ox9s.png is the wrong page.

    That's the page where you add domains, not the domain listing. See on the menu on the left it has 'Domains' below? Click that.

    Was any of this working before you started mapping domains?

Topic Closed

This topic has been closed to new replies.

About this Topic