Compatible with FeedBurner moving to Google?

0 views
Skip to first unread message

matrixagent

unread,
Jan 26, 2009, 7:51:00 AM1/26/09
to Feed Stats Plugin
Hi there,

I switched my FeedBurner feeds over to Google some days ago and now
keep getting all values "zero" for the last two days.
Is this because the Feed-URL is now feeds2.feedburner.com ?

Bram Vandenbussche

unread,
Jan 26, 2009, 7:58:50 AM1/26/09
to feed-sta...@googlegroups.com
I'm pretty sure that's the reason, since the address where it fetches the stats remains static. I have the same problem but I'm guessing that this will change with a future update.

kind regards,

matrixagent

unread,
Jan 29, 2009, 10:13:18 AM1/29/09
to Feed Stats Plugin
Ok I got it figured out. In fs-comm.php you need to change from the
two lines with "http://api.feedburner.com/awareness/1.0/" to make use
of the new URL "https://feedburner.google.com/api/awareness/1.0/",
then it works fine again.

On Jan 26, 1:58 pm, Bram Vandenbussche <arbo...@gmail.com> wrote:
> I'm pretty sure that's the reason, since the address where it fetches the
> stats remains static. I have the same problem but I'm guessing that this
> will change with a future update.
> kind regards,
>

Bram Vandenbussche

unread,
Jan 29, 2009, 10:14:15 AM1/29/09
to feed-sta...@googlegroups.com
Gonna give that a try :)

Bram Vandenbussche

unread,
Jan 29, 2009, 10:44:49 AM1/29/09
to feed-sta...@googlegroups.com
I changed those values but nothing changes for me.
It didn't work before, and it still doesn't work.

Some testing reveals that the problem resides in this function: fetch_remote_xml in the file fs-comm.php which uses this API function: $remote = _fetch_remote_file($url);
And somewhere in there it goes blank, cause it always gives back this error:

Now I've added these lines in fetch_remote_xml:

$handle = fopen($url, 'r');
$contents = stream_get_contents($handle);
fclose($handle);
return $contents;

And this makes the whole thing work... anyone get this?

Jonathan Wilde

unread,
Jan 29, 2009, 11:38:57 PM1/29/09
to feed-sta...@googlegroups.com
@matrixagent
Thanks! I updated the FeedBurner API URL in the trunk build in the
wp-plugins.org SVN.

@Bram
Thanks! I like your solution. It's nice and simple. Clearly, I'm
going to have to stop relying on the WordPress HTTP API and move to a
standalone solution like yours. I'll be evaluating (and hopefully)
integrating a new standalone HTTP class this weekend.

I'll notify the list when a new release is out.

Thanks!
Jonathan
--
Jonathan Wilde
My Blog: www.speedbreeze.com

matrixagent

unread,
Jan 30, 2009, 12:18:46 AM1/30/09
to Feed Stats Plugin
You're welcome, Jonathan! Glad I could help. :)

Thanks for your work, Manuel
> > On Thu, Jan 29, 2009 at 4:14 PM, Bram Vandenbussche <arbo...@gmail.com>
> > wrote:
>
> >> Gonna give that a try :)
>
> >> On Thu, Jan 29, 2009 at 4:13 PM, matrixagent <mr.agent.sm...@gmail.com>

Bram Vandenbussche

unread,
Jan 30, 2009, 2:30:46 AM1/30/09
to feed-sta...@googlegroups.com
No problem mate!
I've finally got the plugin working now and it's awesome, so thank you for all the great work you put in there.

One I've noticed, is that the images still don't apear when you're testing the feed url. I fixed that manually the first time by placing the images  in an images folder, but after auto-updating everything was back as it was before. Maybe you can add this to the next release.

I'm curious about the reason as to why the Wordpress HTTP API is unable to fetch the feed that's given to it. What syntax should I use to get the error message provided by WP in this bit of code:

$remote = _fetch_remote_file($url);

if ( is_success($remote->status) ) {
return $remote->results;
} else {
return false;
}

My cure for the problem is currently this (in fs-comm.php):

function fetch_remote_xml($url) {
require_once(ABSPATH . WPINC . '/classes.php');
require_once(ABSPATH . WPINC . '/functions.php');
@include_once(ABSPATH . WPINC . '/http.php');

require_once(ABSPATH . WPINC . '/rss.php');

$handle = fopen($url, 'r');
if ($handle)
{
$contents = stream_get_contents($handle);
fclose($handle);
} else {
return false;
}

//die("xx: " . str_replace('<', '&lt;', str_replace('>', '&gt;', $contents)));

if ($contents != '')
{
return $contents;
}
else
{
$remote = _fetch_remote_file($url);

if ( is_success($remote->status) ) {
return $remote->results;
} else {
return false;
}
}
}

Glad I could be of service ;)

kikbak

unread,
Jan 30, 2009, 12:33:53 PM1/30/09
to Feed Stats Plugin
Hi, I've also got problems getting this to work. I've just installed
the plugin after already migrating my feedburner account to google. I
have uploaded the latest version you have in the trunk, but I'm
guessing you haven't finished updating yet, so will keep an eye on
this forum next week for your next version!

Just for your info...

I am using WP 2.7

I have entered my feedburner feed name into the settings and clicked
on the test button.

The plugin displays all of the widgets from my blog's sidebar
(strangely?!)

When I go to 'Feed Stats' I just get 'cannot access feedburner'
error...

Alexei.

On Jan 30, 7:30 am, Bram Vandenbussche <arbo...@gmail.com> wrote:
> No problem mate!I've finally got the plugin working now and it's awesome, so
> On Fri, Jan 30, 2009 at 5:38 AM, Jonathan Wilde <speedbre...@gmail.com>wrote:
>
>
>
> > @matrixagent
> > Thanks!  I updated the FeedBurner API URL in the trunk build in the
> > wp-plugins.org SVN.
>
> > @Bram
> > Thanks!  I like your solution.  It's nice and simple.  Clearly, I'm
> > going to have to stop relying on the WordPress HTTP API and move to a
> > standalone solution like yours.   I'll be evaluating (and hopefully)
> > integrating a new standalone HTTP class this weekend.
>
> > I'll notify the list when a new release is out.
>
> > Thanks!
> > Jonathan
>
> > On Thu, Jan 29, 2009 at 7:44 AM, Bram Vandenbussche <arbo...@gmail.com>
> > wrote:
> > > I changed those values but nothing changes for me.
> > > It didn't work before, and it still doesn't work.
> > > Some testing reveals that the problem resides in this
> > > function: fetch_remote_xml in the file fs-comm.php which uses this API
> > > function: $remote = _fetch_remote_file($url);
> > > And somewhere in there it goes blank, cause it always gives back this
> > error:
> > > Now I've added these lines in fetch_remote_xml:
> > > $handle = fopen($url, 'r');
> > > $contents = stream_get_contents($handle);
> > > fclose($handle);
> > > return $contents;
> > > And this makes the whole thing work... anyone get this?
>
> > > On Thu, Jan 29, 2009 at 4:14 PM, Bram Vandenbussche <arbo...@gmail.com>
> > > wrote:
>
> > >> Gonna give that a try :)
>
> > >> On Thu, Jan 29, 2009 at 4:13 PM, matrixagent <mr.agent.sm...@gmail.com>

Jonathan Wilde

unread,
Jan 31, 2009, 8:52:54 PM1/31/09
to feed-sta...@googlegroups.com
Thanks for reporting this!

On Fri, Jan 30, 2009 at 9:33 AM, kikbak <al...@kikbakmusic.com> wrote:
> I am using WP 2.7
>
> I have entered my feedburner feed name into the settings and clicked
> on the test button.
>
> The plugin displays all of the widgets from my blog's sidebar
> (strangely?!)

That's interesting. That may be because of how I'm loading a mini
instance of WordPress inside of the AJAX testing widget. When I
finish switching over to another HTTP stack, this will probably go
away. The test button will also probably be a bit faster, since it
won't have the overhead of WordPress.

:)

Thanks again,
Jonathan

Reply all
Reply to author
Forward
0 new messages