【发布时间】:2011-12-18 10:56:01
【问题描述】:
我正在尝试将 Zend Gdata 框架与 wordpress 一起使用,但我遇到了一些问题。 现在,当我使用 XAMPP 在 localhost 上进行测试时,一切正常。然而,在我的网络服务器上,我的代码崩溃了。
这是我包含框架的代码。
`set_include_path(TEMPLATEPATH . '/includes/');
require_once ('Zend/Loader.php');
Zend_Loader::loadClass('Zend_Gdata_Youtube');`
该代码产生以下错误。
警告:Zend_Loader::include_once(Zend/Gdata/Youtube.php) [zend-loader.include-once]: 无法打开流:/home/damain/public_html/mysite.com/ 中没有这样的文件或目录wp-content/themes/mysite/includes/Zend/Loader.php 在第 146 行
警告:Zend_Loader::include_once() [function.include]:无法打开“Zend/Gdata/Youtube.php”以包含(include_path='/home/damain/public_html/mysite.com/wp-content/themes /mysite/includes/') 在 /home/damain/public_html/mysite.com/wp-content/themes/mysite/includes/Zend/Loader.php 第 146 行
致命错误:在 /home/damain/public_html/mysite.com 中未捕获的异常“Zend_Exception”和消息“文件“Zend/Gdata/Youtube.php”不存在或在文件中找不到类“Zend_Gdata_Youtube”” /wp-content/themes/mysite/includes/Zend/Loader.php:99 堆栈跟踪:#0 /home/damain/public_html/mysite.com/wp-content/themes/mysite/includes/modules/yt_link_checker.php( 19): Zend_Loader::loadClass('Zend_Gdata_Yout...') #1 /home/damain/public_html/mysite.com/wp-includes/plugin.php(405): load_zend_gdata('') #2 /home/damain /public_html/mysite.com/wp-admin/admin.php(111): do_action('load_zend_gdata', Array) #3 /home/damain/public_html/mysite.com/wp-admin/index.php(10): require_once('/home/damain/...') #4 {main} 在第 99 行的 /home/damain/public_html/mysite.com/wp-content/themes/mysite/includes/Zend/Loader.php 中抛出
我似乎无法解决这个问题。有人可以帮忙吗?
【问题讨论】:
标签: wordpress frameworks gdata zend-loader