Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Bird Feeder and WordPress

Trying to install Bird Feeder with WordPress 2.1.

I installed the Pepper. Added the PHP code to the top of the RDF, RSS and RSS2 php files but I’m a bit lost as to which links to replace.

The links seem longer than the Bird Feeder ones and I’m a bit scared to cut and paste blindly.

Help… :-)

imijltd
Minted
Posted on Jan 30, '07 at 06:52 am

Taking the wp-rss2.php file as an example…

After making sure the new BIRDFEED php block has been inserted inbetween the header block and xml version=”1.0” block (to make sure the call to header get’s to do it’s job before Bird Feeder otherwise it’ll complain)…

There are two lines in the feed’s xml, the first is inside a tag, and the second is inside a tag, it’s the second one inside the tag that is to be changed.

Copy in to replace everything inside the tags so that it ends up like…

Hopefully that’ll work, although my blog is so low volume that I’ll probably not see any Seed clicks from it for a while!

imijltd
Minted
Posted on Jan 30, '07 at 07:07 am

Ouch, in my post above I used the <link> tags which seemed to work at first, but now they have been eaten!

imijltd
Minted
Posted on Jan 30, '07 at 07:14 am

So here it is again, using the lt/gt html codes, fingers crossed!…

Taking the wp-rss2.php file as an example…

After making sure the new BIRDFEED php block has been inserted inbetween the header block and xml version=”1.0” block (to make sure the call to header get’s to do it’s job before Bird Feeder otherwise it’ll complain)…

There are two <link> lines in the feed’s xml, the first is inside a <channel> tag, and the second is inside an <item> tag, it’s the second one inside the <item> tag that is to be changed.

Copy in to replace everything inside the <link></link> tags so that it ends up like…

<link><?php $BirdFeeder->seed(get_the_title_rss(), get_permalink()); ?></link>

Hopefully that’ll work, although my blog is so low volume that I’ll probably not see any Seed clicks from it for a while!

After installing using the process outlined in the README and double checking here, I’m still getting XML parsing errors:

XML Parsing Error: no element found Line Number 1, Column 1:

It seems to follow the include… any ideas?

imijltd
Minted
Posted on Jan 30, '07 at 12:43 pm

Make sure there are no blank lines inbetween php blocks.

I made the mistake of keeping things neat by leaving a blank line before and after the opening and closing <?php and ?> of the inserted code and got a similar error.

Shaun Inman
Mint/Pepper Developer
Posted on Jan 30, '07 at 01:18 pm

imijltd, you can use Markdown to format your code so you don’t have to handwrite your angle brackets and such. Thanks for jumping in with suggestions.

JChristopher, are you using Wordpress?

Shaun: Yes, I’m using WordPress. 2.1

I’ve ensured there are no blank lines between the PHP blocks.

Im getting this in each feed item

“WordPress database error: [Table ‘somefool_mint.wp_tags’ doesn’t exist] SELECT DISTINCT t.tag FROM wp_tags t INNER JOIN wp_post2tag p2t ON p2t.tag_id = t.tag_id INNER JOIN wp_posts p ON p2t.post_id = p.ID AND p.ID=1728 ORDER BY t.tag ASC”

BTW, mint seems to be picking up the feeds and clicks fine, but that is in every feed item. Ive tried RSS2 and Atom so far

BTW, Ive re-enabled the RSS2 one (feed://www.somefoolwitha.com/feed/) in case you need to check it.

OK… I started with a clean slate and have everything working now. (I guess?!) I edited WP-RDF, WP-RSS and WP-RSS2 in the exact same manner; naming the feeds Articles, Articles RSS and Articles RSS 2 respectively.

I placed global $Mint; directly above the BIRDFEED define and nowhere else.

I ensured that there were no empty blocks present in any of the PHP templates.

In my Feeds preferences (Mint) I now have an Articles RSS2 feed. Shouldn’t I also have an Articles RSS feed? And what about Atom? It looks completely different than the RSS templates.

Thanks for all of the help… this is the code I am using at the top of the templates…

<?php if (empty($wp)) { require_once(‘wp-config.php’); wp(‘feed=rdf’); }

header(‘Content-type: application/rdf+xml; charset=’ . get_option(‘blog_charset’), true); $more = 1;

?><?php global $Mint; define(‘BIRDFEED’, ‘Articles’); include($_SERVER[‘DOCUMENT_ROOT’].’/feeder/index.php’); ?>

It’s just occurred to me, is this because I dont run mint and wp in the same db?

“WordPress database error: [Table ‘somefool_mint.wp_tags’ doesn’t exist] SELECT DISTINCT t.tag FROM wp_tags t INNER JOIN wp_post2tag p2t ON p2t.tag_id = t.tag_id INNER JOIN wp_posts p ON p2t.post_id = p.ID AND p.ID=1728 ORDER BY t.tag ASC”

Ive disabled this in my feeds now.

Surely Im not the only one to keep my db’s separate?

The README instructions included with Birdfeeder didn’t work for me in WP 2.1. It broke my feeds. But when I used the mint global posted by sannixtudio (above), which is different from the README.txt file, Birdfeeder works now. Very nice.

Shaun Inman
Mint/Pepper Developer
Posted on Jan 30, '07 at 10:05 pm

Hey guys, sorry for the radio silence on this matter. I’ve been dealing with the PayPal issue all day. I’m going to run some tests to see what’s going on. Bird Feeder was beta tested with Wordpress (2.0.4 I think) with Mint installed in a separate database.

Im using WP 2.0.5 and my Mint is in a different DB.

Jay C
Minted
Posted on Jan 31, '07 at 01:45 pm

Can we get code examples…a complete how to on this subject? Very confusing.

Jay C
Minted
Posted on Jan 31, '07 at 02:10 pm

I am doing the above steps, and when I access my sites rss feed by clicking on the RSS icon in Firefox, I get this error.

Fatal error: Call to a member function logErrorNote() on a non-object in /usr/local/www/jcontonio.com/mint/app/lib/pepper.php on line 56

I did all the steps above and incerted the code on the wp-rss.php, wp-rss2.php, wp-atom.php, wp-rdf.php It comes up with a couple subscribes today but then it gives me this error when I click on the rss, rss2 and atom link on my site.

“This page contains the following errors: error on line 2 at column 1: Extra content at the end of the document Below is a rendering of the page up to the first error.”

The rdf downloads a weird file I put it here: so you guy can see it (jensolson.com/blog.html) I put a html extention on it because it did not have a extention when I downloaded it.

I have wordpress 2.0.6

I had some issues with the /feeder/ bit for a while, tried installing this all fresh. I’ve got this code

<?php global $Mint; define(‘BIRDFEED’, ‘Articles’); include($_SERVER[‘DOCUMENT_ROOT’].’/feeder/index.php’); ?>

at the top of wp-atom.php, wp.rdf.php, wp-rss.php & wp-rss2.php before the xml version tag, with no whitespace. I have this code for the link tags:

<link><?php $BirdFeeder->seed(get_the_title_rss(), get_permalink()); ?></link>

I’ve tried subscribing to my own feed, and seeing if anything registers in Mint, but no such luck. All of my posts show up fine in the feed itself, and I’m not getting any MySQL errors or anything, just not sure if it’s working yet or not…

By the way, what should I see if I visit the /feeder/index.php? The read me says to do so, and all I get is a blank page…

Oh, if you want to help out, here’s the feed link: www.jeffbyrnes.net/feed/

So, I spoke too soon. Here’s what I’m seeing now:

WordPress database error: [Table 'mint_jb.wp_users' doesn't exist]
SELECT * FROM wp_users WHERE ID = '1' LIMIT 1

Any ideas? I’m quite lost…

Muskie
Minted
Posted on Feb 06, '07 at 02:17 pm

I tried to get this work. I don’t get any errors, but I’m not sure it is working correctly.

I upgraded to WordPress 2.1 shortly after upgrading to Mint 2.0 I use blog.muschamp.ca for my blog and I put the feeder directory at muschamp.ca/feeder

Because of how subdomains are handled on my server mint, the blog, and the feeder directory are all actually at the same place in reality…

I followed the instructions and when no data showed up in the first two days, I went and subscribed and unsubscribed to the feed from my blog on my front page using Safari. It sent the last three postings but nothing seemed to show up in Mint.

I don’t normally use Safari to read feeds so I don’t know much about how it works, but it seemed to subscribe me fine…

jaredb
Third-Party Pepper Developer
Posted on Feb 07, '07 at 10:54 pm

I made a WordPress plugin to handle this, so you don’t have to edit the WordPress feed files.

Works for me on WordPress 2.1, with Mint in its own database (not in WordPress’s), and no other feed-modifying plugins installed.

You must be logged in to reply. Login above or create an account

Hey there, I have officially suspended sales and support of Mint. The Create Account, Add License, Transfer License, and Contact forms have been disabled. Existing customers may continue to login and download Mint.

More info Continue