PHP Classes

Possible error?

Recommend this page to a friend!

      Atom Builder  >  All threads  >  Possible error?  >  (Un) Subscribe thread alerts  
Subject:Possible error?
Summary:I'm wondering how to diagnose this error message
Author:Daniel O'Donnell
Date:2007-05-18 19:19:57
Update:2007-05-22 05:10:32

  1. Possible error?   Reply   Report abuse  
Daniel O'Donnell - 2007-05-18 19:19:57
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/DM/DMsvn/web/rssServer/news/classes/atomBuilder/inc/</b> on line <b>262</b>

  2. Re: Possible error?   Reply   Report abuse  
Daniel O'Donnell - 2007-05-22 05:10:32 - In reply to message 1 from Daniel O'Donnell
To answer my own question:

It turns out there really is an error in Atom Builder: contributor is not actually optional: I got the error mentioned in my original posting because I was supplying a value for the entry contributor but not feed contributor. When I added a contributor for feed the error vanished.

I haven't tried all permutations of this--i.e. adding a feed contributor but not an entry contributor--but looking at the code, my guess is that contributor is not being treated as an option by atom builder: if you don't have it, you get this error.