Forums

[Plugin: FeedList] Doesn't work with PHP 5 (9 posts)

  1. Stuarts
    Member
    Posted 6 months ago #

    I just upgraded to PHP 5.

    Feedlist immediately broke.

    The error was:

    Warning: Attempt to assign property of non-object in /home/mysite/public_html/wp-includes/rss.php on line 440

    Seems to be a bug in PHP 5.2 and 5.3 referenced here:

    You may want to fix this as PHP 4 will no longer be supported from Aug 2008.

    Regards,

    Stuart

    http://wordpress.org/extend/plugins/feedlist/

  2. Stuarts
    Member
    Posted 6 months ago #

    Little update on this.

    The above problem is fixed if you ask your host to install cURL support on your PHP 5 install.

    It seems it tends to be on PHP 4 installs, but not on the standard PHP 5 install.

    When my hosts added this, feedlist worked fine again without any modifications.

  3. Stuarts
    Member
    Posted 6 months ago #

    Spoke too soon on this one.

    It seems its an endemic problem with wordpress that is simply exacerbated by a switch to PHP 5.

    As it cropped up in another blog.

    My host had a search around and found the real solution on this thread here:

    http://wordpress.org/support/topic/120549?replies=8

    Nickel kindly volunteered the following solution in that thread that worked for me on all my blogs when I implemented it.

    Go to /home/yoursite/public_html/wp-includes/rss.php

    On line 440 (of rss.php), change this:

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

    to this:

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

    ie It would then look like this in the code:

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

    That worked great.

  4. danahuff
    Member
    Posted 4 months ago #

    I was having the same problem with RSS widgets in my sidebar, and this fix worked. Thanks for posting!

  5. Robocopper
    Member
    Posted 1 month ago #

    I have the same problem with this feed on WP 2.60:

    http://feeds.feedburner.com/AlbertMohlersBlog

    Warning: Attempt to assign property of non-object in /home/thinking/public_html/talk/wp-includes/rss.php on line 440

    My PHP version on Hostgator is 5.2.6.

    I shall try this fix. Many thanks 4 posting it!!!

  6. Robocopper
    Member
    Posted 1 month ago #

    Ok, i can confirm that this fix looks good. It has been implemented on several sites and it works in each case.

  7. finalcut
    Member
    Posted 1 month ago #

    thanks everyone for identifying the problem and finding a solution to it.

    I will include a patched version of rss.php in the feedList release so that folks who experience this problem can apply the fix if necessary.

    Cheers,
    Bill

  8. peterhw
    Member
    Posted 1 month ago #

    I haven't tried any of the above remedies yet. I have the same problem. The blog below should show 2 x RSS feeds one is ok the other isn't. Does this suggest a different problem.

    Warning: Attempt to assign property of non-object in
    /home/ppppppppp/public_html/toolbox/NewsB/wp-includes/rss.php on line 440

    I have around 10 similar feeds all created from same data and all just created in the last few days with Worpress v 2.6.2

    some seem OK and some give the above error message.

    This code is already inserted in my installation

    //if ( isset($rss) and $rss ) {
    if ( isset($rss) && (is_object($rss) ||(is_string($rss) && $rss=unserialize($rss))) ) { $rss->from_cache = 1;
    if ( MAGPIE_DEBUG > 1) {

    http://toolbox.best-one.info/NewsB/

    This blog has 2 feeds - 1 feed gets the message and the other doesn't. I don't understand too much about the files but I loaded rss.php into Excel and line 440 appeared to be checking for a cache file

    Any help / ideas appreciated

  9. elliottgoodwin
    Member
    Posted 1 month ago #

    The fix worked great. Thanks!

Reply

You must log in to post.

About this Topic

Tags