You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by André Gomes <an...@gmail.com> on 2009/06/19 22:15:13 UTC

Unable to access PHP samplecontainer

Hi, guys.

Thanks for Shindig, it's a great project.

I'm a newbie trying to setup a localhost dev environment to build &
test some orkut gadgets, so I've downloaded
shindig-project-1.0-incubating from svn.

But, when I go to
http://shindig/gadgets/files/samplecontainer/samplecontainer.html,
firefox's console shows me the error below.

Besides, I think I have to configure my orkut key & secret somewhere
in Shindig, right? But I can't realize how to do that.

Any advices, please?

Thank you again.

======

http://shindig/gadgets/metadata 500 Internal Server Error
POST
{"context":{"country":"default","language":"default","view":"default","container":"default"},"gadgets":[{"url":"http://shindig/gadgets/files/samplecontainer/examples/SocialHelloWorld.xml","moduleId":1}]}
RESPONSE
<html><body><h1>Internal Server Error</h1><br />No post data set<br /><pre>Array
(
    [0] => Array
        (
            [file] =>
C:\workspaces\andregs\shindig-project-1.0-incubating\php\index.php
            [line] => 118
            [function] => doPost
            [class] => MetadataServlet
            [object] => MetadataServlet Object
                (
                    [lastModified:private] =>
                    [contentType:private] => text/html
                    [charset:private] => UTF-8
                    [noCache:private] =>
                    [cacheTime:private] => 86400
                    [noHeaders] =>
                )

            [type] => ->
            [args] => Array
                (
                )

        )

)
</pre></body></html>

Re: Unable to access PHP samplecontainer

Posted by André Gomes <an...@gmail.com>.
Yes, php.ini setting fixed the issue.

Just installed Partuza, it's working like a charm.

Thanks, Chris.

On Sat, Jun 20, 2009 at 4:02 AM, Chris Chabot<ch...@google.com> wrote:
> Hey Andre,
>
> Thanks for checking out shindig!
>
> To your issue, I think if you set
>  always_populate_raw_post_data = On
> in your php.ini, chances are that will fix it.
>
> Also, the sample container isn't a very all-encompassing demo nor does it
> work very well in some situations, to really explore what you can do with
> php-shindig and with OpenSocial as a container, check out partuza:
> http://code.google.com/p/partuza there's some guides on how to set it up & a
> live example available right of it's code site page.
>
> Hope that helps & let us know if that did indeed fix the issue!
>
>   -- Chris
>
> 2009/6/19 André Gomes <an...@gmail.com>
>
>> Hi, guys.
>>
>> Thanks for Shindig, it's a great project.
>>
>> I'm a newbie trying to setup a localhost dev environment to build &
>> test some orkut gadgets, so I've downloaded
>> shindig-project-1.0-incubating from svn.
>>
>> But, when I go to
>> http://shindig/gadgets/files/samplecontainer/samplecontainer.html,
>> firefox's console shows me the error below.
>>
>> Besides, I think I have to configure my orkut key & secret somewhere
>> in Shindig, right? But I can't realize how to do that.
>>
>> Any advices, please?
>>
>> Thank you again.
>>
>> ======
>>
>> http://shindig/gadgets/metadata 500 Internal Server Error
>> POST
>>
>> {"context":{"country":"default","language":"default","view":"default","container":"default"},"gadgets":[{"url":"
>> http://shindig/gadgets/files/samplecontainer/examples/SocialHelloWorld.xml
>> ","moduleId":1}]}
>> RESPONSE
>> <html><body><h1>Internal Server Error</h1><br />No post data set<br
>> /><pre>Array
>> (
>>    [0] => Array
>>        (
>>            [file] =>
>> C:\workspaces\andregs\shindig-project-1.0-incubating\php\index.php
>>            [line] => 118
>>            [function] => doPost
>>            [class] => MetadataServlet
>>            [object] => MetadataServlet Object
>>                (
>>                    [lastModified:private] =>
>>                    [contentType:private] => text/html
>>                    [charset:private] => UTF-8
>>                    [noCache:private] =>
>>                    [cacheTime:private] => 86400
>>                    [noHeaders] =>
>>                )
>>
>>            [type] => ->
>>            [args] => Array
>>                (
>>                )
>>
>>        )
>>
>> )
>> </pre></body></html>
>>
>

Re: Unable to access PHP samplecontainer

Posted by Chris Chabot <ch...@google.com>.
Hey Andre,

Thanks for checking out shindig!

To your issue, I think if you set
  always_populate_raw_post_data = On
in your php.ini, chances are that will fix it.

Also, the sample container isn't a very all-encompassing demo nor does it
work very well in some situations, to really explore what you can do with
php-shindig and with OpenSocial as a container, check out partuza:
http://code.google.com/p/partuza there's some guides on how to set it up & a
live example available right of it's code site page.

Hope that helps & let us know if that did indeed fix the issue!

   -- Chris

2009/6/19 André Gomes <an...@gmail.com>

> Hi, guys.
>
> Thanks for Shindig, it's a great project.
>
> I'm a newbie trying to setup a localhost dev environment to build &
> test some orkut gadgets, so I've downloaded
> shindig-project-1.0-incubating from svn.
>
> But, when I go to
> http://shindig/gadgets/files/samplecontainer/samplecontainer.html,
> firefox's console shows me the error below.
>
> Besides, I think I have to configure my orkut key & secret somewhere
> in Shindig, right? But I can't realize how to do that.
>
> Any advices, please?
>
> Thank you again.
>
> ======
>
> http://shindig/gadgets/metadata 500 Internal Server Error
> POST
>
> {"context":{"country":"default","language":"default","view":"default","container":"default"},"gadgets":[{"url":"
> http://shindig/gadgets/files/samplecontainer/examples/SocialHelloWorld.xml
> ","moduleId":1}]}
> RESPONSE
> <html><body><h1>Internal Server Error</h1><br />No post data set<br
> /><pre>Array
> (
>    [0] => Array
>        (
>            [file] =>
> C:\workspaces\andregs\shindig-project-1.0-incubating\php\index.php
>            [line] => 118
>            [function] => doPost
>            [class] => MetadataServlet
>            [object] => MetadataServlet Object
>                (
>                    [lastModified:private] =>
>                    [contentType:private] => text/html
>                    [charset:private] => UTF-8
>                    [noCache:private] =>
>                    [cacheTime:private] => 86400
>                    [noHeaders] =>
>                )
>
>            [type] => ->
>            [args] => Array
>                (
>                )
>
>        )
>
> )
> </pre></body></html>
>