Hey David,

The crux of the error is this message: " Failed to retrieve gadget content".

In other words it tries to fetch the gadget xml (
http://www.labpixies.com/campaigns/todo/todo.xml) but fails to do so.

This could be because of a faulty curl installation (it uses the php curl
module to fetch remote content), or because your behind a proxy server and
you don't have direct access to websites. If that's the case, you can fill
in your proxy server details in the shindig/php/container.php configuration
file. Also if your on a high-latency/slow connection, it might be worth
increasing the curl_connection_timeout setting in the same configuration
file.

Also, shindig is quite aggressive with caching things, so it's entirely
possible that it cached a failed request.. you can clear your cache by
removing the /tmp/shindig directory and it's contents (rm -rf /tmp/shindig),
or the windows equivalent (I think that's something like c:\Documents and
Settings\<User>\Temporary Files, but since I don't use windows very often I
could be mistaken.. just look for a 'shindig' directory in one of the temp
folders in windows).

Hope that helps!

   -- Chris

On Fri, Mar 27, 2009 at 2:42 PM, David Leal <[email protected]> wrote:

>
> Hi everyone,
>
> After a long time searching for the answer to this, I'm now at my
> wit's end. I can't see the todo.xml gadget after I install shindig
> php. I have shindig running as shindig.dev in my machine. The error I
> get is the following:
>
> Array
> (
>    [0] => Array
>        (
>            [file] => /home/david/abs/shindig/php/src/gadgets/servlet/
> GadgetRenderingServlet.php
>            [line] => 70
>            [function] => showError
>            [class] => GadgetRenderingServlet
>            [object] => GadgetRenderingServlet Object
>                (
>                    [context:private] => GadgetContext Object
>                        (
>                            [httpFetcher:protected] =>
> BasicRemoteContent Object
>                                (
>                                    [basicFetcher:private] =>
> BasicRemoteContentFetcher Object
>                                        (
>                                            [requests:private] =>
> Array
>                                                (
>                                                )
>
>
> [disallowedHeaders:private] => Array
>                                                (
>                                                    [0] => Keep-Alive
>                                                    [1] => Host
>                                                    [2] => Accept-
> Encoding
>                                                    [3] => Set-Cookie
>                                                    [4] => Content-
> Length
>                                                    [5] => Content-
> Encoding
>                                                    [6] => ETag
>                                                    [7] => Last-
> Modified
>                                                    [8] => Accept-
> Ranges
>                                                    [9] => Vary
>                                                    [10] => Expires
>                                                    [11] => Date
>                                                    [12] => Pragma
>                                                    [13] => Cache-
> Control
>                                                    [14] => Transfer-
> Encoding
>                                                    [15] => If-
> Modified-Since
>                                                )
>
>                                        )
>
>                                    [signingFetcherFactory:private]
> =>
>                                    [signer:private] =>
>                                    [cache:private] => Cache Object
>                                        (
>                                            [time:private] =>
> RequestTime Object
>                                                (
>                                                )
>
>                                            [storage:private] =>
> CacheStorageFile Object
>                                                (
>                                                    [prefix:private]
> => RemoteContent
>                                                )
>
>                                        )
>
>                                    [invalidateService:private] =>
> DefaultInvalidateService Object
>                                        (
>
> [invalidationEntry:private] => Cache Object
>                                                (
>                                                    [time:private] =>
> RequestTime Object
>                                                        (
>                                                        )
>
>                                                    [storage:private]
> => CacheStorageFile Object
>                                                        (
>
> [prefix:private] => InvalidationEntry
>                                                        )
>
>                                                )
>
>                                            [cache:private] => Cache
> Object
>                                                (
>                                                    [time:private] =>
> RequestTime Object
>                                                        (
>                                                        )
>
>                                                    [storage:private]
> => CacheStorageFile Object
>                                                        (
>
> [prefix:private] => RemoteContent
>                                                        )
>
>                                                )
>
>                                        )
>
>                                )
>
>                            [locale:protected] =>
>                            [renderingContext:protected] => GADGET
>                            [registry:protected] =>
>                            [view:protected] => profile
>                            [moduleId:protected] => 0
>                            [url:protected] =>
> http://www.labpixies.com/campaigns/todo/todo.xml
>                            [cache:protected] =>
>                            [blacklist:protected] =>
> BasicGadgetBlacklist Object
>                                (
>                                    [rules:private] => Array
>                                        (
>                                        )
>
>                                )
>
>                            [ignoreCache:protected] =>
>                            [forcedJsLibs:protected] =>
>                            [containerConfig:protected] =>
>                            [container:protected] => default
>                            [refreshInterval:protected] => 1209587
>                        )
>
>                    [lastModified:private] =>
>                    [contentType:private] => text/html
>                    [charset:private] => UTF-8
>                    [noCache:private] =>
>                    [cacheTime:private] => 86400
>                    [noHeaders] =>
>                )
>
>            [type] => ->
>            [args] => Array
>                (
>                    [0] => GadgetException Object
>                        (
>                            [message:protected] => Failed to retrieve
> gadget content (recieved http code 404)
>                            [string:private] =>
>                            [code:protected] => 0
>                            [file:protected] => /home/david/abs/
> shindig/php/src/gadgets/GadgetFactory.php
>                            [line:protected] => 302
>                            [trace:private] => Array
>                                (
>                                    [0] => Array
>                                        (
>                                            [file] => /home/david/abs/
> shindig/php/src/gadgets/GadgetFactory.php
>                                            [line] => 46
>                                            [function] => fetchGadget
>                                            [class] => GadgetFactory
>                                            [type] => ->
>                                            [args] => Array
>                                                (
>                                                    [0] =>
> http://www.labpixies.com/campaigns/todo/todo.xml
>                                                )
>
>                                        )
>
>                                    [1] => Array
>                                        (
>                                            [file] => /home/david/abs/
> shindig/php/src/gadgets/servlet/GadgetRenderingServlet.php
>                                            [line] => 66
>                                            [function] => createGadget
>                                            [class] => GadgetFactory
>                                            [type] => ->
>                                            [args] => Array
>                                                (
>                                                )
>
>                                        )
>
>                                    [2] => Array
>                                        (
>                                            [file] => /home/david/abs/
> shindig/php/index.php
>                                            [line] => 118
>                                            [function] => doGet
>                                            [class] =>
> GadgetRenderingServlet
>                                            [type] => ->
>                                            [args] => Array
>                                                (
>                                                )
>
>                                        )
>
>                                )
>
>                        )
>
>                )
>
>        )
>
>    [1] => Array
>        (
>            [file] => /home/david/abs/shindig/php/index.php
>            [line] => 118
>            [function] => doGet
>            [class] => GadgetRenderingServlet
>            [object] => GadgetRenderingServlet Object
>                (
>                    [context:private] => GadgetContext Object
>                        (
>                            [httpFetcher:protected] =>
> BasicRemoteContent Object
>                                (
>                                    [basicFetcher:private] =>
> BasicRemoteContentFetcher Object
>                                        (
>                                            [requests:private] =>
> Array
>                                                (
>                                                )
>
>
> [disallowedHeaders:private] => Array
>                                                (
>                                                    [0] => Keep-Alive
>                                                    [1] => Host
>                                                    [2] => Accept-
> Encoding
>                                                    [3] => Set-Cookie
>                                                    [4] => Content-
> Length
>                                                    [5] => Content-
> Encoding
>                                                    [6] => ETag
>                                                    [7] => Last-
> Modified
>                                                    [8] => Accept-
> Ranges
>                                                    [9] => Vary
>                                                    [10] => Expires
>                                                    [11] => Date
>                                                    [12] => Pragma
>                                                    [13] => Cache-
> Control
>                                                    [14] => Transfer-
> Encoding
>                                                    [15] => If-
> Modified-Since
>                                                )
>
>                                        )
>
>                                    [signingFetcherFactory:private]
> =>
>                                    [signer:private] =>
>                                    [cache:private] => Cache Object
>                                        (
>                                            [time:private] =>
> RequestTime Object
>                                                (
>                                                )
>
>                                            [storage:private] =>
> CacheStorageFile Object
>                                                (
>                                                    [prefix:private]
> => RemoteContent
>                                                )
>
>                                        )
>
>                                    [invalidateService:private] =>
> DefaultInvalidateService Object
>                                        (
>
> [invalidationEntry:private] => Cache Object
>                                                (
>                                                    [time:private] =>
> RequestTime Object
>                                                        (
>                                                        )
>
>                                                    [storage:private]
> => CacheStorageFile Object
>                                                        (
>
> [prefix:private] => InvalidationEntry
>                                                        )
>
>                                                )
>
>                                            [cache:private] => Cache
> Object
>                                                (
>                                                    [time:private] =>
> RequestTime Object
>                                                        (
>                                                        )
>
>                                                    [storage:private]
> => CacheStorageFile Object
>                                                        (
>
> [prefix:private] => RemoteContent
>                                                        )
>
>                                                )
>
>                                        )
>
>                                )
>
>                            [locale:protected] =>
>                            [renderingContext:protected] => GADGET
>                            [registry:protected] =>
>                            [view:protected] => profile
>                            [moduleId:protected] => 0
>                            [url:protected] =>
> http://www.labpixies.com/campaigns/todo/todo.xml
>                            [cache:protected] =>
>                            [blacklist:protected] =>
> BasicGadgetBlacklist Object
>                                (
>                                    [rules:private] => Array
>                                        (
>                                        )
>
>                                )
>
>                            [ignoreCache:protected] =>
>                            [forcedJsLibs:protected] =>
>                            [containerConfig:protected] =>
>                            [container:protected] => default
>                            [refreshInterval:protected] => 1209587
>                        )
>
>                    [lastModified:private] =>
>                    [contentType:private] => text/html
>                    [charset:private] => UTF-8
>                    [noCache:private] =>
>                    [cacheTime:private] => 86400
>                    [noHeaders] =>
>                )
>
>            [type] => ->
>            [args] => Array
>                (
>                )
>
>        )
>
> )
>
> I tried searching around the PHP code, but my PHP is very rusty.
>
> Any pointers?
>
> Cheers,
>
> David
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Implementing OpenSocial Containers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/opensocial-container?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to