• Resolved Pirjo

    (@isokopir)


    Hi,

    I have upgraded WPMU 2.7 step by step to WordPress version 3.3.1. I used these instructions https://codex.www.ads-software.com/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 5 replies - 16 through 20 (of 20 total)
  • Thread Starter Pirjo

    (@isokopir)

    Hi!

    Thank you very much for helping me.

    Today I realized what is wrong. I have installed our WordPress on a subdirectory /blog. So I think the main fault have been on this row RewriteBase /. I’m sorry I didn’t realize this earlier.

    Now my .htaccess is similar you posted except the RewriteBase row and this RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*. I think I need it for plugins.

    Now my .htacess looks like this:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /blog
    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]
    
    # 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

    You should NOT need this:
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*

    Why? Because of this:
    RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]

    That covers everything in wp-content, from themes to plugins.

    So with that one, is it working now?

    Thread Starter Pirjo

    (@isokopir)

    You are right, I tested, I don’t need it. I removed the …plugins row. First I thought I need it because in some reason I can’t use EmbedIt plugin, when I’m signed in as admin, but it’s not so necessary. So we can forget it at least now.

    Everything else seems working now.

    This case can be closed.

    Thank you very much that you helped me.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You can mark ’em resolved yourself ?? Upper right side, right column, ‘This topic is…’

    Thread Starter Pirjo

    (@isokopir)

    Okey, next time I’ll find it.

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