前提・実現したいこと
wordpressでサイト構築をしています。
トップページと投稿一覧ぺージにはタイトル、更新日時、抜粋文がきちんと表示されていますが、
リンクから個別の記事ページに飛ぶと画面が真っ白です。
きちんと記事が表示されるようになるにはどうしたら良いのでしょうか。
テンプレートはフリー版の「owner」というものを使用しています。
どなたかお分かりになる方がいらっしゃいましたら、どうかお力添えをお願いいたしますm()mm()m
発生している問題・エラーメッセージ
・ソースを見るとシングルページのヘッダー部分は読み込まれているよう (厳密には </head> の手前まで) ・本文は読み込まれておらず、画面は真っ白 ■ デバッグモードでのメッセージ Notice: Undefined index: page in /home/ドメイン名/www/wp/wp-content/plugins/advanced-category-excluder/advanced-category-excluder.php on line 15 Notice: wp_enqueue_script が誤って呼び出されました。スクリプトおよびスタイルは wp_enqueue_scripts、admin_enqueue_scripts、login_enqueue_scripts フック以降のみに登録・キュー追加できます。 詳しくは WordPress のデバッグをご覧ください。 (このメッセージはバージョン 3.3.0 で追加されました) in /home/ドメイン名/www/wp/wp-includes/functions.php on line 4147 Notice: Use of undefined constant ace - assumed 'ace' in /home/ドメイン名/www/wp/wp-content/plugins/advanced-category-excluder/advanced-category-excluder.php on line 310 Notice: Use of undefined constant ace - assumed 'ace' in /home/ドメイン名/www/wp/wp-content/plugins/advanced-category-excluder/advanced-category-excluder.php on line 310 Fatal error: Uncaught Error: Call to undefined function split() in /home/ドメイン名/www/wp/wp-content/plugins/advanced-category-excluder/advanced-category-excluder.php:367 Stack trace: #0 /home/ドメイン名/www/wp/wp-includes/class-wp-hook.php(286): ace_head('') #1 /home/ドメイン名/www/wp/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/ドメイン名/www/wp/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/ドメイン名/www/wp/wp-includes/general-template.php(2614): do_action('wp_head') #4 /home/ドメイン名/www/wp/wp-content/themes/owner/header.php(22): wp_head() #5 /home/ドメイン名/www/wp/wp-includes/template.php(688): require_once('/home/ドメイン名...') #6 /home/ドメイン名/www/wp/wp-includes/template.php(647): load_template('/home/ドメイン名...', true) #7 /home/ドメイン名/www/wp/wp-includes/general-template.php(41): locate_template(Array, true) #8 /home/ドメイン名/www/wp/wp-content/themes/owner/single.php(12): get_header() #9 in /home/ドメイン名/www/wp/wp-content/plugins/advanced-category-excluder/advanced-category-excluder.php on line 367
該当のソースコード
「single.php」のコード <?php /** * The template for displaying all single posts. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post * * @package Mystery Themes * @subpackage Owner * @since 1.0.0 */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content', 'single' ); the_post_navigation(); // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; // End of the loop. ?> </main><!-- #main --> </div><!-- #primary --> <?php owner_get_sidebar(); get_footer(); ----- 「content-single.php」内 <?php /** * Template part for displaying post content. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package Mystery Themes * @subpackage Owner * @since 1.0.0 */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="entry-content"> <div class="single-post-image"> <figure><?php the_post_thumbnail( 'owner-blog-large' ); ?></figure> </div> <?php if ( 'post' === get_post_type() ) { ?> <div class="entry-meta"> <?php owner_posted_on(); ?> </div><!-- .entry-meta --> <?php } ?> <?php the_content( sprintf( /* translators: %s: Name of current post. */ wp_kses( __( 'Continue reading %s <span class="meta-nav">→</span>', 'owner' ), array( 'span' => array( 'class' => array() ) ) ), the_title( '<span class="screen-reader-text">"', '"</span>', false ) ) ); wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'owner' ), 'after' => '</div>', ) ); ?> </div><!-- .entry-content --> <footer class="entry-footer"> <?php owner_entry_footer(); ?> </footer><!-- .entry-footer --> </article><!-- #post-## -->
試したこと
・パーマリンク設定を別のものに変えてみる → 変化なし
・PHPのバージョン確認:PHP 7.1
・single.phpの中身を他の動作しているプログラムに差し替え → 変化なし
・get_header と get_footer のみにしてみる → 変化なし
・新規記事の追加 → 同じ症状
・他のテンプレートに変更 → 同じ症状
補足情報(FW/ツールのバージョンなど)
wordpressは最新のバージョン
利用中のプラグイン
・Advanced Category Excluder
・Akismet Anti-Spam (アンチスパム)
・All-in-One WP Migration
・Contact Form 7
・Jetpack by WordPress.com
・MetaSlider
・Shortcodes Ultimate
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/03/12 12:34
退会済みユーザー
2018/03/12 13:16
2018/03/12 13:25