WordPress.org

Forums

wp-content/blogs.php file is deprecated (11 posts)

  1. AlexV
    Member
    Posted 4 years ago #

    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

  2. TonySoprano
    Member
    Posted 4 years ago #

    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)

  3. 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.

  4. gnattybumpo
    Member
    Posted 4 years ago #

    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?

  5. so... delete the file? :D

  6. gnattybumpo
    Member
    Posted 4 years ago #

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

  7. AlexV
    Member
    Posted 4 years ago #

    Thanks Andrea

    Worked like a charm!

    Alex

  8. gnattybumpo
    Member
    Posted 4 years ago #

    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

  9. Nah, you can ignore it.

  10. riddhishshah
    Member
    Posted 4 years ago #

    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.

  11. ojohnson
    Member
    Posted 4 years ago #

    Thanks andrea_r

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.