使用Zend谷歌日历Api时出现HTTP错误500(内部服务器错误)

问题描述:

I want to sync my application with Google calendar, while I am using Zend Google Calendar API, when I given the Gmail username and password, the API gives the token and refresh the page with URL:

http://dev.example.com/prac/googlecalendar?token=1%2FLH52gw1KqpZKBXDdTqTIJMTIBO_DIhfMH3_VKhPMfKY

when it come back to my function again after given the token..so it come to this function:

$client = getAuthSubHttpClient();

and never come back with $client object and encountered this error:

The website encountered an error and It may be down for maintenance or configured incorrectly.

我正在使用 Zend Google Calendar API strong >,当我提供Gmail用户名和密码时,API会提供令牌并使用URL刷新页面: p>

http://dev.example.com/prac/googlecalendar?token=1%2FLH52gw1KqpZKBXDdTqTIJMTIBO_DIhfMH3_VKhPMfKY p>

当它给出令牌后它再次回到我的函数。所以它来到这个函数: p>

  $ client = getAuthSubHttpClient(  ); 
  code>  pre> 
 
 

并且永远不会带回 $ client code>对象并遇到此错误: p>

网站遇到错误,可能因维护不合理或配置不正确。 p> blockquote> div>

Better you check for Fatal Errors in PHP code:

Put below lines on top of your code, check if its showing any Fatal error

ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);

Hope this help

~K

I think you may not have included all needet scripts or classes.

Please ensure, that everything is included and alle needed extensions are installed at you PHP-Host.