2017-12-15 14 views
0

Webサイトをローカルマシンからステージングサーバーに移行しました。移行された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 

私は急いでいますので、私はちょうどファイルに_get_option機能のコピーをコピーしようとしていますそれはエラーを取り除いた。

しかし、その後、別の場所がポップアップしてしまいました。

[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

わかりません。別のバックアップを試すために削除しました。あなたの提案をありがとう。 –

関連する問題