Forums

fetch_feed Function Not Working (47 posts)

  1. gbrown88
    Member
    Posted 10 months 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. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    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 9 months ago #

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

    Thanks

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

  5. gbrown88
    Member
    Posted 9 months ago #

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

  6. gbrown88
    Member
    Posted 9 months 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.

  7. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    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.

  8. gbrown88
    Member
    Posted 9 months ago #

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

  9. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    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.

  10. gbrown88
    Member
    Posted 9 months ago #

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

  11. gbrown88
    Member
    Posted 9 months ago #

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

  12. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

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

  13. gbrown88
    Member
    Posted 9 months ago #

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

  14. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    Does it work if you try it in a widget?

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

  15. Andrea_r
    team pirate
    Posted 9 months ago #

    And you're filling in the parameters?

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

  16. gbrown88
    Member
    Posted 9 months ago #

    Just added a Feed to the sidebar, running fine.

    I did copy those parameters and filled everything.

    Thanks

  17. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    Try changing

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

    to

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

  18. gbrown88
    Member
    Posted 9 months 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.

  19. gbrown88
    Member
    Posted 9 months 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?

  20. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    Turn off ALL your plugins and try it?

  21. gbrown88
    Member
    Posted 9 months 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

  22. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    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.

  23. gbrown88
    Member
    Posted 9 months ago #

    Am not running any caching currently

  24. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

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

    Then that makes even less sense...

  25. gbrown88
    Member
    Posted 9 months 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.

  26. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

    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.

  27. gbrown88
    Member
    Posted 9 months 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

  28. gbrown88
    Member
    Posted 9 months 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

  29. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 9 months ago #

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

  30. gbrown88
    Member
    Posted 9 months ago #

    Turned off Blackbird Pie, no success.

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

Reply »

You must log in to post.

About this Topic

Tags