[Pro] Data feed

Sorry, my fault. I think the original ‘test.php’ upload had Richtext elements - try again…

http://www.roarimage.com/uploads/sadler/test.php


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Do you have single-quotes around your URL inside the parentheses? I
just tried this URL here, and had no trouble accessing it from PHP.
There may be something to this “blocking” business at your hosting
provider, but that’s just another nail in their coffin from my
perspective. Time to move up to more adult hosting.

Walter

On Dec 8, 2010, at 8:36 AM, Scott Crundwell wrote:

Sorry, my fault. I think the original ‘test.php’ upload had Richtext
elements - try again…

http://www.roarimage.com/uploads/sadler/test.php


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yep, I’ve got single-quotes inside the parentheses so I think your scripts working fine. I too now see the feed, it’s also working in the example page…

http://www.roarimage.com/uploads/sadler/test/index.php

I’ll get my provider (Easily) to ‘unblock’ the Feed URL and see if this gives us a consistent result.

Out of interest, who can you recommend as an ‘adult’ provider (nothing dodgy though!).

Scott


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Adult as in grown-up, don’t treat the customers like children, etc.

http://joyent.com (seriously expensive, very very very nice and
powerful)
http://a2hosting.com (cheap but powerful and “normal”)
http://modwest.com (cheap and slightly non-standard, but still within
the range of being able to work with most scripts)
http://dreamhost.com (moderately priced, a bit over-sold, fairly normal)

Stay well away from GoDaddy, NetworkSolutions, or any host that is
also an ISP (company you get your DSL or cable modem from).

Walter

On Dec 8, 2010, at 9:04 AM, Scott Crundwell wrote:

Yep, I’ve got single-quotes inside the parentheses so I think your
scripts working fine. I too now see the feed, it’s also working in
the example page…

http://www.roarimage.com/uploads/sadler/test/index.php

I’ll get my provider (Easily) to ‘unblock’ the Feed URL and see if
this gives us a consistent result.

Out of interest, who can you recommend as an ‘adult’ provider
(nothing dodgy though!).

Scott


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I notice they’re all based in America. Will this not be a problem when it comes to support? (We’re based in London, UK)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry, I didn’t realize that. Look no further than our List-mate David
Owen, and his company http://ineedwebhosting.co.uk for all your
hosting pleasure.

Walter

On Dec 8, 2010, at 9:17 AM, Scott Crundwell wrote:

I notice they’re all based in America. Will this not be a problem
when it comes to support? (We’re based in London, UK)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Waltd,

just received this from the Linux service provider regarding the Feed issue…

We have received feedback from the system team, they have investigated and stated that there is nothing to be unblocked, because it is working intermittently, however the cache directory is not being written to.

This may be leading to the intermittent failures, the system team have stated that this is more of a coding issue, rather than the web platform. Please check your website coding.

I’m guessing the only avenue I have left to explore is the Twitter feed itself? Do you have any other ideas?

Scott


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’ve tested the page with a different Twitter feed and the same error came up. Both Feeds are affected (or on occasion un-affected) at the same time so at least there seems to be some consistency.

Reading the error message:
Warning:fopen(<://twitter.com/statuses/user_timeline/36084933.rss>) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /web2/user22172/website/uploads/sadler/test/Resources/Feed.php on line 31 could not open XML input

…it appeared the Feed.php file (should this file be capital ‘F’?) was struggling, so I replaced the file with my local version. Refreshing this file instantly enabled the feed to show on both test Twitter accounts. Was this just coincidence?

I’ll keep an eye on the test examples and see how long they last.

In contrast to the ‘ReadFeed’ action, the purchased ‘Twitter’ action has worked continuously albeit without showing the ‘Retweets’. Is there a way I can get these to show on the action and get around my ReadFeed problems???

Thanks in advance,
Scott


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Nope…they’ve both just gone down. Tried refreshing Feed.php file again but no luck this time, must have been coincidence :frowning:

Can anyone tell me if its possible to enable ‘Retweets’ in the Twitter action?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

To answer your earlier question, Feed should be capitalized. And the
Action doesn’t rewrite the Feed file, so there shouldn’t be any
changes within it from one site to another. ReadFeed requires a valid
RSS feed in order to work, so one of the first troubleshooting steps
to undertake would be to paste the entire URL into http://feedvalidator.org
and see what it makes of it. I’ve never tried consuming Twitter’s
RSS (or even Twitter itself) so I really don’t know what to make of
this. If the cache file is not being written, then the issue is
permissions on the server, plain and simple. This host has told you
that they “can’t” (read won’t) change the permissions for you so that
folder can be written by the server. Do you have shell access to the
server? Can you try logging in and moving into the folder above your
cache folder and issuing this command:

chmod 777 _cache

and see what happens? Even an error message at this point would be
instructive.

Walter

On Dec 14, 2010, at 7:14 AM, Scott Crundwell wrote:

Nope…they’ve both just gone down. Tried refreshing Feed.php file
again but no luck this time, must have been coincidence :frowning:

Can anyone tell me if its possible to enable ‘Retweets’ in the
Twitter action?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have a theory about this. You can test this by setting the cache
time to 0. That ignores the cache entirely, and does a complete fetch
every time. If Twitter has some sort of anti-leeching policy in place
on their server, whereby multiple requests within N seconds from the
same feed are ignored (and given the error you got, I suspect that is
precisely what is going on) then a non-working cache would explain the
entire problem quite neatly. Your server is trying to do a full
external request for the feed every time a visit comes to your site,
which is possibly too often for Twitter’s taste.

Walter

On Dec 14, 2010, at 9:29 AM, Walter Lee Davis wrote:

If the cache file is not being written, then the issue is
permissions on the server, plain and simple.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Waltd, I’ll have a look at this later today. (I seem to remember setting the cache time to 0 as per your instruction for testing purposes - I’ll double check and let you know)

Scott


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Waltd,

I just checked the cache time setting and it is indeed set to ‘0’. I also checked the RSS Feed in the Validator you mentioned and all validates.

LINK:
http://feedvalidator.org/check.cgi?url=http%3A%2F%2Ftwitter.com%2Fstatuses%2Fuser_timeline%2F36084933.rss

I’m not aware of what ‘Shell’ access is for my server?

Scott


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s okay. Most budget hosts don’t allow it anyway. But you might look I’m your host’s control panel and see if they have a control labeled Terminal or Console or even Shell. Some hosts won’t let you connect to their server through SSH from your Mac, but they will allow you to use a Java applet from their control panel instead.

Have you ever used Terminal.app on your Mac for anything? Do you know how to change directories in the filesystem with the cd command?

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Although I’ve heard of Terminal.app I’m reluctant to use it. Doesn’t it give you access to OSX’s underlining code? Whats this got to do with my hostings Linux server?

There’s no ‘control panel’ to speak of at least with regards to options for the Linux server. I just get emailed the FTP details and then upload to a html directory.

Any views on expanding the Twitter action to include Retweets?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Also, if you want to be absolutely sure to test out your server, then
set the cache time to something besides 0 – 5 or 30 or something like
that – and change the feed location to something that I guarantee
does not have any sort of server-side restrictions in place[1], and
then upload it and test again.

Look to see if the cache file does get created if the cache setting in
the Action is not set to 0 and you’re not trying to consume Twitter.

If it is being created, then you’ve ruled out permissions on your
server, and without breaking a sweat in a command-line terminal
anywhere.

So then if the cache is working, and the issue is Twitter blocking you
from their side, then you need to get on to them and ask them if they
are doing anything related to “throttling” your access to the feed. If
they are, then you’ll have to ask them to stop, or find another API
besides RSS to use in incorporating your stream into your pages. I
believe Paul Dunning has an Action specifically for Twitter, but I
could be wrong – it might be Facebook.

Walter

  1. http://freewaycast.com/screencasts/rss/

On Dec 17, 2010, at 8:47 AM, waltd wrote:

That’s okay. Most budget hosts don’t allow it anyway. But you might
look I’m your host’s control panel and see if they have a control
labeled Terminal or Console or even Shell. Some hosts won’t let you
connect to their server through SSH from your Mac, but they will
allow you to use a Java applet from their control panel instead.

Have you ever used Terminal.app on your Mac for anything? Do you
know how to change directories in the filesystem with the cd command?

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I don’t know anything about that Action. Who wrote it?

Walter

On Dec 17, 2010, at 9:47 AM, Scott Crundwell wrote:

Any views on expanding the Twitter action to include Retweets?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options