[英]getting blank pages for editing wordpress theme
我正在管理此網站: http : //www.reurl.in/5a9b63301 。 這是一個WordPress主題網站,我需要編輯一些頁面,例如索引頁面。 但是,當我進入wordpress管理面板時,在編輯頁面時會顯示空白頁面,沒有任何代碼。 當我從ftp看到索引頁面時,它顯示了以下代碼:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
如果你們對此有任何想法,請告訴我,因為這對我非常重要。 並建議任何對我來說對於Wordpress編輯來說很重要的內容。
首先,就像已經提到的那樣,不要修改核心主題文件,因為當主題更新時,您的文件將被覆蓋,這使問題難以調試。
首先要做的是在wp-config.php中打開WP Debug:
更改此行:
define( 'WP_DEBUG', false );
至:
define( 'WP_DEBUG_LOG', true );
然后,您應該在屏幕上得到一個錯誤,它將告訴您錯誤的來源(插件,主題文件等)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.