WordPress.org

Support

Support » Multisite » wp-content/blogs.php file is deprecated

wp-content/blogs.php file is deprecated

  • Hello,

    I am getting this message in my admin panel: 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.

    I don’t know how to update my server rewrite rules. Where can I find them. I am using cpanel.

    Thanks for any help you can provide.

    Alex

Viewing 10 replies - 1 through 10 (of 10 total)
  • TonySoprano
    Member

    @tonysoprano

    backup file and just delete it from server.
    that should do the trick 🙂

    (then test the site and if everything is ok than you don’t need it)

    Sorry Tony, you;re missing the second part: “and update your server rewrite rules to use wp-includes/ms-files.php instead”

    If you do not do this all your uploaded images will disappear.

    AlexV – in Cpanel, when you first go to the file manager, check the box to show hidden files. In the same root where the wp-config.php file is (usually public_html) there’s a file called .htaccess. It has the dot in front, that means it’s usually hidden. This is where the rewrite rules are.

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

    Change it to:
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    Deleting the old blogs.php file doesn’t even matter if you change the rewrite rules first.

    gnattybumpo
    Member

    @gnattybumpo

    Hi, I did this, but am still seeing the message “The wp-content/blogs.php file is deprecated…” I rechecked the .htaccess a number of times, and the new “RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]” is in the code.

    Any suggestions?

    so… delete the file? 😀

    gnattybumpo
    Member

    @gnattybumpo

    I already deleted “wp-content/blogs.php” Do you mean some other file?

    Thanks Andrea

    Worked like a charm!

    Alex

    gnattybumpo
    Member

    @gnattybumpo

    I should add that I started a new site after having crashing my old site trying to upgrade, so all current images are ones I uploaded after making the recommended changes. I need to try to import my old database if I can, but that is another problem.

    Everything seems to be working fine, but I am still getting the message in my dashboard:

    “The wp-content/blogs.php file is deprecated…”

    This after deleting wp-content/blogs.php file and adding:

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

    to the .htaccess file

    As I say everything seems to work fine. Should I be concerned about the continued “file is deprecated” message?

    Thanks!

    Nat

    Nah, you can ignore it.

    riddhishshah
    Member

    @riddhishshah

    in your htaccess file find below code

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

    and replace with

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

    you all done.

    Thanks andrea_r

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘wp-content/blogs.php file is deprecated’ is closed to new replies.