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

    https://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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Couldn’t see the problem on your site – did you find a fix? I’m having the same problem at https://www.blogtender.com/

    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.

    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 https://www.meettheceo.com/wordpress/.
    How do I fix this? And what is it?

    Many thanks.
    Jennifer

    mzeecedric

    (@mzeecedric)

    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?

    Thread Starter nickel

    (@nickel)

    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.

    Thread Starter nickel

    (@nickel)

    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))) ) {

    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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘rss.php problems’ is closed to new replies.