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

    just upgraded my wordpress and received the above message.

    How do I update my server rewrite rules?

Viewing 15 replies - 16 through 30 (of 31 total)
  • I am having a similar issue to thewackonerd with the ‘backend’ link taking me back to the main sites dashboard. Are there any reports on a clean fix for this?

    new topic here: https://www.ads-software.com/support/topic/411872?replies=1

    Thanks Ipstenu

    Your post helped me out tremendously I couldn’t figure it out but it finaly worked.

    I’m having one small issue with this. I change my htaccess and delete the blogs.php file, everything seems fine for a minute and the message is gone in admin, then after cache clears I noticed that my header image and all my users who uploaded their own avatars are missing. Anyone seen this yet?

    thanks in advance and let me know if you need more info.

    Anyone? I really need help with this, once changes are made I lose my header image and all users uploaded images. I don’t understand what I’m doing wrong.

    I am having the same problem as jproducer –

    jproducer – I double checked my edit to my htaccess file

    I had :

    wp-content/ms-files.php?file=$2 [L]

    instead of:

    wp-includes/ms-files.php?file=$2 [L]

    I’m not sure why, but I’m not the only person to have this either by the look of it.

    Thanks all, especially Ipstenu

    @hamzahali – thanks buddy, you got it! maybe wordpress 3.0.1 should automatically search htaccess to see if that alt has been made and then delete blogs.php for us. because that wasn’t terribly clear WP people. :\

    Ipstenu is A **Rock Star**

    3.0 upgrade melt down fixed…
    .htacess

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress

    WooHoo Thank YOU!!!

    @hkcharlie Once you have completed the .htacess file update. Delete the wp-content/blog.php file and you will see the message go away

    Hi,

    I upgraded from WPMU 2.9.2 to WP 3.0.1, I removed wp-content/blogs.php and I changed .htacces file

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

    to
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    all went fine but I have a problem: I see posts of root site but I don’t see posts of subsite. I checked the DB and it’s ok. What is the problem?

    Thanks

    binh

    (@binh)

    I tried my best, changing the .htaccess code was only part 1 of the solution.

    Part 2 is… actually removing the blogs.php file from wp-content folder.

    Hehe… after that, the message was gone… like 4ever?

    REASON? Please look into the following code:

    function ms_deprecated_blogs_file() {
    	if ( ! is_super_admin() )
    		return;
    	if ( ! file_exists( WP_CONTENT_DIR . '/blogs.php' ) )
    		return;
    	echo '<div class="update-nag">' . sprintf( __( 'The <code>%1$s</code> file is deprecated. Please remove it and update your server rewrite rules to use <code>%2$s</code> instead.' ), 'wp-content/blogs.php', 'wp-includes/ms-files.php' ) . '</div>';
    }

    By the way seem like redirecting FollowSymLinks MultiViews sometimes isn’t turned on. I mean this:

    <Directory /usr/local/var/www>
    Options FollowSymLinks MultiViews
    AllowOverride None
    Order Allow,Deny
    Allow from all
    </Directory>

    Where it should be:

    <Directory /usr/local/var/www>
    Options FollowSymLinks MultiViews
    AllowOverride All
    Order Allow,Deny
    Allow from all
    </Directory>

    in file: httpd.con

    Why the hell in WordPress MU they made redirect via .htaccess like this:

    domain.com/files/2011/02/file.jpg points to ms-files.php which translates that as domain.com/wp-content/blogs.dir/1/files/2011/02/file.jpg

    delete:
    #RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    To avoid ms-files.php…
    and replace with:

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

    or like in my .htaccess files:

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?local-transport/files/(.+) wp-content/blogs.dir/3/files/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?international-transport/files/(.+) wp-content/blogs.dir/4/files/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?buses/files/(.+) wp-content/blogs.dir/5/files/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?rescue-transport/files/(.+) wp-content/blogs.dir/6/files/$2 [L]

    Adress looks like https://www.domain.com/myrootblog/local-transport/

    in myrootblog is my wp installed in subdirectory (not in root folder)
    and local-transport is my second blog name etc.

    Hope it will be helpful.

    I did all the steps above and it’s still not giving me access to the editor. My .htacess file has this before the #BEGIN WordPress code I put in there. Is this affecting it?

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{HTTP_user_agent} !^.*(Android|2.0\ MMP|240×320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).*
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{DOCUMENT_ROOT}/home/content/j/u/n/jungl5/html/test2/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
    RewriteRule ^(.*) /home/content/j/u/n/jungl5/html/test2/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]

    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{HTTP_user_agent} !^.*(Android|2.0\ MMP|240×320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).*
    RewriteCond %{DOCUMENT_ROOT}/home/content/j/u/n/jungl5/html/test2/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
    RewriteRule ^(.*) /home/content/j/u/n/jungl5/html/test2/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
    </IfModule>

    # END WPSuperCache

Viewing 15 replies - 16 through 30 (of 31 total)
  • The topic ‘Version 3 upgrade – “wp-content/blogs.php is depricated……” Help’ is closed to new replies.