Thanks Chris, I recommended the devteam change the example in the
README.
On Mon, 2009-09-14 at 17:01 +0200, Chris Chabot wrote:
> This error is due to the todo gadget having a message bundle xml file that
> contains UTF-8 codes, but the server sends a different type of char encoding
> header, so the encoding gets all mixed up and the xml parser errors out on
> it.
>
> The HttpUtil is being called to display the error, and that seems to have a
> duplicate class definition, which is why it displayed that error instead of
> the actual one.
>
> As long as there's no errors in the xml files (like the hello world one Arne
> linked), it should render perfectly though.
>
> On Fri, Sep 11, 2009 at 10:36 AM, Rodrigo Moraes
> <[email protected]>wrote:
>
> > On Fri, Sep 11, 2009 at 4:01 AM, Yonas wrote:
> > > I'm new to shindig, and I'm trying to install 0.8.1 on Ubuntu Jaunty.
> > >
> > > This directory doesn't exist:
> > >
> > > /gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
> > >
> > > there's a /test/gadgets/, but no /test/gadgets/ifr.
> > >
> > > Is the documentation out of date?
> > >
> > > Cheers,
> > > Yonas
> >
> > That directory doesn't exist indeed. All requests are mapped to
> > index.php using mod_rewrite (apache). Take a look at the .htaccess
> > file in the root dir. You must allow the mod_rewrite directives to be
> > executed in your VirtualHost configuration, if it is not yet
> > (AllowOverride All or something like that).
> >
> > Anyway, I passed this phase and tried to access
> > /gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml. The
> > error I got was:
> >
> > Fatal error: Cannot redeclare class HttpUtil in
> > /Users/moraes/www/shindig/src/gadgets/HttpUtil.php on line 24
> >
> > ...which is hard to debug because the line points to where the class
> > is declared, and there's no traceback to see where it was included for
> > the second time. I searched the code, fixed the double include, and
> > got a GadgetSpecParserError - probably it failed to fetch the gadget
> > and tried to parse an empty string. This, I believe, is a problem on
> > my side - I probably miss a dependency for the external url fetch, or
> > it is not well configured, I'll check that another time.
> >
> > (btw I tried this with the 1.0 download, not svn)
> >
> > And a side note, I'm working on a open source container in Python, to
> > be deployed in App Engine. Shindig is helping me a lot to understand
> > the specs. If you have interest in the project, please drop me a line.
> >
> > -- rodrigo
> >