我最初做了一个很长的单页面布局,使用front-page.php从多个页面获取内容。插件使用ACF,ACF Flexible Content和ACF Repeater。就像一个魅力,但现在我需要添加博客。我在Bootstrap 3中使用,所以我开始将_tk合并到我当前的主题中。
我在不同的服务器上安装了新的WP,安装了插件并导入了XML。经过一个小时的黑客攻击后,该网站变得空白。
WP-Admin可以访问。尝试禁用所有插件并更改为原始主题或Twenty Twelwe没有帮助。仍为空白页。
尝试使用以下方式启用错误报告:
error_reporting(E_ALL); ini_set('display_errors', 1);
define( 'WP_DEBUG', true);
空白页。
将内存限制增加到128M,没有帮助。
WP-Admin始终可以访问。
删除所有表格,删除所有FTP文件,重新安装,添加插件,导入XML使网站再次完美运行。直到〜一小时的黑客行为,网站再次空白。
怎么办?
编辑:
这里是我的旧函数.php非常简单。
<?php
if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11);
function my_jquery_enqueue() {
wp_deregister_script('jquery');
wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js", false, null);
wp_enqueue_script('jquery');
}
?>
这是我以前的header.php
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_uri(); ?> ">
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/_config.css">
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/fonts.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/vendor/html5shiv.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/vendor/respond.min.js"></script>
<![endif]-->
<link href="apple-touch-icon-144x144-precomposed.png" rel="apple-touch-icon" sizes='144x144'/>
<link href="apple-touch-icon-72x72-precomposed.png" rel="apple-touch-icon" sizes='72x72'/>
<link href="apple-touch-icon-114x114-precomposed.png" rel="apple-touch-icon" sizes='114x114'/>
<link href="apple-touch-icon-57x57-precomposed.png" rel="apple-touch-icon" sizes='57x57'/>
<meta name="msapplication-square150x150logo" content="apple-touch-icon-144x144-precomposed.png"/>
<meta name="msapplication-TileImage" content="apple-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#f87242"/>
<meta name="application-name" content="Scoutzie.com" />
<?php wp_head(); ?>
</head>
<body>