Calendar feed - Firewall additions


#1

I’m running a wordpress site and want to get a calendar feed to populate the events for my site.

Specifically:
this feed:
webcal://ws.audioscrobbler.com/1.0/venue/8908030/events.ics

from this site:

however the firewall is blocking it…
I added ws.audioscrobbler.com/1.0/venue/8908030/events.ics
to the “50-reject-www-data” file but to no luck.
Any suggestions?


#2

Hi Kalias,

You only need to put the hostname in the firewall rule, not the whole URL. So the file should just contain

ws.audioscrobbler.com

and nothing more.

Best wishes,

Patrick


#3

Aha - thanks for the tip!

Sadly
No luck there.

The plug in giving me a red error message reading:
“We couldn’t find a valid transport to fetch the calendar data. You should set allow_url_fopen in php.ini as suggested in this article”
http://forums.hostdime.com/showthread.php?8620-PHP-allow_url_fopen [this being the ‘article’]
However, the guy who has helped me with the dev says that it’s already open… so it’s a bit of head scratcher… :confused:


#4

If you run (as the www-data user)

curl http://ws.audioscrobbler.com/1.0/venue/8908030/events.ics

(or if curl isn’t installed try

wget -O- http://ws.audioscrobbler.com/1.0/venue/8908030/events.ics

) you should get the ICS output, or an error of some sort.

To change to the www-data user you can run

sudo -s -u www-data

If you try the curl/wget commands as both www-data and admin, and you get the same result, then the firewall isn’t to blame.

I’m not sure about your PHP configuration problems. I can only suggest you put a “test” phpinfo() page somewhere and check the configuration there.

Best wishes

Patrick