Google日历Zend_Loader错误 [英] Google Calendar Zend_Loader errors

查看:100
本文介绍了Google日历Zend_Loader错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在PHP中初始化Google Calendar API时,Zend_Loader(1.10.8)出现了一些错误.这是我的代码:

I'm running into some errors with Zend_Loader (1.10.8) when I initialize the Google Calendar API in PHP. Here is my code:

\Zend_Loader::loadClass('Zend_Gdata');
\Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
\Zend_Loader::loadClass('Zend_Gdata_Calendar');
$this->_service = \Zend_Gdata_Calendar::AUTH_SERVICE_NAME;
$this->_client  = \Zend_Gdata_ClientLogin::getHttpClient(USER, PASS, $this->_service);
$this->_client->setConfig(array('keepalive' => true));
$this->_service = new \Zend_Gdata_Calendar($this->_client);
$this->defaultQuery = $this->_service->newEventQuery();

最后一行给出以下错误:

That last line gives the following errors:

Warning: include_once(Zend/Gdata/Calendar/Extension/EventQuery.php): failed to open stream: No such file or directory
Warning: include_once(): Failed opening 'Zend/Gdata/Calendar/Extension/EventQuery.php' for inclusion

这不会破坏任何功能,但是我不知道如何解决错误.我的EventQuery.php文件位于"/Zend/Gdata/Calendar/EventQuery.php"中,而不是错误中使用的路径.有什么想法吗?

This doesn't break any functionality, but I can't figure out how to resolve the errors. My EventQuery.php files lives in "/Zend/Gdata/Calendar/EventQuery.php" and not the path it's using in the error. Any ideas?

推荐答案

这是一个错误,并且它似乎在更新版本的ZendFramework中再次出现

It's a bug, and it seems it occurs again in newer versions of ZendFramework

这是原始的 http://framework.zend.com/issue/browse/ZF-7013?focusedCommentId = 49379

这是我重新打开过的,但是什么也没发生 http://framework.zend.com /issues/browse/ZF-11959

here is the one i reopened but nothing happends http://framework.zend.com/issues/browse/ZF-11959

这篇关于Google日历Zend_Loader错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆