WordPress.org

Ready to get started?Download WordPress

Forums

RSS feed loading instead of blog page (23 posts)

  1. dnagy01
    Member
    Posted 3 years ago #

    All:

    Thanks in advance for any help and pardon the length. It takes some time to explain the problem and all the steps taken so far to try and resolve it.

    We have an old 1.33 wordpress mu install that we are trying to update to a current 3.x version and move it out to an Amazon EC2 instance. I replicate the db by a mysql dump read-in and copy the files over to a new spot and verify that I have a solid working copy. I then work all the steps in the upgrade, following the upgrade instructions for each of the versions that are on the WP site. When all is done we have a working WP site...kind of.

    The site was a mu site and is now a standard WP network site with a main site and sub-directory setup for the network blogs. The issue arises at random times and manifests itself in one of two ways. The most obvious is that when you go to any of the network blogs, you will occasionally see an rss feed for a random blog on the site. The second way it manifests is that if you go to one of the /blog/feed urls you will occasionally see the rss feed for a different blog on the site. If one of these anomalies happens in firefox, a forced refresh will always bring up the correct page/feed/. In chrome with a rss feeder plugin, a refresh when looking at an aberrant rss feed brings up an error relating to no data in the feed. The url shows as the url to the correct site, it does not change (no redirect).

    In trying to track down the problem I wrote a wget script to get a blog 100 times to try and see the error occurring. Here is a snipit of it:

    2011-03-30 13:35:05 URL:http://blog.law.cornell.edu/tbruce/ [131869] -> "-" [1]
    15
    2011-03-30 13:35:06 URL:http://blog.law.cornell.edu/tbruce/ [131869] -> "-" [1]
    14
    2011-03-30 13:35:07 URL:http://blog.law.cornell.edu/tbruce/ [131869] -> "-" [1]
    13
    2011-03-30 13:35:08 URL:http://blog.law.cornell.edu/tbruce/ [131869] -> "-" [1]
    12
    2011-03-30 13:35:08 URL:http://blog.law.cornell.edu/tbruce [12281/12281] -> "-" [1]
    11
    2011-03-30 13:35:08 URL:http://blog.law.cornell.edu//tbruce [12281/12281] -> "-" [1]
    10
    2011-03-30 13:35:09 URL:http://blog.law.cornell.edu/tbruce/ [131869] -> "-" [1]
    9
    2011-03-30 13:35:10 URL:http://blog.law.cornell.edu/tbruce/ [12281/12281] -> "-" [1]
    8
    2011-03-30 13:35:11 URL:http://blog.law.cornell.edu/tbruce/ [131869] -> "-" [1]
    7
    2011-03-30 13:35:12 URL:http://blog.law.cornell.edu/tbruce/ [131869] -> "-" [1]
    6
    2011-03-30 13:35:13 URL:http://blog.law.cornell.edu/tbruce/ [131869] -> "-" [1]
    5

    Note the file sizes being downloaded. You can see where we get the aberrant pages.

    Today I did a brand new WP 3.1 install and imported the data for a few blogs, switched the virthost docroot and the problem still persists.

    I figured it was some kind of caching issue, so I installed wp super-cache to try and fix. That mitigates the problem, but does not solve it. It does not happen as often, but it still happens.

    So has anybody seen this? Has anybody seen anything like this (it may manifest as a browser asking to download a file if there is no rss reader present)? Since it has persisted through several upgrade attempts and and fresh install/import experiment I assume that it is either system related (php, apache) outside wordpress or a witches brew of wordpress and something to do with the system or platform (EBS store write caching issue? But then more would be seeing it).

    Any advice is appreciated

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Moved to Multisite...

  3. Do the amazon severs do any caching there? Or any cloud type distribution?

  4. dnagy01
    Member
    Posted 3 years ago #

    Not due to the fact that they are in the cloud. This is a production server for other content so we would have seen some aberrant behavior there as well.

  5. Did you also update the htaccess rewrite rules?

    Did you also upgrade plugins?

    those woudl be the first two places I'd look.

  6. dnagy01
    Member
    Posted 3 years ago #

    >>Did you also update the htaccess rewrite rules?
    Yup

    >>Did you also upgrade plugins?
    Upgraded or removed

    >>those woudl be the first two places I'd look.

    Yeah I thought about that, that is why I then did a clean 3.1 install (no legacy files) and imported the blogs. Symptom persisted.

  7. Can you share your whole .htaccess here?

  8. dnagy01
    Member
    Posted 3 years ago #

    This is from the version that I took from 1.33 > 3.0

    1006 # less .htaccess
    RewriteEngine On
    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    #RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [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]

    #limit spam
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
    RewriteCond %{HTTP_REFERER} !.*blog.law.cornell.edu.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]

    ========================

    This is the one from the new 3.1 install

    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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    ========================

    Also perhaps of note is that this is being run from within an apache 2.0 virthost.

  9. This is from the version that I took from 1.33 > 3.0

    Where is that one? If it's a folder up, that may be WHY it's being a bit odd.

    Turn the first one into this:

    #limit spam
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
    RewriteCond %{HTTP_REFERER} !.*blog.law.cornell.edu.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
    
    # WordPress Start
    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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # WordPress End

    (The 'new' htaccess rules from 3.1 actually work fine in 3.0, what you had was the old WPMU stuff and while it MOSTLY works, it can cause conflicts, so may as well clean it up even though I doubt it'll make a difference.)

  10. dnagy01
    Member
    Posted 3 years ago #

    >>Where is that one? If it's a folder up, that may be WHY it's being a bit odd.

    It is in the docroot for the virthost. So if the wordpress install is in /blog, that is where the .htaccess is.

    I will make the change. I do however have a clean 3.1 install with only the config generated .htaccess rules. The behavior is still there.

  11. I do however have a clean 3.1 install with only the config generated .htaccess rules. The behavior is still there.

    but only *after* you imported the old blogs, right?

    If so, I'm guessing something in the db somewhere.

  12. dnagy01
    Member
    Posted 3 years ago #

    but only *after* you imported the old blogs, right?

    If so, I'm guessing something in the db somewhere.

    Yes I imported a subset of the blogs (some of them were not unused, so only a total of 4 blogs were moved)

    Yes, I thought about a mysql issue. However it is behaving properly using the 1.3 install base. And I do not have enough console time in on what the WP data looks like in mysql to notice something amiss. The way I had to do the import was taking it from the upgraded 3.0 and importing it into the 3.1. The 1.33 exported file would not go into a 3.0. But note also that I switched environments at the same time. Moved from an older brick and mortar server to an EC2 instance. So I also thought about a php issue, or even an apache issue that is just somehow incompatible with WP.

  13. What's this 1.33 install base you're talking about?

  14. dnagy01
    Member
    Posted 3 years ago #

    From my initial post:

    We have an old 1.33 wordpress mu install that we are trying to update to a current 3.x version and move it out to an Amazon EC2 instance.

    So we copied the 1.33 off to the EC2 (replicated the db as well) and then upgraded it. But the old 1.33 is still sitting on the brick and mortar server with it's database intact, we just move the dns entry around to point to the right host. As of right now, because of the issues with the upgrade, we are currently serving off the old 1.33. The blogs get a moderate about of traffic, but the RSS's are picked up all over the place and those also exhibit aberrant behavior so I really can't leave the broken WP serving to the public while I bang on it for any amount of time.

  15. Yea, I was sorta hoping I mis-read that.

    How did you upgrade? Did you just jump from 1.33 to 3.1 or did you do a step upgrade?

    I would have done 1.33 -> 1.5 -> 2.6 -> 2.9 -> 3.1

    As we say in Upgrading WordPress Extended

    If plan on upgrading across more than two major releases, please consider upgrading incrementally to avoid potential conflicts. For example, if you plan on upgrading from 2.5 to 3.1, upgrade to 2.7 first, followed by 2.9, and finally 3.1. Older versions of WordPress can be downloaded from the release archive.

  16. dnagy01
    Member
    Posted 3 years ago #

    No no, worked the steps, right off the docs from the WP site.

  17. Did you do 1.33 -> 1.5 -> 2.6 -> 2.9 -> 3.1? I'm asking for reasons :) This is a moment where being exact and specific is helpful.

    And you upgraded to the WPMU versions there-of, NOT the regular WP ones?

    These directions: http://codex.wordpress.org/Upgrading_WPMU

    Or these: http://codex.wordpress.org/Upgrading_WordPress_Extended

  18. dnagy01
    Member
    Posted 3 years ago #

    I made backups as I went so I have a record

    drwxrwxrwx 4 apache apache 4096 Mar 16 13:58 wp-includes_133
    drwxrwxrwx 4 apache apache 4096 Mar 17 11:47 wp-includes_150
    drwxrwxrwx 5 apache apache 4096 Mar 17 12:18 wp-includes_26
    drwxrwxrwx 5 apache apache 4096 Mar 17 12:45 wp-includes_27
    drwxrwxrwx 6 apache apache 4096 Mar 17 13:29 wp-includes_283
    drwxrwxrwx 6 apache apache 4096 Mar 17 13:45 wp-includes_29

    then to 3.0. I got to 3.1 by doing a scratch install and importing from the 3.0. I think mostly getting downloads from the links in the docs. I do seem to remember having to go slogging through the archives for the last few.

  19. dnagy01
    Member
    Posted 3 years ago #

    These directions: http://codex.wordpress.org/Upgrading_WPMU

    Followed these

  20. K. Just making sure. I didn't want to go down one road and find out you'd done something else.

    Why didn't you upgrade from 3.0 to 3.1 though?

  21. dnagy01
    Member
    Posted 3 years ago #

    Arbitrary, from 3.0 > 3.1 I could just use the internal-click-to-upgrade, so I put it into production and it started behaving badly so I never got that far.

  22. Richard K
    Member
    Posted 2 years ago #

    Hi,
    How has this ended? We are also getting these RSS pages instead of normal pages randomly and no idea what is causing them... We are running WP 3.2.1 Network and we started the project in WP 3.1, so there is no old stuff. What could cause the fact that RSS is being displayed instead of the normal page? We hardly use any external plugins and i have checked all of them by deactivating..

    Could this have anything to do with:
    <link rel="alternate" type="application/rss+xml" title="RSS" href="http://url"> ???

    This seems like a plausible reason why the page occasionally and randomly display's RSS? Perhaps the page request is interpreted incorrectly.

  23. mintydog
    Member
    Posted 2 years ago #

    This problem also occurs on sites that are not WPMU, and never have been. I've got it occurring on a WP3.1.3 and a WP 3.2.1 site, and I've seen it on sites I've visited that are running various versions of 3.x, so thinking that it has something to do with just WPMU is going to throw you off track. I've also removed the "<link rel ..." line from the template trying to rule that out and the problem still occurs.

Topic Closed

This topic has been closed to new replies.

About this Topic