【问题标题】:HTTP Error 500 (Internal Server Error) while using Zend google calendar Api使用 Zend google calendar Api 时出现 HTTP 错误 500(内部服务器错误)
【发布时间】:2014-01-10 00:41:27
【问题描述】:

我想将我的应用程序与 Google 日历同步,当我使用 Zend Google Calendar API 时,当我提供 Gmail 用户名和密码时,API 会提供令牌并使用 URL 刷新页面:

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

当它在给定令牌后再次回到我的函数时......所以它来到了这个函数:

$client = getAuthSubHttpClient();

永远不会带着$client对象回来并遇到这个错误:

网站遇到错误,可能正在停机维护 或配置错误。

【问题讨论】:

标签: php zend-framework google-calendar-api


【解决方案1】:

最好检查 PHP 代码中的致命错误:

将下面的行放在代码顶部,检查它是否显示任何致命错误

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

希望有帮助

~K

【讨论】:

  • 是的得到了错误:Fatal error: Call to undefined function getAuthSubHttpClient()
【解决方案2】:

我认为您可能没有包含所有的针刺脚本或类。

请确保所有内容都包含在内,并且所有需要的扩展都安装在您的 PHP 主机上。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-21
    • 1970-01-01
    相关资源
    最近更新 更多