• Hello,

    I have multisite and I upgraded it from 4.3 to 4.4. After upgrade there are no pictures on mapped sites. I found that link has been changed from domain.com/wp-content/uploads/sites/5/2015/12/P1020412.jpg to domain.com/files/2015/12/P1020412.jpg.

    How can I fix it?

    best regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Bet Hannon

    (@bethannon1)

    There were some changes in 4.4 for how images work, and this has happened to some single site installs upon upgrade. Some of them have been caused by plugin conflicts. Just to rule out any of those kinds of issues, you might check out this post and see if any of those solutions solve your issue.

    https://www.ads-software.com/support/topic/after-upgrade-to-44-media-files-are-not-showing?replies=19

    If that doesn’t do it, do come back and give some more information about the plugins and themes you’re using.

    Thread Starter da1k

    (@da1k)

    Hello,

    I read what you send and it has not resolve my problem. I almost sure that it is problem with any plug in. I made some test to check it.

    1. I deactivated all plugins. Doesn’t help

    2. I made two test sites. One standalone WordPress installation (test 3.halifaxus.com) and another one is new create site in my current multisite (test2.halifaxus.com. Test 3 is working perfectly, test 2 no. On both sites there are no any plugins and theme is Twenty Sixteen without any widgets. So for me it is problem with multisite configuration.

    3. I compare content of my wordpress installation before and after upgrade. I found that on my server after upgrade there is a new dir: /wp-content/blogs.dir/site_number where new uploaded pictures are put. Before yesterday it was /wp-content/uploads/sites/site_number. I suppose that with current .htaccess file configuration there is no access to /wp-content/blogs.dir/ so I checked mine. I compared what I have and what it should be (from Settings/Network Setup). I found that new line appear:

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    I added to my .htaccess but it doesn’t help.

    The only one other part about wordpress is:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    when I remove it it helps… but I thought it is necessary?

    And last thing. Even if this code is not necessery any more is it mean that I have to move all my uploaded files to new location? What if someone decided that in WP 4.4.2 it should be put in different place again? Than again I will have to move? It doesn’t make any sense for me.

    How to comeback to previous default file saving folder?

    best regards,

    Thread Starter da1k

    (@da1k)

    Hello,

    Because of I almost sure that problem is with .htaccess configuration I spent some time to understand the code in it. If I am not wrong I don’t need this code anymore. So I removed it and moved pictures from uploads to blogs.dir.

    But I still have questions:

    1. Is really upgrade to 4.4 change dir location for uploaded files?
    2. Is there any guarantee that it wouldn’t happen soon e.g in 4.4.2 ?? ?

    best regards,

    Moderator Marius L. J.

    (@clorith)

    Hi,

    There’s been no changes to this, no (my sites are still hitting up wp-content/uploads/sites/$site/$file), but you are correct in that htaccess rule beign incorrect, it is the rule created for regular single sites.

    You can see the correct rules that should be used there on the Codex page at https://codex.www.ads-software.com/htaccess#WordPress_3.5_and_up

    Are you on a shared hosting environment perhaps? It could be something silly like a hosts deploy script not taking multisites into account that are checking htaccess files on update to make sure they are correct?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    This is an informational request. DO NOT MAKE CHANGES PLEASE ?? I have to say that. People do weird things assuming I want them to make changes.

    1) What IS in your .htaccess? The whole thing.

    2) Go to example.com/wp-admin/network/sites.php in your browser

    Click on EDIT for a broken site.

    Go to the SETTINGS

    What are the values for:

    * Upload Url Path
    * Fileupload Url

    Thread Starter da1k

    (@da1k)

    Hello,

    1) my .htaccess:

    #wordpress multisite
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    I copy it from Settings/Network Setup page in Network Admin.

    2) Upload Url Path is empty, I have no Fileupload Url. What I found is Upload Path, but it is also empty. I have never changed this settings.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No pictures after upgrade’ is closed to new replies.