2017-12-15 1 views
0

로컬 컴퓨터에서 준비 서버로 웹 사이트를 마이그레이션했습니다. 나는 그래서 난 그냥 파일에 _get_option 기능의 사본을 복사 시도 서둘러입니다마이그레이션 된 WordPress 사이트 및 지금 테마가 WordPress 기능을로드하지 않습니다.

[15-Dec-2017 00:22:51 UTC] PHP Fatal error: Uncaught Error: Call to undefined function of_get_option() in /var/www/html/assets/themes/underscore/header.php:37 
Stack trace: 
#0 /var/www/html/wp-includes/template.php(555): require_once() 
#1 /var/www/html/wp-includes/template.php(514): load_template('/var/www/html/a...', true) 
#2 /var/www/html/wp-includes/general-template.php(45): locate_template(Array, true) 
#3 /var/www/html/assets/themes/underscore/index.php(1): get_header() 
#4 /var/www/html/wp-includes/template-loader.php(75): include('/var/www/html/a...') 
#5 /var/www/html/wp-blog-header.php(16): require_once('/var/www/html/w...') 
#6 /var/www/html/index.php(17): require('/var/www/html/w...') 
#7 {main} 
    thrown in /var/www/html/assets/themes/underscore/header.php on line 37 

:

이상하게, 주제는 스택 추적이 제대로 표시에도 불구하고 기능을로드하지 않습니다 그것은 오류를 없앴습니다.

하지만 다른 장소가 튀어 나옵니다.

[15-Dec-2017 00:29:35 UTC] PHP Warning: include_once(../wp-includes\option.php): failed to open stream: No such file or directory in /var/www/html/assets/themes/underscore/header.php on line 33 
[15-Dec-2017 00:29:35 UTC] PHP Warning: include_once(): Failed opening '../wp-includes\option.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/assets/themes/underscore/header.php on line 33 
[15-Dec-2017 00:29:35 UTC] PHP Fatal error: Uncaught Error: Call to undefined function WC() in /var/www/html/assets/themes/underscore/header.php:79 
Stack trace: 
#0 /var/www/html/wp-includes/template.php(555): require_once() 
#1 /var/www/html/wp-includes/template.php(514): load_template('/var/www/html/a...', true) 
#2 /var/www/html/wp-includes/general-template.php(45): locate_template(Array, true) 
#3 /var/www/html/assets/themes/underscore/index.php(1): get_header() 
#4 /var/www/html/wp-includes/template-loader.php(75): include('/var/www/html/a...') 
#5 /var/www/html/wp-blog-header.php(16): require_once('/var/www/html/w...') 
#6 /var/www/html/index.php(17): require('/var/www/html/w...') 
#7 {main} 
    thrown in /var/www/html/assets/themes/underscore/header.php on line 79 

아무도 알아낼 수없는 이유가 무엇입니까?

+0

될 가능성이 보인다, 다른 파일에 대한 잘못된 참조가? 'WC()'는 Woocommerce입니다. 플러그인 페이지로 이동하여 플러그인 페이지가 모두 있는지 확인하십시오. 마이그레이션 중에 플러그인이 어두워지는 경우가 있습니다. –

+0

현재 로그인 할 수 없지만 제안 해 주셔서 감사합니다. –

답변

0

themes/underscore/header.php이 문제 테마가 의존 플러그인이 비활성화됩니다 궁금 /wp-includes\option.php

+0

동일한 파일이 로컬에서 완벽하게 작동합니다. 이는 당혹 스럽습니다. 그냥 닦아내 다른 마이그레이션을 시도 할 것입니다. 당신의 도움을 주셔서 감사합니다. –

+0

하지만 디렉토리 구조가 동일합니까? – miknik

+0

확실하지 않습니다. 다른 백업을 시도하기 위해 삭제했습니다. 귀하의 제안에 감사드립니다. –

관련 문제