• I’m trying to upgrade to 3.0.1 from the 2.9.1. Here are the steps I did:
    1. clicked on the auto upgrade button within dashboard (it was successful)
    2. Noticed the message at the top of dashboard that read “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.”
    3. Removed blogs.php
    4. Changed blogs.php to ms-files.php within .htaccess

    Once I do step 4 all my images go away within my main blog and within all my users’ blogs. The images I’m referring to are the images that users upload to their library and insert into posts.

    If I undo steps 3 and 4 the images show up again. I think the problem lies within my .htaccess. Here’s my .htaccess.

    What do I need to fix?

    # Use PHP5 Single php.ini as default
    AddHandler application/x-httpd-php5s .php
    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    #RewriteCond %{REQUEST_FILENAME} -f [OR]
    #RewriteCond %{REQUEST_FILENAME} -d
    #RewriteCond %{HTTP_HOST} !courses.domain.org
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.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>
    # For security reasons, Option all cannot be overridden.
    #Options All -Indexes
    Options ExecCGI  Includes  IncludesNOEXEC  IncludesNOEXEC  MultiViews  SymLinksIfOwnerMatch  Indexes -Indexes
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ajcke

    (@emerinea)

    I’m really confused to why mu says blogs.php is now depreciated, but when I remove blogs.php and change the .htaccess file to wp-includes/ms-files.php all my images that are stored in blogs.dir loose their file path within the code and don’t display.

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    that’s the line you need to change. You can actually leave the file there if you like, not using it means it won’t get called.

    Works for us (and many others). So, not sure what’s going on for your setup.

    Thread Starter ajcke

    (@emerinea)

    What will happen if I don’t change this line? …because when I do all my images that are stored in blogs.dir loose their file path within the code and don’t display on a web browser.

    All I’m doing is changing wp-content/blogs.php to wp-includes/ms-files.php in this line. Is this correct?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Your .htaccess is vastly different from the ones I see on new installs. This was a fairly old version of wpmu that you started with, I suspect, and I think you have some extra cruft in there.

    Are you using subdomains or subfolders for your multisite setup?

    Thread Starter ajcke

    (@emerinea)

    subfolders

    Thread Starter ajcke

    (@emerinea)

    Is there an updated .htaccess I should be using?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Upgrade to 3.0.1 Problem’ is closed to new replies.