WordPress.org

Ready to get started?Download WordPress

Forums

fetch_feed Function Not Working (47 posts)

  1. gbrown88
    Member
    Posted 3 years ago #

    Hi,

    I am running a WordPress network site and am trying to include feeds from other sites, outside my network, using the fetch_feed function. I have the same design set up on a regular install of WordPress and it is working fine but on the network blog its not. This is the error:

    Fatal error: Call to undefined function fetch_feed()

    Thanks
    grant

  2. What's your code? If it's long (more than 10 lines or so) use pastebin.com and post a link :)

  3. gbrown88
    Member
    Posted 3 years ago #

    Heres the code: http://pastebin.com/QD6EC5Zx

    Thanks

  4. gbrown88
    Member
    Posted 3 years ago #

    Tried, fetch_rss, no go. For some reason its not recognizing the ABSPATH . WPINC variables either.

  5. gbrown88
    Member
    Posted 3 years ago #

    And that article you sent says it only applies to WordPress 2.8 and earlier.. There's a link to one for newer versions and that's the one I used.

  6. Oh HAH I thought I grabbed the right one....

    Sorry about that.

    Are you trying to do this in a posts or on the sidebar? I thought the RSS widget came default these days.

  7. gbrown88
    Member
    Posted 3 years ago #

    Doing it in the footer, not in a widget area, just hard coding it in.

  8. Looking at http://www.rantsports.com right now the feeds are kicking back "The feed is either empty or unavailable."

    Neither here nor there... Try reuploading the wp-admin and wp-includes folders. Maybe a file got corrupted.

  9. gbrown88
    Member
    Posted 3 years ago #

    I'll give the reuploads a try this evening. Thanks

  10. gbrown88
    Member
    Posted 3 years ago #

    Just re-installed wp-admin and wp-includes.. doesn't seem to be fixing it.. should I click the Update Network button?

  11. Yes, update the network. That'll kick all the sites a bit.

  12. gbrown88
    Member
    Posted 3 years ago #

    Alright, I'm ran the update... still doesn't want to import the feeds :(

  13. Does it work if you try it in a widget?

    Basically I'm wondering if feed imports work at ALL on your site.

  14. And you're filling in the parameters?

    http://codex.wordpress.org/Function_Reference/fetch_feed

  15. gbrown88
    Member
    Posted 3 years ago #

    Just added a Feed to the sidebar, running fine.

    I did copy those parameters and filled everything.

    Thanks

  16. Try changing

    require('http://www.rantsports.com/wp-includes/feed.php');

    to

    include_once('http://www.rantsports.com/wp-includes/feed.php');

  17. gbrown88
    Member
    Posted 3 years ago #

    I just did, still not working.

    I did originally have it at include_once. Hosting company was trying to help as well and suggested trying that change, but I believe they've given up.

  18. gbrown88
    Member
    Posted 3 years ago #

    Still not working if anyone has suggestions.

    I did try something else, I installed SimplePie.org and tried using it through there, but now I get this error at the bottom of my site:

    Warning: ./cache/9ee5fb074d98a66dc4eff5885d240951.spc is not writeable in http://www.rantsports.com/php/simplepie.inc on line 1779

    Any suggestions?

  19. Turn off ALL your plugins and try it?

  20. gbrown88
    Member
    Posted 3 years ago #

    Alright, what would be the steps to creating a mirrored version of my site so I don't have to turn them off on the live site?

    Thanks

  21. Copy everything, search for olddomain and replace with new... But.

    Sometimes you gotta turn 'em off. We can try it simpler. Do you have any caching plugins? Turn THAT off.

  22. gbrown88
    Member
    Posted 3 years ago #

    Am not running any caching currently

  23. Warning: ./cache/9ee5fb074d98a66dc4eff5885d240951.spc is not writeable in http://www.rantsports.com/php/simplepie.inc on line 1779

    Then that makes even less sense...

  24. gbrown88
    Member
    Posted 3 years ago #

    Forgot to mentioned that I changed up the code a bit:

    http://pastebin.com/eErL4bes

    I installed simplepie.org and followed their install instructions. I've tried several different CHMOD permissions, nothing seems to be working.

  25. Do the plugin dance, man :( Sucks, but that's all I can think of.

    I tossed the original code (this http://pastebin.com/QD6EC5Zx with only removal of your images and direct calls to your site) up on http://test.ipstenu.org/ and if you look in the footer you'll see that it works.

  26. gbrown88
    Member
    Posted 3 years ago #

    Alright, thanks. I also pasted it on a single install version of the site and it worked to. Do you think you could be related to using subdirectories?

    Thanks

  27. gbrown88
    Member
    Posted 3 years ago #

    Alright, so just played the plugin game, with little success. I uninstalled everything one by one except for 2 plugins that I don't believe I can afford to shutoff, otherwise they'll mess up several things within my site, those are:

    Twitter Blackbird Pie
    WordPress MU Sitewide Tags Pages

    Know of any other scripts I can try using for this?

    Thanks

  28. Do you think you could be related to using subdirectories?

    It would be VERY unlikely.

    You can turn off Twitter Blackbird Pie momentarily for a test, but ...

    It's either themes or plugins :/

  29. gbrown88
    Member
    Posted 3 years ago #

    Turned off Blackbird Pie, no success.

    Is there anything in my header I could be missing that would be needed?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags