#256 new
Tim

Problem with iTunes store feed

Reported by Tim | April 10th, 2009 @ 01:29 PM

see www.topapplist.com - hover over links in the posts - you'll see the error

ERROR_NOT_FOUND_frameworknullfilename_null

here is the full url

http://ax.itunes.apple.com/WebOb...nullfilename_nullhttp%25253A%25252F%25252Fitunes.apple.com%25252FWebObjects%25252FMZStore.woa%25252Fwa%25252FviewSoftware%25253Fid%25253D306220440%252526mt%25253D8%252526partnerId%25253D30

and here is the feed

http://ax.itunes.apple.com/WebOb...

www.topapplist.com is where you can see this occurring

www.topapplist.com/test.php that url is a simple php script using the bundled simplepie lib.

here is the content of test.php

<?php $max = 3; $url = 'http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/toppaidapplications/sf=143441/limit=10/genre=6014/xml?partnerId=30&LS_PARAM=http%3A%2F%2Fclick.linksynergy.com%2Ffs-bin%2Fstat%3Fid%3D0QHGJjB%2FvOQ%26offerid%3D146261%26type%3D3%26subid%;'; $fast = false;

require_once( './wp-content/plugins/wp-o-matic/inc/simplepie/simplepie.class.php' );

$feed = new SimplePie(); $feed->enable_order_by_date(false); // thanks Julian Popov $feed->set_feed_url($url); $feed->set_item_limit($max); $feed->set_stupidly_fast($fast); $feed->enable_cache(false); $feed->init(); $feed->handle_content_type();

processFeed( $feed );

function processFeed( &$feed ) {

@set_time_limit(0);

// Get posts (last is first)
$items = array();
$count = 0;

foreach( $feed->get_items() as $item )
{
    $count++;
    array_unshift($items, $item);
}

// Processes post stack
foreach($items as $item)
{
    echo $item->get_content();
}

}

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

WP-o-Matic project.

People watching this ticket

Pages