You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Yonas <yo...@gmail.com> on 2009/09/17 03:05:39 UTC

SocialHelloWorld broken?

hey guys,

I'm using the PHP distro and I tried the first demo mentioned on the
site:

http://shindig:8080/gadgets/files/samplecontainer/samplecontainer.html

Nothing shows up when clicking 'reset all', and Firebug shows these
errors:


Headers:
------------
Response Headers
Date
Thu, 17 Sep 2009 00:56:30 GMT
Server
Apache/2.2.11 (Ubuntu)
PHP/5.2.6-3ubuntu4.2 with
Suhosin-Patch
X-Powered-By
PHP/5.2.6-3ubuntu4.2
Accept-Ranges
bytes
Cache-Control
public,max-age=86400
Expires
Fri, 18 Sep 2009 00:56:30 GMT
Vary
Accept-Encoding
Content-Encoding
gzip
Content-Length
317
Connection
close
Content-Type
text/html; charset=UTF-8
Request Headers
Host
shindig:8080
User-Agent
Mozilla/5.0 (X11; U; Linux i686;
en-US; rv:1.9.0.14) Gecko/2009090216
Ubuntu/9.04 (jaunty) Firefox/3.0.14
Accept
text/html,application/xhtml
+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language
en-us,en;q=0.5
Accept-Encoding
gzip,deflate
Accept-Charset
ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive
300
Connection
keep-alive
Content-Type
application/x-www-form-urlencoded;
charset=UTF-8
Referer
http://shindig:8080/gadgets/files/samplecontainer/samplecontainer.html
Content-Length
208

POST:
------------
{"context":{"country":"default","language":"default","view":"default","container":"default"},"gadgets":[{"url":"http://shindig:8080/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] => /var/www/shindig/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: SocialHelloWorld broken?

Posted by Chris Chabot <ch...@google.com>.
I'm not sure what the 'last email' was, if it didn't we wouldn't know :)

However very happy to hear it's working for you! And as soon as you have the
opportunity, make sure to install / check out partuza to get a 'real' demo,
the sample pages are quite old and don't completely demonstrate all the
facets of OpenSocial, really just the basic rendering bit.

   -- Chris

On Thu, Sep 17, 2009 at 7:18 PM, Yonas <yo...@gmail.com> wrote:

> I'm not sure if my last email went through, but all the sample pages
> work now.
>
> Y.
>
> On Wed, 2009-09-16 at 21:33 -0400, Yonas wrote:
> > The other sampleX.html pages are broken, too. I've attached the output
> > for sample6.
> >
> > On Wed, 2009-09-16 at 21:27 -0400, Yonas wrote:
> > > Nice, that was the problem. Recommend to add this to the README.
> > >
> > > On Thu, 2009-09-17 at 03:22 +0200, Chris Chabot wrote:
> > > > The error is pretty self explanatory, the meta data service gets an
> empty
> > > > post, ie $GLOBALS['HTTP_RAW_POST_DATA'] is empty in the
> > > > MetadataService->doPost function.
> > > >
> > > > You could try using always_populate_raw_post_data = On in your
> php.ini and
> > > > if that doesn't help, perhaps the Suhosin patch is blocking the raw
> post
> > > > from being populated?
> > > >
> > > > On Thu, Sep 17, 2009 at 3:05 AM, Yonas <yo...@gmail.com> wrote:
> > > >
> > > > > hey guys,
> > > > >
> > > > > I'm using the PHP distro and I tried the first demo mentioned on
> the
> > > > > site:
> > > > >
> > > > >
> http://shindig:8080/gadgets/files/samplecontainer/samplecontainer.html
> > > > >
> > > > > Nothing shows up when clicking 'reset all', and Firebug shows these
> > > > > errors:
> > > > >
> > > > >
> > > > > Headers:
> > > > > ------------
> > > > > Response Headers
> > > > > Date
> > > > > Thu, 17 Sep 2009 00:56:30 GMT
> > > > > Server
> > > > > Apache/2.2.11 (Ubuntu)
> > > > > PHP/5.2.6-3ubuntu4.2 with
> > > > > Suhosin-Patch
> > > > > X-Powered-By
> > > > > PHP/5.2.6-3ubuntu4.2
> > > > > Accept-Ranges
> > > > > bytes
> > > > > Cache-Control
> > > > > public,max-age=86400
> > > > > Expires
> > > > > Fri, 18 Sep 2009 00:56:30 GMT
> > > > > Vary
> > > > > Accept-Encoding
> > > > > Content-Encoding
> > > > > gzip
> > > > > Content-Length
> > > > > 317
> > > > > Connection
> > > > > close
> > > > > Content-Type
> > > > > text/html; charset=UTF-8
> > > > > Request Headers
> > > > > Host
> > > > > shindig:8080
> > > > > User-Agent
> > > > > Mozilla/5.0 (X11; U; Linux i686;
> > > > > en-US; rv:1.9.0.14) Gecko/2009090216
> > > > > Ubuntu/9.04 (jaunty) Firefox/3.0.14
> > > > > Accept
> > > > > text/html,application/xhtml
> > > > > +xml,application/xml;q=0.9,*/*;q=0.8
> > > > > Accept-Language
> > > > > en-us,en;q=0.5
> > > > > Accept-Encoding
> > > > > gzip,deflate
> > > > > Accept-Charset
> > > > > ISO-8859-1,utf-8;q=0.7,*;q=0.7
> > > > > Keep-Alive
> > > > > 300
> > > > > Connection
> > > > > keep-alive
> > > > > Content-Type
> > > > > application/x-www-form-urlencoded;
> > > > > charset=UTF-8
> > > > > Referer
> > > > >
> http://shindig:8080/gadgets/files/samplecontainer/samplecontainer.html
> > > > > Content-Length
> > > > > 208
> > > > >
> > > > > POST:
> > > > > ------------
> > > > >
> > > > >
> {"context":{"country":"default","language":"default","view":"default","container":"default"},"gadgets":[{"url":"
> > > > >
> http://shindig:8080/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] => /var/www/shindig/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: SocialHelloWorld broken?

Posted by Yonas <yo...@gmail.com>.
I'm not sure if my last email went through, but all the sample pages
work now. 

Y.

On Wed, 2009-09-16 at 21:33 -0400, Yonas wrote:
> The other sampleX.html pages are broken, too. I've attached the output
> for sample6.
> 
> On Wed, 2009-09-16 at 21:27 -0400, Yonas wrote:
> > Nice, that was the problem. Recommend to add this to the README.
> > 
> > On Thu, 2009-09-17 at 03:22 +0200, Chris Chabot wrote:
> > > The error is pretty self explanatory, the meta data service gets an empty
> > > post, ie $GLOBALS['HTTP_RAW_POST_DATA'] is empty in the
> > > MetadataService->doPost function.
> > > 
> > > You could try using always_populate_raw_post_data = On in your php.ini and
> > > if that doesn't help, perhaps the Suhosin patch is blocking the raw post
> > > from being populated?
> > > 
> > > On Thu, Sep 17, 2009 at 3:05 AM, Yonas <yo...@gmail.com> wrote:
> > > 
> > > > hey guys,
> > > >
> > > > I'm using the PHP distro and I tried the first demo mentioned on the
> > > > site:
> > > >
> > > > http://shindig:8080/gadgets/files/samplecontainer/samplecontainer.html
> > > >
> > > > Nothing shows up when clicking 'reset all', and Firebug shows these
> > > > errors:
> > > >
> > > >
> > > > Headers:
> > > > ------------
> > > > Response Headers
> > > > Date
> > > > Thu, 17 Sep 2009 00:56:30 GMT
> > > > Server
> > > > Apache/2.2.11 (Ubuntu)
> > > > PHP/5.2.6-3ubuntu4.2 with
> > > > Suhosin-Patch
> > > > X-Powered-By
> > > > PHP/5.2.6-3ubuntu4.2
> > > > Accept-Ranges
> > > > bytes
> > > > Cache-Control
> > > > public,max-age=86400
> > > > Expires
> > > > Fri, 18 Sep 2009 00:56:30 GMT
> > > > Vary
> > > > Accept-Encoding
> > > > Content-Encoding
> > > > gzip
> > > > Content-Length
> > > > 317
> > > > Connection
> > > > close
> > > > Content-Type
> > > > text/html; charset=UTF-8
> > > > Request Headers
> > > > Host
> > > > shindig:8080
> > > > User-Agent
> > > > Mozilla/5.0 (X11; U; Linux i686;
> > > > en-US; rv:1.9.0.14) Gecko/2009090216
> > > > Ubuntu/9.04 (jaunty) Firefox/3.0.14
> > > > Accept
> > > > text/html,application/xhtml
> > > > +xml,application/xml;q=0.9,*/*;q=0.8
> > > > Accept-Language
> > > > en-us,en;q=0.5
> > > > Accept-Encoding
> > > > gzip,deflate
> > > > Accept-Charset
> > > > ISO-8859-1,utf-8;q=0.7,*;q=0.7
> > > > Keep-Alive
> > > > 300
> > > > Connection
> > > > keep-alive
> > > > Content-Type
> > > > application/x-www-form-urlencoded;
> > > > charset=UTF-8
> > > > Referer
> > > > http://shindig:8080/gadgets/files/samplecontainer/samplecontainer.html
> > > > Content-Length
> > > > 208
> > > >
> > > > POST:
> > > > ------------
> > > >
> > > > {"context":{"country":"default","language":"default","view":"default","container":"default"},"gadgets":[{"url":"
> > > > http://shindig:8080/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] => /var/www/shindig/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: SocialHelloWorld broken?

Posted by Yonas <yo...@gmail.com>.
The other sampleX.html pages are broken, too. I've attached the output
for sample6.

On Wed, 2009-09-16 at 21:27 -0400, Yonas wrote:
> Nice, that was the problem. Recommend to add this to the README.
> 
> On Thu, 2009-09-17 at 03:22 +0200, Chris Chabot wrote:
> > The error is pretty self explanatory, the meta data service gets an empty
> > post, ie $GLOBALS['HTTP_RAW_POST_DATA'] is empty in the
> > MetadataService->doPost function.
> > 
> > You could try using always_populate_raw_post_data = On in your php.ini and
> > if that doesn't help, perhaps the Suhosin patch is blocking the raw post
> > from being populated?
> > 
> > On Thu, Sep 17, 2009 at 3:05 AM, Yonas <yo...@gmail.com> wrote:
> > 
> > > hey guys,
> > >
> > > I'm using the PHP distro and I tried the first demo mentioned on the
> > > site:
> > >
> > > http://shindig:8080/gadgets/files/samplecontainer/samplecontainer.html
> > >
> > > Nothing shows up when clicking 'reset all', and Firebug shows these
> > > errors:
> > >
> > >
> > > Headers:
> > > ------------
> > > Response Headers
> > > Date
> > > Thu, 17 Sep 2009 00:56:30 GMT
> > > Server
> > > Apache/2.2.11 (Ubuntu)
> > > PHP/5.2.6-3ubuntu4.2 with
> > > Suhosin-Patch
> > > X-Powered-By
> > > PHP/5.2.6-3ubuntu4.2
> > > Accept-Ranges
> > > bytes
> > > Cache-Control
> > > public,max-age=86400
> > > Expires
> > > Fri, 18 Sep 2009 00:56:30 GMT
> > > Vary
> > > Accept-Encoding
> > > Content-Encoding
> > > gzip
> > > Content-Length
> > > 317
> > > Connection
> > > close
> > > Content-Type
> > > text/html; charset=UTF-8
> > > Request Headers
> > > Host
> > > shindig:8080
> > > User-Agent
> > > Mozilla/5.0 (X11; U; Linux i686;
> > > en-US; rv:1.9.0.14) Gecko/2009090216
> > > Ubuntu/9.04 (jaunty) Firefox/3.0.14
> > > Accept
> > > text/html,application/xhtml
> > > +xml,application/xml;q=0.9,*/*;q=0.8
> > > Accept-Language
> > > en-us,en;q=0.5
> > > Accept-Encoding
> > > gzip,deflate
> > > Accept-Charset
> > > ISO-8859-1,utf-8;q=0.7,*;q=0.7
> > > Keep-Alive
> > > 300
> > > Connection
> > > keep-alive
> > > Content-Type
> > > application/x-www-form-urlencoded;
> > > charset=UTF-8
> > > Referer
> > > http://shindig:8080/gadgets/files/samplecontainer/samplecontainer.html
> > > Content-Length
> > > 208
> > >
> > > POST:
> > > ------------
> > >
> > > {"context":{"country":"default","language":"default","view":"default","container":"default"},"gadgets":[{"url":"
> > > http://shindig:8080/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] => /var/www/shindig/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: SocialHelloWorld broken?

Posted by Yonas <yo...@gmail.com>.
Nice, that was the problem. Recommend to add this to the README.

On Thu, 2009-09-17 at 03:22 +0200, Chris Chabot wrote:
> The error is pretty self explanatory, the meta data service gets an empty
> post, ie $GLOBALS['HTTP_RAW_POST_DATA'] is empty in the
> MetadataService->doPost function.
> 
> You could try using always_populate_raw_post_data = On in your php.ini and
> if that doesn't help, perhaps the Suhosin patch is blocking the raw post
> from being populated?
> 
> On Thu, Sep 17, 2009 at 3:05 AM, Yonas <yo...@gmail.com> wrote:
> 
> > hey guys,
> >
> > I'm using the PHP distro and I tried the first demo mentioned on the
> > site:
> >
> > http://shindig:8080/gadgets/files/samplecontainer/samplecontainer.html
> >
> > Nothing shows up when clicking 'reset all', and Firebug shows these
> > errors:
> >
> >
> > Headers:
> > ------------
> > Response Headers
> > Date
> > Thu, 17 Sep 2009 00:56:30 GMT
> > Server
> > Apache/2.2.11 (Ubuntu)
> > PHP/5.2.6-3ubuntu4.2 with
> > Suhosin-Patch
> > X-Powered-By
> > PHP/5.2.6-3ubuntu4.2
> > Accept-Ranges
> > bytes
> > Cache-Control
> > public,max-age=86400
> > Expires
> > Fri, 18 Sep 2009 00:56:30 GMT
> > Vary
> > Accept-Encoding
> > Content-Encoding
> > gzip
> > Content-Length
> > 317
> > Connection
> > close
> > Content-Type
> > text/html; charset=UTF-8
> > Request Headers
> > Host
> > shindig:8080
> > User-Agent
> > Mozilla/5.0 (X11; U; Linux i686;
> > en-US; rv:1.9.0.14) Gecko/2009090216
> > Ubuntu/9.04 (jaunty) Firefox/3.0.14
> > Accept
> > text/html,application/xhtml
> > +xml,application/xml;q=0.9,*/*;q=0.8
> > Accept-Language
> > en-us,en;q=0.5
> > Accept-Encoding
> > gzip,deflate
> > Accept-Charset
> > ISO-8859-1,utf-8;q=0.7,*;q=0.7
> > Keep-Alive
> > 300
> > Connection
> > keep-alive
> > Content-Type
> > application/x-www-form-urlencoded;
> > charset=UTF-8
> > Referer
> > http://shindig:8080/gadgets/files/samplecontainer/samplecontainer.html
> > Content-Length
> > 208
> >
> > POST:
> > ------------
> >
> > {"context":{"country":"default","language":"default","view":"default","container":"default"},"gadgets":[{"url":"
> > http://shindig:8080/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] => /var/www/shindig/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: SocialHelloWorld broken?

Posted by Chris Chabot <ch...@google.com>.
The error is pretty self explanatory, the meta data service gets an empty
post, ie $GLOBALS['HTTP_RAW_POST_DATA'] is empty in the
MetadataService->doPost function.

You could try using always_populate_raw_post_data = On in your php.ini and
if that doesn't help, perhaps the Suhosin patch is blocking the raw post
from being populated?

On Thu, Sep 17, 2009 at 3:05 AM, Yonas <yo...@gmail.com> wrote:

> hey guys,
>
> I'm using the PHP distro and I tried the first demo mentioned on the
> site:
>
> http://shindig:8080/gadgets/files/samplecontainer/samplecontainer.html
>
> Nothing shows up when clicking 'reset all', and Firebug shows these
> errors:
>
>
> Headers:
> ------------
> Response Headers
> Date
> Thu, 17 Sep 2009 00:56:30 GMT
> Server
> Apache/2.2.11 (Ubuntu)
> PHP/5.2.6-3ubuntu4.2 with
> Suhosin-Patch
> X-Powered-By
> PHP/5.2.6-3ubuntu4.2
> Accept-Ranges
> bytes
> Cache-Control
> public,max-age=86400
> Expires
> Fri, 18 Sep 2009 00:56:30 GMT
> Vary
> Accept-Encoding
> Content-Encoding
> gzip
> Content-Length
> 317
> Connection
> close
> Content-Type
> text/html; charset=UTF-8
> Request Headers
> Host
> shindig:8080
> User-Agent
> Mozilla/5.0 (X11; U; Linux i686;
> en-US; rv:1.9.0.14) Gecko/2009090216
> Ubuntu/9.04 (jaunty) Firefox/3.0.14
> Accept
> text/html,application/xhtml
> +xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language
> en-us,en;q=0.5
> Accept-Encoding
> gzip,deflate
> Accept-Charset
> ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive
> 300
> Connection
> keep-alive
> Content-Type
> application/x-www-form-urlencoded;
> charset=UTF-8
> Referer
> http://shindig:8080/gadgets/files/samplecontainer/samplecontainer.html
> Content-Length
> 208
>
> POST:
> ------------
>
> {"context":{"country":"default","language":"default","view":"default","container":"default"},"gadgets":[{"url":"
> http://shindig:8080/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] => /var/www/shindig/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>
>
>
>