はじめまして、全くの初心者です。
Wordpressでブログサイト構築したのですが(親テーマ:graphy)読み込みエラーで
表示されなくなりました。
もともとはwordpress上で、子テーマが子テーマを参照しているというエラー表示があり、
他のサイトを参考に子テーマのstyle.cssのみをいじっていましたが、結局わからず、
全て元に戻しました。
ここからがよくわからないのですが、しばらくするとアクセスできなくなりエラーメッセージが下記の通り
出るようになりました。
Warning: require(/home/(ユーザー名)/(ドメイン名)/public_html/wp-content/themes//inc/template-tags.php): failed to open stream: No such file or directory in /home(ユーザー名)/(ドメイン名)/public_html/wp-content/themes/graphy/functions.php on line 399
Fatal error: require(): Failed opening required '/home/(ユーザー名)/(ドメイン名)/public_html/wp-content/themes//inc/template-tags.php' (include_path='/home(ユーザー名)/(ドメイン名)/public_html/wp-content/plugins/backwpup/vendor/pear/archive_tar:/home/(ユーザー名)/(ドメイン名)/public_html/wp-content/plugins/backwpup/vendor/pear/console_getopt:/home/(ユーザー名)/(ドメイン名)/public_html/wp-content/plugins/backwpup/vendor/pear/http_request2:/home/(ユーザー名)/(ドメイン名)/public_html/wp-content/plugins/backwpup/vendor/pear/mail_mime:/home/(ユーザー名)/(ドメイン名)/public_html/wp-content/plugins/backwpup/vendor/pear/mail_mime-decode:/home/(ユーザー名)/(ドメイン名)/public_html/wp-content/plugins/backwpup/vendor/pear/net_url2:/home/(ユーザー名)/(ドメイン名)/public_html/wp-content/plugins/backwpup/vendor/pear/pear-core-minimal/src:/home/(ユーザー名)/(ドメイン名)/public_html/wp-content/plugins/backwpup/vendor/pear/pear_exception:.:/opt/php-7.0.30/data/pear') in /home/(ユーザー名)/(ドメイン名)/public_html/wp-content/themes/graphy/functions.php on line 399
functions.phpの399行目がエラーというのはわかるのですが、確認すると下記の通りの記述があります。
require get_template_directory() . '/inc/template-tags.php';
template-tags.php の読み込みができていないということになるのでしょうか。
上記2つのPHPをはじめ、基本はwordpressから投稿する以外は特にいじっていないのですが、
何がいけないのか、どこを更に確認しないといけないのか助言頂きたく、よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー