I'm getting this error on three lines of my stript. 1. foreach($keywordsXML->PopularSearchResult as $item) { $topicsString = $item->AlternativeSearches; $relatedString = $item->RelatedSearches; if (!empty($topicsString)) { $topics = split(";",$topicsString); 2. foreach ($xml->channel->item as $item) { $ebayRss = $item->children'http://www.domain.com'); 3. foreach ($guidesXML->guide as $guideXML) { $guide = array(); $guide['url'] = makeguideLink($guideXML->url, $q); $guide['title'] = $guideXML->title; $guide['desc'] = $guideXML->desc; array_push($guides,$guide);
foreach works with array. Store your nodes in an array first then pass that array in foreach.. See if that works.
I didn't design the stript, someone upgraded the stript for me, but they don't have time to debug it. They have it on a test site, the test site needs to get traffic before the errors show up. I'm not a designer, I thought it maybe something simple I could get help with.
That's weird, did you hire him,or he just helped you? You have to check the node references you are passing to foreach are indeed arrays and not null references. Makes any sense?
Don't make any sense to me, don't know any thing about this type of stuff. And no I did not hire him, he just helped, but don't see the errors on his test site because it don't get traffic.
Prior to the foreach statement, try to debug the entire object: die(var_dump($keywordsXML)); PHP: Copy/paste what it outputs, maybe we could help.
The owner has abandoned the stript and it's no way to contact him. The stript was updated by a user, but the link he left to download the new update is dead. The forum is being taken over by spamers.
I made a mistake, the link to download the update for the Mcjiffy stript is not dead its here: http://www.mcjiffy.com/content/new-rss-format http://db.tt/Q78N3By