From: Kevin <ke...@dr...> - 2006-06-21 00:08:04
|
> Could some of you try adding this feed: > http://feeds.feedburner.com/usgs/eqs1day-M25.xml > then look in your database to see whether the latitude and longitude > columns in fr_items are populated? > > For me, they aren't, and I'm trying to figure out why not. Andrew > reports that his installation is getting the latitude and longitude, > making me suspect a PHP version issue; I'm running PHP Version > 4.4.2-1+b1. > > I tried adding some print statements in init.php, but once the logic > gets to the model in lib/model/, I lose track of the flow of > control. This doesn't work for me either. php 5.0.5 There are really only 3 places that touch lat/long data for an item: * The getLatitude() and getLongitude() methods of FOF_RssItem. These are responsible for extracting the geo values from the magpierss item hash structure. * The FOF_ItemModel::save() method. This pulls the fields out of the FOF_Item object and inserts it in the db. * fof_add_item() in init.php. This is the glue that ties the above two pieces together. I suspect the first location. Just because it has the most code around it. Let me know if you need more help. -- Kevin |