WordPress.org

Ready to get started?Download WordPress

Forums

rss.php problems (8 posts)

  1. nickel
    Member
    Posted 6 years ago #

    Hi all,

    I just migrated my site a new host and all is well except for a problem with a feed that I pull in and display. See here:

    http://www.fivecentnickel.com/

    In the footer I have a block of RSS feeds, and the top left one is erroring out with this:

    ----------
    Warning: Attempt to assign property of non-object in /web/sites/pbmedia/fivecentnickel.com/wp-includes/rss.php on line 428

    Warning: Invalid argument supplied for foreach() in /web/sites/pbmedia/fivecentnickel.com/wp-content/themes/lightCMSfcn/footer.php on line 17
    ----------

    I've quadruple checked the code, and it's fine. Swap another feed into that spot, and it's fine. Move that feed into another cell and it's busted.

    I have a friend that is running this same feed in his footer and it's working fine (we're both running WP2.2).

    Can anyone provide any troubleshooting suggestions?

    Thanks.

  2. TomHenderson
    Member
    Posted 6 years ago #

    Couldn't see the problem on your site - did you find a fix? I'm having the same problem at http://www.blogtender.com/

  3. TomHenderson
    Member
    Posted 6 years ago #

    I added a / to the end of the url for the feed which seems to have fixed it. Strange that it used to work though.

  4. meettheceo1013
    Member
    Posted 6 years ago #

    Hi Tom

    This just popped up on my blog:
    Warning: Attempt to assign property of non-object in /home/meetthe/public_html/wordpress/wp-includes/rss.php on line 428

    Unknown Feed
    An error has occured; the feed is probably down. Try again later.

    My blog is at http://www.meettheceo.com/wordpress/.
    How do I fix this? And what is it?

    Many thanks.
    Jennifer

  5. mzeecedric
    Member
    Posted 6 years ago #

    I have this problem on 2.3. The / at the end does only fix temporary. Got the error back after some time. Removed the / at the end and the feed is back. Any help someone?

  6. nickel
    Member
    Posted 6 years ago #

    My webhost actually debugged rss.php and got it working again. I can't recall the exact changes that they made, but I can try to dig them up.

  7. nickel
    Member
    Posted 6 years ago #

    Here you go...

    On line 427, change this:

    if ( isset($rss) and $rss ) {

    to this:

    if ( isset($rss) && (is_object($rss) ||(is_string($rss) && $rss=unserialize($rss))) ) {

  8. Stuarts
    Member
    Posted 5 years ago #

    Nickel - Thanks for that mate.

    Saved me a whole bunch of hassle!

    Quick question, which I wonder if you or anyone else can answer.

    I upgraded to PHP 5 and then had this problem. I imagine because it is object oriented? And the fix you mention works fine to correct it.

    However, I notice that within the wp-includes folder are also the following files that seem to relate to feeds in one way or another.

    atomlib.php
    feed-atom-comments.php
    feed-atom.php
    feed-rdf.php
    feed-rss.php
    feed-rss2-comments.php
    feed-rss2.php
    feed.php
    rss-functions.php

    Do these also need to be altered in some way to ensure that this problem doesn't crop up in any way?

    Or else to work ok with PHP 5?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags