Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2006-08-26 16:51:20

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: [contrib] Textpattern Planet

colak wrote:

Hi Bert, I started using simplepie as from yesterday in the home page of neme.org site. The idea was that I wanted to create a unifying interface between 2 txp installs and a punBB forum. All is working just fine. The site is hosted in textdrive.

Hey colak,

I’m using the Textpattern plugin made by SimplePie also, we just can’t figure out why it fails to read feeds coming from certain servers. I’m working with the developers on this issue, hopefully we’ll get it working soon.

I figure neme.org and all the sites it’s feeding from are all on Textdrive? Would you mind telling me what version of PHP and Curl your site is using, thanks.

Last edited by hcgtv (2006-08-26 16:52:27)

Offline

#38 2006-08-26 17:02:39

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,012
Website GitHub Mastodon Twitter

Re: [contrib] Textpattern Planet

hcgtv wrote:
I figure neme.org and all the sites it’s feeding from are all on Textdrive? Would you mind telling me what version of PHP and Curl your site is using, thanks.

here’s the info from the diagnostics

PHP version: 5.1.4
Server Local Time: 2006-08-26 16:58:14
MySQL: 4.1.18-log
Locale: en_GB.ISO_8859-1
Server: Apache
PHP Server API: cgi-fcgi
Server OS: FreeBSD 5.4-STABLE

How do I get the Curl version?

A note: All sites I am getting the feeds from belong to the same domain. Just thought I should clarify that one.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#39 2006-08-26 17:47:02

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: [contrib] Textpattern Planet

colak wrote:

How do I get the Curl version?

In your PunBB forum, go to the Administration section and click Show info next to the PHP version.

On my laptop, I’m running PHP 5.1.4 and all was running well. It’s only on my VPS running PHP 4.3.10 that I’m having issues.

Offline

#40 2006-08-27 06:26:09

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,012
Website GitHub Mastodon Twitter

Re: [contrib] Textpattern Planet

Thanks:) Here ya go

libcurl/7.14.0 OpenSSL/0.9.7e zlib/1.2.2


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#41 2006-08-27 14:01:20

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: [contrib] Textpattern Planet

colak wrote:

libcurl/7.14.0 OpenSSL/0.9.7e zlib/1.2.2

My laptop: libcurl/7.14.0 OpenSSL/0.9.8a zlib/1.2.3

Spent a good part of yesterday reading up on Curl, very powerful capabilities. Didn’t come across anything that would indicate why PHP 4.3.10 would be having issues, but I’ll keep Googling, the answer is out there somewhere.

Once Debian Etch becomes stable later this year, I’ll update the VPS to PHP 5.

Offline

#42 2006-08-28 16:29:31

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: [contrib] Textpattern Planet

Heya Bert, check on this:
allow_url_fopen (in php – maybe the .ini file?)
Read this

I hope that helps…maybe?

Offline

#43 2006-08-28 16:45:49

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: [contrib] Textpattern Planet

Walker wrote:

Heya Bert, check on this:
allow_url_fopen (in php – maybe the .ini file?)

I have allow_url_fopen set to on in the php.ini file.

I think it’s an issue with Curl running on Debian’s PHP 4.3.10, we haven’t been able to figure out why but we’re still searching for a reason. I’m grabbing SimplePie’s SVN daily, hoping to find a fix included.

Offline

#44 2006-08-28 17:26:46

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: [contrib] Textpattern Planet

Well, the simplePie guys did say that it falls back to use other methods if curl is not available. Can you force those other methods so that they’re tried first?

Offline

#45 2006-08-29 00:17:18

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: [contrib] Textpattern Planet

Walker wrote:

Well, the simplePie guys did say that it falls back to use other methods if curl is not available. Can you force those other methods so that they’re tried first?

In SimplePie it will use Curl if it finds it loaded but it doesn’t fall back to use fsockopen if the feed fails while using Curl.

fsockopen reads Textdrive feeds just fine cause rss_fetch uses it as it’s preferred method, but rss_fetch freaks out on Textpattern 4.0.3 feeds.

At this point I feel like I’m half way through playing a game of Clue, rather than give up I want to know if it’s Colonel Mustard with the Candlestick in the Observatory ;)

Offline

#46 2006-08-29 03:18:47

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: [contrib] Textpattern Planet

What the most recent finding means is that it is not your server, and it is not DNS, it is either: SimplePie or the RSS feeds you’re trying to grab. One of the two is at fault. We know this because Zeldman’s feed worked both by IP and by Domain (ruling out curl & DNS).

Offline

#47 2006-08-30 20:10:18

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: [contrib] Textpattern Planet

Solved the mystery, it was my DNS server settings.

It was taking my server about 12 to 15 seconds to resolve any sites hosted on Textdrive and SimplePie had a timeout of 10 seconds. I changed the order of the DNS servers in my /etc/resolv.conf and all is well now.

I’m still tweaking things but Textpattern Planet is working!

Some of the feeds are displaying in reverse order from Textpattern driven sites, they are the ones with no dates, but I think a new version of SimplePie will fix these as would the new rss coming in 4.0.4.

There is an rss.php file that is better suited for PunBB forum feeds, it’s been tweaked by a few of us and I use it on my forums. You can see the difference at the PHPXref forum: extern.php rss.php

The header links to the Dev blog and FAQ return you to Textpattern’s home page, I guess that’s the way it works when feeding a section?

The feeds update every hour, it takes about 10 seconds to refresh them so if you hit the site and have to wait, well you’re the lucky one ;)

Offline

#48 2006-08-30 20:32:51

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: [contrib] Textpattern Planet

w00t, Bert you are the man :) way cool you brought this all together!
If you like, you can add the german TXP resource blog too. It´s in german though
http://textpattern.kbbu.de

Some nice styling and Textplanet will look beautiful. Well done!!

Offline

Board footer

Powered by FluxBB