database - Wordpress 迁移问题 503 错误
问题描述
解决方案
完成这些步骤并检查它,
启用 WP_DEBUG
But since the 503 error often locks you out of your WordPress admin, we shall use WP_DEBUG and WP_DEBUG_LOG, WP_DEBUG_DISPLAY and @ini_set constants available to WordPress.
To enable debug mode in WordPress and write errors to a log file, follow these steps:
1. Open the wp-config.php file
2. Scroll down to where WP_DEBUG is defined. It looks like this define ('WP_DEBUG', false);. If it is missing, we will add it just above the line that says /*That's all, stop editing! Happy blogging.*/
3. Insert the DEBUG magic codes. Just change the above define ('WP_DEBUG', false); code to:
define ('WP_DEBUG', true);
define ('WP_DEBUG_LOG', true);
define ('WP_DEBUG_DISPLAY', false);
@ini_set ('display_errors', 0);
4. Save changes
Now, reload your site to provoke the error. Next, locate a file known as debug.log inside your wp-content folder in your WordPress directory.
This file contains all the errors on your website. If your 503 service unavailable error is caused by a custom code snippet, it will show up somewhere with details of the error.
Eliminate/replace the problematic code and reload your site. If the 503 error persists, the problem could lie in your web server.
推荐阅读
- php - 复合/颜色通道的 PHP Imagick 问题
- gdb - gdb:在尚未定义的函数上设置断点
- php - 正确的电子邮件发送方式 - 设计模式
- android - 为 Android ARMV7 编译 OpenSSL 1.1.0
- facebook - Azure App Service (Asp.net core) Facebook 登录问题 (redirect_uri_mismatch)
- amazon-web-services - 无效的操作配置:尝试读取任务定义工件文件时出现异常
- r - 定义在 ggplot2 中与多个几何图形一起使用时用于 geom_point 的形状
- javascript - Google Books API 的“无法从未定义中读取属性“0””
- python - 如何通过 parselmouth 在音频子序列上计算音频指标
- git - 从 git-ci ssh 进入 windows 服务器并使用参数执行 powershell 功能