[英]Wordpress Migration Issue 503 error
最近,我修改了在開發服務器上創建的網站。 然后,我開始將其遷移到主服務器上。 最初,我在實時服務器上上傳數據庫時遇到unicode錯誤。 我用它搜索了一下,發現了堆棧溢出本身的解決方案( #1273 –未知歸類:'utf8mb4_unicode_520_ci' )。 我使用了sabba建議的方法,並且有效。 稍后當我更改配置文件並加載該鏈接時。 它給了我503錯誤。錯誤如下:
暫停服務
由於維護停機或容量問題,服務器暫時無法滿足您的請求。 請稍后再試。
此外,嘗試使用錯誤文檔來處理請求時,遇到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.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.