php - Zend_OpenId_Consumer login function hangs - even in the sample code -


I first tried to get a simple OpenId log-in using PHP-openId (Jain) and then using ZendFramework I am in both cases and I run against the same problem, I am using the example Jed Code Phase 38.2.2.

I see the login page properly, but when I enter my OpenID, this code executes: if (isset ($ _ POST ['Openid_action']) & $ _POST ['Openid_action'] == "login" & amp; empty ($ _ POST ['openid_identifier'])) {

  echo "new user"; $ Consumer = New Zend_OpenId_Consumer (); "Gomati" echo; If (! $ Consumer-> Login ($ _ POST ['openid_identifier'])) {$ status = "OpenID login failed."; Echo "failure"; } "Continuous" echo;  

The code appears to be $ consumer-> login on the function call I see the output from my first two echos, but I never fail or continuous (and when I log in If I try, I get only 500 internal errors in the server) without seeing. If I enter an invalid openId, then I get the correct "OpenID login login failed". Error message.

I'm sorry if I'm a fool here. I'm a former programmer promoted to management, and I'm trying to get it back - but I'm using techniques that are new to me (PHP, OpenID, Zend Framework) and it's just now There is no point in making sense.

Do anyone have any idea where to look? I do not believe the framework itself is stratified (especially when I did not have a similar problem with Jain OpenID stuff). I am using fatcow.com for web hosting - not sure that it is relevant.

Your code seems to be failing when OpenID providers try to create an external HTTP connection. The reason may be, but here are some suggestions:

  • Maybe you're behind the proxy?
  • If not, it may not be allowed to contact the remote server using your current host socket ( url_fopen order instructions). The default adapter for Zend_Http_Client is its socket adapter. Then, I will try to use my Zend_OpenId_Consumer method using a different setHttpClient method using an Zend_Http_Client Adapter in the / code> class.

    Some different ones are available:

    • Zend_Http_Client_Adapter_Socket (default)
    • Zend_Http_Client_Adapter_Proxy
    • Zend_Http_Client_Adapter_Test
    • Zend_Http_Client_Adapter_Curl

  • 'Proxy_Host' = & gt; 'Example.com', 'proxy_pport' = & gt; 8000, 'Proxy_User' = & gt; 'User', 'proxy_pass' = & gt; 'near')); $ Consumer = new Zend_OpenId_Consumer (); $ Consumer & gt; SetHttpClient ($ client);

    Your ISP should have documents about your proxy, if it is really a problem if proxy is not your problem, try curl adapter and if You see any more fate.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -