Sunday, 15 May 2011

Login urls not working for google PHP SDK -


I am trying to create a login and log out, I used the code from here < P>

So my code looks like

    

And I app.yaml

  application: Trial Version: 1 Runtime: php api_version: 1 thread: Right handlers: - url: / stylesheets static_dir : Stylesheets - URLs: / images static_dir: images - url: / scripts static_dir: script-url:. * Script: Mainkphp login required auth_fail_action: redirect   

When I use Google PHP SDK 1.8.1 The app will drive local I get a lot of errors and the page does not load .

  Error: Root: With php failure (255): & lt; Br / & gt; & Lt; B & gt; Warning & lt; / B & gt;: file_get_contents (): php_network_getaddresses: getaddrinfo failed: no such host is known & lt; B & gt; D: \ google_appengine 1.8.1 \ php \ sdk \ google \ appengine \ runtime \ RemoteApiProxy.php & lt; / B & gt; On the line & lt; B & gt; 92 & lt; / B & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; B & gt; Warning & lt; / B & gt;: file_get_contents (http: // localhost: 56354): failed to open the stream: php_network_getaddresses: getaddrinfo failed: no such host is known & lt; B & gt; D: \ google_appengine 1.8.1 \ php \ sdk \ google \ appengine \ runtime \ RemoteApiProxy.php & lt; / B & gt; On the line & lt; B & gt; 92 & lt; / B & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; P & gt; Serious error & lt; / P & gt;: Do not come up with the exception of the message 'Google \ net \ ProtocolBufferDecodeError' 'does not begin in logout_url' D: \ google_appengine 1.8.1 \ php \ SDK \ Google \ Appengine \ runtime \ proto \ ProtocolMessage .php : 121 Stack Trace: # 0 D: \ google_appengine 1.8.1 \ php \ sdk \ appengine \ order \ proto \ ProtocolMessage.php (88) Google: Google \ pure \ ProtocolMessage- & amp; Gt; MergeFromString ('') # 1D: \ google_appengine 1.8.1 \ php \ sdk \ Google \ appengine \ order \ RemoteApiProxy.php (109): Google \ pure \ ProtocolMessage- & amp; Gt; parseFromString ( '') # 2 D: \ google_appengine 1.8 .1 \ php \ SDK \ Google \ appengine \ runtime \ ApiProxy.php (42): Google \ appengine \ runtime \ RemoteApiProxy- & amp; Gt; makeSyncCall ( 'user', 'CreateLogoutURL', Object (Google \ Appengine \ CreateLogoutURLRequest), object (Google \ Appengine \ CreateLogoutURLResponse), zero) # 3 D: \ google_appengine 1.8.1 \ php \ SDK \ Google \ Appengine \ API \ users \ UserService.php (95): Google \ appengine \ runtime \ ApiProxy :: MakeSyncCall ( 'user', 'CreateLogoutURL', object (Google \ appengine \ CreateLogoutURL) request), object (Google \ appengine \ CreateLogoutURLResponse)) # 4 D: \ Google Php \ in & lt; P & gt; D: \ google_appengine 1.8.1 \ php \ sdk \ google \ appengine \ sequence \ proto \ protocolLocage.php & lt; / P & gt; On the line & lt; B & gt; 121 & lt; / B & gt; & Lt; Br / & gt; INFO 2013-06-20 22: 00: 49,384 server.pySTART_STRONG3Default: "GET / HTTP / 1.1" 500 -   

Any idea that is breaking into SDK.

When I run the app from the server it is not creating the sign-out link no link Not made

Compare the example:

  'Welcome,% s! (& Lt; a href = "% s"> sign out  

with your code:

 < Code> 'Welcome,% s! (Sign out) '   

No comments:

Post a Comment