• Resolved Pirjo

    (@isokopir)


    Hi,

    I have upgraded WPMU 2.7 step by step to WordPress version 3.3.1. I used these instructions http://codex.wordpress.org/Upgrading_WPMU.

    I followed all instructions, also these:
    1.Move the blogs.php out of the /wp-content/ folder. This has been moved to wp-includes/ms-files.php.
    2.Update your htaccess rules to reflect this change.
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L] and change it to this: RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    Now photos vanish from our posts when I use browser’s refresh button. Photos seems to vanished also from the Media Library. When I move blogs.php file back onto the wp-content directory the photos do not vanish when using browser’s refresh button and I also see the photos on the Media Library.

    I think I have to remove blogs.php because now I get this error message “The wp-content/blogs.php file is deprecated. Please remove it and update your server rewrite rules to use wp-includes/ms-files.php instead.” on the admin Dashboard. I just don’t know how to fix this problem. Somewhere is needed some more settings.

    I would be very happy if you could tell me what is needed and to where.

Viewing 15 replies - 1 through 15 (of 20 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What’s your full .htaccess right now?

    Thread Starter Pirjo

    (@isokopir)

    Below is a copy of my .htaccess

    RewriteEngine On
    RewriteBase BASE/
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Props Ron.

    Get rid of RewriteRule ^(.*/)?files/$ index.php [L] for starters.

    And see http://codex.wordpress.org/Multisite_Network_Administration#.htaccess_and_Mod_Rewrite for the current htaccess rules.

    Yep, you needed the updated full htaccess file.

    Thread Starter Pirjo

    (@isokopir)

    Hi,

    I copied .htaccess from the page Ipstenu posted.
    I installed old WordPress MU in subfolder blog so I tried to add the row below into .htaccess for one site
    RewriteRule ^([_0-9a-zA-Z-]+/)?bootthrowing.com/blog/files/(.+) wp-content/blogs.dir/1/files/$2 [L]
    according this example
    RewriteRule ^([_0-9a-zA-Z-]+/)?siteN/files/(.+) wp-content/blogs.dir/N/files/$2 [L]
    I have still same broblem. What can I try now?

    Now my .htacess is this kind of

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?bootthrowing.com/blog/files/(.+) wp-content/blogs.dir/1/files/$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]
    # END WordPress

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    RewriteRule ^([_0-9a-zA-Z-]+/)?bootthrowing.com/blog/files/(.+) wp-content/blogs.dir/1/files/$2 [L]

    That’s wrong. siteN stands for Site NUMBER. So

    RewriteRule ^([_0-9a-zA-Z-]+/)?2/files/(.+) wp-content/blogs.dir/1/files/$2 [L]

    is for site 2 and so on.

    Mind you generally don’t need that, but I have seen it required for some people. Don’t know why.

    Thread Starter Pirjo

    (@isokopir)

    Hi!

    Thank you for your instructions.

    I corrected that but it didn’t help me.

    I tried also add this in my .htaccess
    RewriteRule ^files/(.*)$ http://domain.com/wp-content/files/$1 [L,R=301]

    and I tried to enter the upload path on the following fields of wp_N_options table in database:
    upload_path (this was already earlier)
    upload_url_path
    fileupload_url

    Nothing of those didn’t help me.

    I have noticed that quite many have had problems with image displaying after upgrading from WPMU to 3.N. Do you know if somewhere are listed the most common solutions for this?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Remove

    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*

    Thread Starter Pirjo

    (@isokopir)

    Thank you for soon answer.

    Removing the row you advised didn’t help me.

    Just in case I review my problem: Images disappear when I use browser’s refresh button. That happen both on the published posts and on Media Libraty with thumbnails.

    I have IE 9. I’m going to test with Chrome in this night.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Wait .. they disappear? So they show up once and then poof, gone?

    Thread Starter Pirjo

    (@isokopir)

    Yes, first they show up once and when I use the refresh button of browser they are gone.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    o.O

    You don’t have any hotlink blocking going on, do you?

    Thread Starter Pirjo

    (@isokopir)

    No, I don’t have.

    Because I was not sure I tested it here
    http://www.htaccesstools.com/test-hotlink-protection/

    with this image
    http://bootthrowing.com/blog/rosentei/files/perunakellari.jpg

    Thread Starter Pirjo

    (@isokopir)

    Now I tested that with Google Chrome. The problem is same with it. So I think this does not depend on the web browser.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Okay, you know … let’s scrub it. Rename your .htaccess to OLD.htaccess

    Make a new .htaccess with ONLY THIS:

    # BEGIN WordPress
    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]
    # END WordPress

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Upgrading WPMU to 3.0 and removing of blogs.php’ is closed to new replies.