Wordpress에서 Zend Gdata 프레임 워크를 사용하려고하는데 몇 가지 문제가 있습니다. XAMPP로 localhost에서 테스트 할 때 모든 것이 완벽하게 작동합니다. 그러나 내 웹 서버에서 내 코드가 무너집니다.Wordpress에 Zend Gdata 프레임 워크를로드하는 중 오류가 발생했습니다.
다음은 프레임 워크를 포함하는 코드입니다.
`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 on line 146
경고 : Zend_Loader :: include_once() [function.include] : 포함을 위해 'Zend/Gdata/Youtube.php'를 열지 못했습니다. /home/damain/public_html/mysite.com/wp-content/themes/mysite/includes/Zend에서 (include_path = '/ home/damain/public_html/mysite.com/wp-content/themes/mysite/includes /') /Loader.php on line 146
치명적 오류 : 'File "Zend/Gdata/Youtube.php"라는 메시지가있는 검색되지 않은 예외'Zend_Exception ' 존재하지 않거나 "Zend_Gdata_Youtube"클래스가 /home/damain/public_html/mysite.com/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}/home/damain/public_html/mysite.com/wp-content/themes/mysite/includes/Zend/Loader.php on line 99
나는이 문제를 파악할 수 없다. 누구든지 도와 줄 수 있습니까?
예 디렉터리와 파일이 있습니다. 그러나 나는 권한으로 아무것도하지 않았다. 해당 파일에 어떤 권한이 있습니까? – Bill
정확히 모르겠지만 시스템에서 실행 가능해야합니다. 777을 시도해 보았습니다. 문제가되는지, 원래 설정했던 파마를 되돌려 보지 않으려 고합니다. – jeffreynolte