I am using Simplepie to pull weather from MSN's weather feed. When I set it up outside of CMSMS, everything worked perfectly. To bring it in, I made two UDTs (one for calling SimplePie and the other to place the weather on the page). No matter what I have tried, I have been unsuccessful in getting past the following error:
"Fatal error: Call to undefined function get_items() in *directory_structure_removed*/cms/lib/content.functions.php(857) : eval()'d code on line 1"
Here's the SimplePie UDT:
Code: Select all
require_once('inc/simplepie.inc');
$feed = new SimplePie('http://weather.msn.com/RSS.aspx?wealocations=wc:USFL0355&weadegreetype=F');
$feed->enable_cache(true);
$feed->set_cache_location('cache');
$feed->set_cache_duration(3600);
$feed->init();
$feed->handle_content_type();
Code: Select all
foreach ($feed->get_items(1,2) as $item):