gbrown88
Member
Posted 1 year 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
What's your code? If it's long (more than 10 lines or so) use pastebin.com and post a link :)
gbrown88
Member
Posted 1 year ago #
gbrown88
Member
Posted 1 year ago #
Tried, fetch_rss, no go. For some reason its not recognizing the ABSPATH . WPINC variables either.
gbrown88
Member
Posted 1 year 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.
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.
gbrown88
Member
Posted 1 year ago #
Doing it in the footer, not in a widget area, just hard coding it in.
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.
gbrown88
Member
Posted 1 year ago #
I'll give the reuploads a try this evening. Thanks
gbrown88
Member
Posted 1 year ago #
Just re-installed wp-admin and wp-includes.. doesn't seem to be fixing it.. should I click the Update Network button?
Yes, update the network. That'll kick all the sites a bit.
gbrown88
Member
Posted 1 year ago #
Alright, I'm ran the update... still doesn't want to import the feeds :(
Does it work if you try it in a widget?
Basically I'm wondering if feed imports work at ALL on your site.
gbrown88
Member
Posted 1 year ago #
Just added a Feed to the sidebar, running fine.
I did copy those parameters and filled everything.
Thanks
Try changing
require('http://www.rantsports.com/wp-includes/feed.php');
to
include_once('http://www.rantsports.com/wp-includes/feed.php');
gbrown88
Member
Posted 1 year 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.
gbrown88
Member
Posted 1 year 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?
Turn off ALL your plugins and try it?
gbrown88
Member
Posted 1 year 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
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.
gbrown88
Member
Posted 1 year ago #
Am not running any caching currently
Warning: ./cache/9ee5fb074d98a66dc4eff5885d240951.spc is not writeable in http://www.rantsports.com/php/simplepie.inc on line 1779
Then that makes even less sense...
gbrown88
Member
Posted 1 year 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.
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.
gbrown88
Member
Posted 1 year 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
gbrown88
Member
Posted 1 year 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
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 :/
gbrown88
Member
Posted 1 year ago #
Turned off Blackbird Pie, no success.
Is there anything in my header I could be missing that would be needed?