我正在管理这个网站: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编辑很重要的东西。
发布于 2016-05-10 18:06:56
首先,正如前面提到的,不要修改核心主题文件,因为当主题更新时,您的文件将被覆盖,这会使问题更难调试。
首先要做的是在WP -config.php中打开wp Debug:
更改此行:
define( 'WP_DEBUG', false );
至:
define( 'WP_DEBUG_LOG', true );
然后你会在屏幕上看到一个错误,它会告诉你它来自哪里(插件,主题文件等)。
https://stackoverflow.com/questions/37132994
复制相似问题