Notice: Trying to get property of non-object in /home/sonicnew/public_html/clickmusic/admin/plugins/pi.xmlgrab.php on line 605
Notice: Trying to get property of non-object in /home/sonicnew/public_html/clickmusic/admin/plugins/pi.xmlgrab.php on line 629
Notice: Trying to get property of non-object in /home/sonicnew/public_html/clickmusic/admin/plugins/pi.xmlgrab.php on line 645
Warning: Invalid argument supplied for foreach() in /home/sonicnew/public_html/clickmusic/admin/plugins/pi.xmlgrab.php on line 190
When trying to import data, I’m getting these errors. My XML file has been checked and is valid, and I created an example with just one entry in, just to check to make sure the file wasn’t too big.
I’m no PHP expert, so a quick Google is just confusing me even more - if someone could decipher this and tell me what to look for I’d be eternally grateful!
Just installed the plugin and I get this error as soon as I go into the Plugin screen under Admin –> Utilities. This is the error I’m getting:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/sanction/public_html/sanctionsys/plugins/pi.feedgrab.php:3110) in /home/sanction/public_html/sanctionsys/extensions/ext.lg_htaccess_generator_ext.php on line 672
Looks like there is a conflict between FeedGrab and LG Htaccess Generator. Anyone know how I can fix this?
Hey Guys,
I’m trying to set up a website so I can update it from my trip to the USA in 4days time and I’m trying to incorporate my twitter feed.
I’ve set up feed grab with the following
{exp:feedgrab url="http://twitter.com/statuses/user_timeline/6956882.rss"
weblog="3"
title="title"
date="pubDate"
use="link|description"
fields="twitter_link|twitter_words"
unique="twitter_link" }
Which works, however I’ve got a couple of issues.
Ideally I’d like to place a couple of items into their own custom field, while stripping them from the description/twitter_words field..
The format of these items will always be the same.
I’d like to pull the lat and long into their own custom fields so that I can geolocate the tweet on a map. (twitter_geotwitt_lat and twitter_geotwit_long))
GeoTwitts geo:lat=51.491356 geo:lon=-0.299841
And if I post a twitpic I’d like to pull that out into its own custom field so I can include the image. (twitter_twitpic)
http://twitpic.com/etsfl
I’d also like to remove the User: at the start of each tweet. I know I can use something like “Trimmer” to do this on display but if some knows how to do it on import along with the multiple custom fields I’d love it.
I’m guessing we’d need to do some sort of php find and move but how to do that I have no idea.
(ps my work in progress website
Hi David,
Currently FeedGrab cannot do anything clever with the data it receives - it just stuffs it into a field.
To do the 3 things you mention above (pull out the lat and long, pull out the twitpic url, and remove the username) you’d probably need to pre-process the feed.
The pre-processing probably would not be that difficult, but the plugin cannot do it as it stands. Drop me an email if I can help.
Andrew
I am trying to fetch RSS from Google news (http://news.google.ru/news?um=1&cf=all&ned=ru_ru&hl=ru&q=свадьба&cf=all&output=rss) As you can see, all tags there are converted to html entities. But after I import, there are no tags and no entities in my fields - all they are stripped away and I see the mess of text, links and ‘tag leftovers’. Could someone point me in the proper direction?
I use crontab to automatically process the “feedgrab template”.
For instance: 0 * * * * curl -o –url http://some-url-to-feedgrab-template.com >/dev/null 2>&1
This will grab the rss feed every hour, and the >/dev/null 2>&1 part makes sure it does not leave any files on the server after curl has fetched the web page.
I got this plugin to work…sort of.. i followed the tut on Andrew’s site. I got the “go” file to work and the page shows me the feed info. See below:
Fetching: http://feeds.marketwatch.com/marketwatch/topstories/ Checking: Stocks to Watch: Stocks in focus for Friday Found new entry: Stocks to Watch: Stocks in focus for Friday
But the feed data does not download in my weblog. therefore, i’m not pulling anything from the weblog into the template that references the weblog.
any help would be appreciated.
thx!!
Hey, wonderful plugin. I got everything working except I needed to add an offset to the time to get the correct date to show up in my feed. But once I set up an offset, each time the script loaded (I set up a daily cron job), it duplicated each entry. Apparently the checking isn’t working if the “offset” parameter is used. This is my code:
{exp:feedgrab url="http://example.url"
weblog="9"
title="title"
date="pubDate"
offset="-21600"
use="link|description"
fields="daily_url|daily_body"}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.