修復和解決最常見的WordPress錯誤的終極指南

您網站上的WordPress錯誤絕不是開玩笑。儘管有些可能只造成輕微的不便,但其他一些可能會導致嚴重的問題。停機,更新和安裝失敗以及資源丟失會阻止訪問者訪問或使用您的網站。這會損害您的信譽,並可能影響您的收入。

幾乎不可能完全了解每個潛在的WordPress錯誤。但是,了解一些用戶遇到的最常見的WordPress問題可以幫助您準備並解決彈出的WordPress問題。

這篇文章涵蓋了最常遇到的WordPress錯誤。我提供了一些資源來幫助您清理每個資源,以便您可以快速啟動網站並重新運行。

免費試用

讓我們跳進去吧!

從404到損壞的媒體文件,本指南將幫助您完全消除WordPress錯誤❌

點擊鳴叫

65+最常見的WordPress錯誤以及如何修復

為了在一個帖子中涵蓋這麼多不同的問題,我大致按類型組織了它們。您可以在下面找到有關WordPress網站各種組件及其可能遇到的問題的一般說明,然後是特定的錯誤及其解決方案。

400錯誤

標有400到499之間的數字的錯誤是HTTP客戶端錯誤。這通常意味著您網站的訪問者正在使用的瀏覽器與您網站的伺服器之間的通信過程中出現了問題。

1. 400錯誤的要求

400錯誤響應

Google Chrome瀏覽器中的400錯誤響應

當您的伺服器遇到客戶端錯誤時,「 400錯誤請求」響應是一個綜合解決方案,但它沒有屬於特定類別。這意味著此錯誤有多種可能的原因,包括:

  • 輸入錯誤的URL或包含不允許的字元的URL。
  • 瀏覽器緩存或cookie損壞。
  • 域名系統(DNS)數據和您的本地DNS緩存之間的差異。
  • 嘗試上傳太大的文件。
  • 某種常規伺服器錯誤。

可能的解決方案包括檢查URL的輸入錯誤,清除瀏覽器緩存和cookie,清除DNS緩存以及停用瀏覽器擴展。

2. 403禁止

有許多措施可以確保您的WordPress網站安全,包括各種級別的「許可權」。雖然此功能可以阻止不應訪問您網站的用戶進入,但如果許可權設置不當,有時可能會引起問題。

403禁止錯誤就是這樣的問題之一:

403禁止的錯誤

403 Google Chrome中的禁止響應

要修復此問題,您需要重置文件許可權或生成新的.htaccess文件。此問題也可能是由插件,內容交付網路(CDN)或熱鏈接保護問題引起的。

3.找不到404

用戶嘗試訪問不存在的網頁時發生404錯誤。他們沒有找到他們想要的資源,而是看到類似於以下頁面:

404錯誤頁面

Kinsta的404錯誤頁面

這個問題相對來說是無害的,但是對於用戶而言卻令人沮喪。為避免這種情況,請確保定期修復網站上斷開的鏈接,並在刪除頁面或將其移至新URL時實施重定向。

4.不允許使用405方法

405方法不允許錯誤是您的伺服器說收到了瀏覽器的請求但由於某種原因拒絕了它的方式。

解決此問題的方法有多種,包括回滾最近的主題和插件更新,檢查伺服器的配置和錯誤日誌以及調試應用程序代碼。

5. 413請求實體太大

如果您的瀏覽器中出現此錯誤,則意味著您嘗試訪問的網站的伺服器太大,因此無法處理您發出的HTTP請求。

如果您嘗試上傳非常「重」的文件,通常會發生這種情況。您可以通過增加最大HTTP請求大小來解決此問題。

6. 429個請求過多

如果用戶在短時間內嘗試訪問某個資源太多次,則他們可能會收到429 Too Many Requests錯誤。這是您的伺服器阻止可疑行為的方式。

為幫助防止登錄頁面上的網路攻擊可能導致429錯誤,您可以更改其默認URL。其他解決方案包括測試主題和插件衝突。

500個錯誤

您網站上標有500到599之間的任何錯誤均表示您的伺服器由於某種原因無法執行給定的請求。以下是一些最常見的示例。

7. 500內部伺服器錯誤

除了阻止用戶訪問您的網站之外,「 500 Internal Server Error」(內部伺服器錯誤)如果不能快速解決,還會對您的SEO產生負面影響:

500錯誤響應

Google Chrome瀏覽器中的內部服務錯誤

不幸的是,500錯誤有許多可能的原因和解決方案,這可能會使解決此問題變得棘手。您可以先清除瀏覽器緩存並重新載入頁面。如果不行,您可以深入研究更多技術調試方法。

8. 501未執行

此錯誤意味著您的伺服器不具備完成用戶瀏覽器發出的請求所需的功能。伺服器可能無法識別請求方法。

與500內部服務錯誤一樣,如果您在幾個小時內仍未解決,則501錯誤可能會降低搜索引擎排名。您可以嘗試重新載入頁面,清除瀏覽器緩存以及禁用任何活動代理設置來解決該問題。

但是,您可能需要聯繫您的房東以尋求幫助。

9. 502錯誤的網關

如果一台伺服器充當另一台伺服器的代理或「網關」,則用戶可能會遇到502 Bad Gateway錯誤。當代理從入站伺服器收到無效響應時,會發生這種情況。

502錯誤可能會影響您的SEO,因此最好儘快將其清除。重新載入頁面並清除瀏覽器緩存是不錯的起點。如果這些解決方案不起作用,請檢查DNS問題,嘗試禁用CDN或防火牆,或與主機聯繫以尋求幫助。

10. 503服務不可用

出現503服務不可用錯誤時,表示由於某種原因無法訪問您的伺服器。儘管您的網站正常運行,但用戶將無法訪問。

這可能是由於日常維護,高流量級別或伺服器出現了更嚴重的問題。好消息是503錯誤不會影響您的搜索引擎排名。但是,它仍然會使訪客非常煩惱。要解決此問題,您可以嘗試:

  • 停用您的插件。
  • 切換到默認主題。

  • 禁用您的CDN。
  • 限制WordPress心跳API。
  • 增加伺服器的資源。
  • 啟用WP_DEBUG。

如果上述解決方案均無效,則最好的做法是與房東的支持團隊聯繫。

11. 504網關超時

與502錯誤類似,504網關超時響應是入站伺服器與代理之間的通信問題的結果。本質上,這意味著後者伺服器在等待前者響應請求時超時。

這種類型的錯誤會對您的SEO產生負面影響。可能的解決方案包括重新載入頁面,禁用任何活動代理設置,檢查DNS是否存在問題以及暫時禁用CDN。

與伺服器相關的錯誤

您的伺服器負責存儲您所有WordPress網站的文件,並與瀏覽器進行通信以使您的內容可供用戶使用。

雖然已經列出的400和500錯誤以某種方式涉及您的伺服器,但是還有一些特定於WordPress的問題可能是由伺服器問題引起的。

12. WordPress內存限制錯誤

您的託管服務提供商會為您的站點分配一定數量的伺服器內存。如果達到伺服器的內存限制,則可能會遇到安裝新插件或主題或將媒體文件上傳到站點的問題。

不會成功添加新資源,而是會顯示一條消息:「嚴重錯誤:允許的內存大小已用盡」。如果發生這種情況,您可以嘗試通過編輯wp-config.php文件來增加PHP內存限制。

另外,您可以檢查正在使用的磁碟空間,並考慮升級到新的託管計劃,該計劃為不斷增長的WordPress網站提供更多空間。

13.上傳的文件超過php.ini中的upload_max_filesize指令

同樣,您的主機還為可以上傳到伺服器的單個文件的最大大小設置了限制。您可以通過在WordPress儀錶板中導航至“媒體”>“添加新內容”並查找最大上傳文件大小(Kinsta的默認上傳大小為128 MB)來查看此限制:

WordPress Media Uploader中列出的最大上傳文件大小。

WordPress Media Uploader中列出的最大上傳文件大小

如果您需要上傳大於指定最大大小的文件,則可以通過編輯php.ini文件來更改限制。或者,您可以聯繫您的主機提供商,與他們討論問題。

與嘗試自己進行更改相比,這要簡單得多,風險也要小得多,對於主機支持團隊來說也不是問題。

14.致命錯誤:超過最大執行時間

伺服器對腳本可以運行多長時間有限制(通常為30秒,在Kinsta上,默認最大執行時間為300秒)。如果您的WordPress網站上的PHP腳本花費的時間超過了所分配的時間限制,您可能會看到以下消息:「嚴重錯誤:超過了最大執行時間」。

您可以通過增加網站的執行時間限制來解決此問題。為此,您需要找到運行時間太長的腳本(可能是插件或主題的一部分)並將其刪除。

15.上傳:無法將文件寫入磁碟

將圖像添加到您的帖子和頁面可以使它們更有用,更有趣,並吸引更多的自然流量。但是,每次嘗試將媒體文件添加到站點時,如果看到諸如「上傳:無法將文件寫入磁碟」之類的消息,您將很難做到這一點。

此錯誤通常是由於文件許可權不正確造成的。您可以通過文件傳輸協議(FTP)更改文件許可權來解決此問題。

但是,這也可能是伺服器的問題。當您將文件上傳到WordPress時,它們首先被保存到伺服器上的臨時文件夾中。然後,將它們移動到適當的WordPress目錄。如果更改文件許可權不能解決此錯誤,請與您的主機聯繫,請他們清空您的臨時文件目錄,因為該目錄可能已滿並阻止了上傳。

16.安全連接錯誤

更新WordPress安裝的核心文件時,您的網站必須連接到WordPress.org。有時,由於伺服器的配置,這是不可能的。結果是在WordPress儀錶板中出現警告。

由於這是與您的伺服器直接相關的問題,因此您可能需要聯繫主機才能解決。您的伺服器可能受到DDoS攻擊,在這種情況下,錯誤應很快自行解決。另外,您可以嘗試通過安全外殼協議(SSH)將伺服器指向WordPress.org來自己解決問題。

與安全相關的錯誤

在您的網站上實施WordPress安全最佳做法是明智的。網路攻擊可能會造成嚴重破壞,需要大量資金進行修復。不幸的是,有時您採取的保護站點的措施可能會導致錯誤。

信息

如果您將站點託管在Kinsta,我們將提供黑客修復保證,並將免費清理您的惡意軟體。

17. Cloudflare錯誤521

儘管這是500個錯誤,就像我們在上一節中描述的那樣,但這是特定於Cloudflare的錯誤。這個流行的平台用作CDN,用於防禦DDoS和其他攻擊。

如果在您的網站上看到521錯誤,則說明Cloudflare無法連接到您的伺服器。它已關閉或由於某種原因阻止了該服務。一般來說,檢查並確保伺服器已啟動,並且防火牆已將Cloudflare的所有IP範圍都列入白名單,這將使您知道導致問題的原因。然後,您可以採取步驟與主機一起工作並解決它。

18.「對不起,出於安全原因,不允許使用此文件類型」

作為一種安全措施,WordPress具有允許的文件類型的標準列表。這樣可以防止惡意方將可執行文件添加到您的站點中,這可能會破壞用戶的敏感信息。

如果用戶嘗試上傳不在該列表中的文件類型,他們將看到一條消息:「抱歉,出於安全原因,不允許使用此文件類型」:

「對不起,出於安全原因,不允許使用此文件類型」消息

「抱歉,出於安全原因,不允許使用此文件類型」消息

您可以通過編輯wp-config.php文件來啟用WordPress默認設置中不允許的文件類型上傳。

WP Extra File Types插件也可以用作替代解決方案。

19.「對不起,您不允許訪問此頁面」

在本文的前面,我們簡要介紹了文件許可權,但回顧一下,他們確定誰可以編輯WordPress網站上的哪些文件。這樣可以使您的網站免受可能想要插入惡意代碼的黑客的攻擊。

但是,如果您的許可權設置不正確,它們可能會無意中阻止您或好心的用戶訪問您的網站。

這可能會導致錯誤顯示為:「對不起,您不允許訪問此頁面」。

不允許訪問

「抱歉,您不能訪問此頁面」錯誤消息

這個問題有很多可能的解決方案。您可能要嘗試:

  • 通過安全文件傳輸協議(SFTP)重置文件許可權。
  • 檢查以確保通過phpMyAdmin為您的帳戶分配了正確的用戶角色。
  • 確保您的資料庫前綴正確。
  • 解決插件和主題衝突。

在最壞的情況下,您還可以還原站點的備份或重置WordPress。

20.「安裝失敗:無法創建目錄」

每當您在WordPress網站上安裝插件或主題時,其文件都會添加到您的伺服器中。如果在安裝或更新過程中收到消息「安裝失敗:無法創建目錄」,則表明由於某種原因,WordPress無法將必要的文件添加到您的伺服器。

插件和主題更新也是如此。這是另一個與文件許可權有關的錯誤。

要解決此問題,請確保您可以通過FTP在wp-admin,wp-content和wp-includes目錄中寫入內容。

21.不正確的文件許可權

除了拒絕您訪問網站的某些區域(例如「抱歉,不允許您訪問此頁面」錯誤)之外,不正確的文件許可權還可能阻止您:

  • 更新或安裝插件和主題。
  • 發布或更新帖子和頁面。
  • 上載圖像。

另一方面,如果您的文件許可權不太強,則您的網站容易受到攻擊,並冒著黑客獲取文件訪問權的風險。他們可以在那裡刪除內容,竊取數據或添加自己的惡意代碼。

如果您遇到上述問題之一,或者懷疑自己已被黑客入侵,則可能需要通過SFTP驗證文件許可權:

ftp文件許可權

FileZilla中的文件許可權窗口

WordPress的默認數值對於文件夾是755,對於文件是644。

22. ERR_SSL_PROTOCOL_ERROR

安全套接字層(SSL)證書是用於加密數據的安全措施。這樣可以防止黑客竊取伺服器之間傳輸的敏感數據,例如信用卡信息。

如果您最近更換了託管服務提供商,或在網站上安裝了新的SSL證書,則可能會在瀏覽器中看到ERR_SSL_PROTOCOL_ERROR。這意味著,由於某種原因,您的伺服器無法建立安全連接。

您可以採取幾個步驟來解決此問題,包括更新瀏覽器和操作系統,驗證SSL證書,禁用瀏覽器擴展以及清除瀏覽器緩存和cookie。

23. ERR_SSL_VERSION_OR_CIPHER_MISMATCH

ERR_SSL_VERSION_OR_CIPHER_MISMATCH錯誤可能表明您的瀏覽器或操作系統已過期。這也可能是由SSL證書問題引起的,或者是在將WordPress網站遷移到新主機後彈出的。

如果更新瀏覽器和操作系統無濟於事,請檢查SSL證書中的名稱不匹配。或者,清除計算機的SSL狀態可以解決此問題,或者您的SSL證書可能已過時。

24.混合內容警告

當您將SSL證書添加到WordPress站點時,它將開始運行HTTPS而不是HTTP。如果您的網站嘗試同時載入HTTPS和HTTP內容或腳本,則會看到混合內容警告。

這可能是以下形式的變體:「此站點不是完全安全」。為了解決該錯誤,您需要按照一些步驟確定要載入的HTTP資源,然後將其刪除或替換為HTTPS資源。

WordPress媒體錯誤

在WordPress的世界中,「媒體」通常是指圖像文件。但是,它也包括視頻和音頻。雖然這些元素可以為您的用戶提供引人入勝的有趣內容,但由於過程中可能會出現各種錯誤,因此有時很難合併它們。

25. WordPress HTTP錯誤(將圖像上傳到媒體庫)

在嘗試將文件上傳到WordPress媒體庫時,您可能會遇到模糊的「 HTTP錯誤」。通常,它會在圖像上傳器的右側顯示為一個小的彈出框。

出現此問題的可能原因有很多,包括登錄會話過期,文件名中不允許使用字元,錯誤的許可權以及伺服器端問題。

首先,首先刷新頁面。如果這樣不起作用,請嘗試調整媒體文件的大小或重命名。如果不走運,則應檢查許可權或暫時停用插件和主題。如果您仍然無法完成上傳,則可能需要與您的主機聯繫。

26.「添加媒體」按鈕不起作用

在WordPress經典編輯器中,添加媒體按鈕是一項重要功能:

添加媒體按鈕

WordPress經典編輯器中的「添加媒體」按鈕

此按鈕使您可以快速上載新的媒體文件,或從媒體庫中選擇一個添加到帖子中。但是,有時單擊該按鈕沒有任何作用,或者可能完全被編輯器所忽略。

如果是這種情況,則可能是由於插件或主題衝突引起的。您可以通過在wp-config.php文件中添加define(’CONCATENATE_SCRIPTS’,false)函數或對潛在的兼容性錯誤進行故障排除來解決此問題。

27.損壞的媒體文件

如果您打開媒體庫後發現所有圖像全部消失或已被佔位符替換,則文件可能會「損壞」:

損壞的圖像文件

媒體庫中的圖像文件損壞

發生這種情況的原因多種多樣,包括:

  • 伺服器出現問題,例如性能問題。
  • 您的插件和/或主題之間的兼容性錯誤。
  • 不正確的文件許可權。
  • 駭客或其他攻擊。

要解決此問題,您可以嘗試將上傳目錄的文件許可權重置為755。如果這不起作用,請查看是否存在任何插件衝突。此後,如果圖像仍然損壞,請與您的主機提供商聯繫,以查看原因是否是伺服器問題。

28.「裁剪圖像時出錯」

在WordPress媒體庫中,您可以對上傳的圖像進行較小的編輯,例如旋轉和裁剪。嘗試以這種方式進行編輯時,您可能會收到消息:「裁剪圖像時出錯」。

有兩個可能的原因導致此錯誤。首先是您正在使用過時的PHP版本,在這種情況下,您只需升級即可修復它。另一方面,您的伺服器可能缺少必要的Graphics Draw(GD)軟體包。

在這種情況下,您需要根據設置進行適當的安裝步驟。萬一遇到麻煩,應聯繫您的主機提供商以尋求幫助。

29.不正確的Facebook縮略圖

社交共享是建立網站受眾群體的有效方法。但是,有時在Facebook上分享您的帖子時可能會顯示錯誤的縮略圖。

當您帖子中的多個圖像都包含Open Graph(OG)標籤時,通常會發生這種情況。 Facebook使用此標籤來猜測應將其用於縮略圖的圖像,但是當包含多張圖像時,平台會感到困惑。

解決此問題的一種方法是使用Yoast SEO的社交共享功能。通過此插件設置Facebook縮略圖,可以確保正確的圖像帶有OG標籤。

資料庫錯誤

您的WordPress安裝由兩個關鍵部分組成:文件和資料庫。儘管您更有可能與前者進行定期互動,但是資料庫對於網站正常運行的能力也至關重要。

30.建立資料庫連接時出錯

如果您的網站無法與MySQL資料庫建立連接,它將無法檢索顯示內容所需的數據。相反,您會看到以下錯誤:

錯誤資料庫連接

建立資料庫連接時出錯

這將阻止用戶查看您網站的前端,還將您從WordPress儀錶板中鎖定。導致此錯誤的最常見原因是您的資料庫憑據不正確。您可以在wp-config.php文件中更改它們。

31. WordPress資料庫已損壞

「腐敗」是一個通用術語,適用於WordPress資料庫和文件受到威脅或無法使用時。這通常會導致建立資料庫連接時出錯。

理想情況下,您需要還原資料庫的備份以替換損壞的版本。如果這不可能,您還可以通過將define(’WP_ALLOW_REPAIR’,true)函數添加到wp-config.php文件中來解決此錯誤。

建議閱讀:閱讀本指南,了解如何解決和修復WordPress資料庫問題。

PHP錯誤

PHP是WordPress不可或缺的一種編碼語言。與它的功能有關的問題可能會阻止您編輯站點或導致侵入性消息和通知。

32. WordPress中的PHP錯誤

當WordPress網站的PHP出現問題時,您會在WordPress信息中心頂部看到一條消息或警告,指出問題出在哪裡,哪些文件受到了影響。

這些消息是為開發人員準備的,因此他們可以深入研究其站點的代碼並修正問題。如果您沒有PHP的經驗,嘗試解決這些錯誤可能會給您的網站帶來更多問題。

如果這描述了您的情況,請不要擔心。 PHP錯誤不應阻止您的網站運行或阻止用戶訪問它。

理想情況下,您需要與可能導致此問題的所有相關插件或主題的開發人員聯繫。否則,您可以聘請開發人員來幫助您修復它。

33.「缺少臨時文件夾」

每當您將文件上傳到WordPress網站時,文件都會先存儲在一個臨時文件夾中,然後再移到其永久目錄中。但是,伺服器上不正確的PHP設置可能會阻止對該臨時文件夾的訪問,從而導致WordPress網站上出現錯誤。

解決此問題需要您通過FTP訪問伺服器並將以下功能添加到wp-config.php文件中:

define(’WP_TEMP_DIR’,dirname(__ file__)。『/ wp-content / temp /』);

然後,您可以將一個名為temp的新文件夾添加到wp-content目錄中。

WordPress文件錯誤

從您的帖子和頁面到插件和主題,您的WordPress安裝包含數百個(如果不是數千個)文件。與這些關鍵組件有關的錯誤可能會導致內容丟失或不可用。

34.「目標文件夾已存在」

當您在WordPress網站上安裝新主題或插件時,將在伺服器上創建一個文件夾來存儲其文件。如果您嘗試安裝插件或主題,並且伺服器上已經保存了一個具有相同名稱的文件夾,則會看到錯誤消息:「目標文件夾已存在…插件安裝失敗」:

目標文件夾存在

「目標文件夾已存在」錯誤

遇到此問題時,您的第一步應該是檢查是否已安裝插件或主題。

如果沒有,請通過FTP訪問伺服器並導航到wp-content文件夾。然後,查看您的插件或主題,以查看是否存在與您要安裝的組件同名的文件夾。刪除該文件夾後,您可以再次嘗試安裝。

35. WordPress主題樣式表丟失

CSS是一種編碼語言,可確定您網站的「樣式」。其中可能包括顏色,字體和其他各種元素,這些元素使您的網站看起來很有趣。

當涉及WordPress主題時,所有必需的CSS都包含在名為「樣式表」的文件中。如果您的主題樣式表不可用,則您的網站將無法正確載入,並且您會看到錯誤消息:

樣式表丟失

WordPress主題列表中的「樣式表丟失」錯誤

在主題安裝期間也可能會發生這種情況:

主題缺少樣式表

由於缺少樣式表,主題安裝失敗

發生這種情況的原因可能是您的主題樣式表尚未上傳到您的伺服器,或者是因為其主題名稱不正確而無法找到。要解決此問題,請通過FTP訪問伺服器並導航到主題的子目錄。

然後,查找您主題的樣式表。如果不存在,請從主題文件中檢索它,然後將其上傳到伺服器。確保文件名為style.css並保存在正確的主題文件夾中。

36. Pluggable.php文件錯誤

您的WordPress網站的pluggable.php文件使用戶,插件和主題可以覆蓋核心功能。如果插件或主題的編碼不正確,則可能與此文件發生衝突。

該問題將在WordPress儀錶板中以php錯誤消息的形式出現,該消息引用了您的pluggable.php文件。但是,問題的根源通常不在pluggable.php本身內,例如,可能是您的wp-config.php或functions.php。

相反,您需要在錯誤消息中找到衝突的真實位置。然後,導航到相關文件並通過刪除空格,空行或類似內容來修復它。

37. WordPress文件已損壞

正如您的WordPress資料庫可能會損壞一樣,其文件也會損壞。這將使它們不可訪問,這是一個大問題,尤其是在涉及核心文件時。

損壞的文件可能是伺服器故障,不正確的文件許可權或PHP版本錯誤導致的。最簡單的解決方法是還原站點備份。只需在MyKinsta中單擊幾下即可。

首先,登錄MyKinsta儀錶板。轉到左側的「站點」,然後單擊您需要為其還原備份的WordPress網站。

從MyKinsta中的備份還原WordPress

從MyKinsta中的備份還原WordPress

從提供的選項中選擇您喜歡的備份選項,然後單擊「還原到」按鈕,決定是要在實時站點還是分段站點上還原備份。

將WordPress備份還原到MyKinsta中的實時站點

將WordPress備份還原到MyKinsta中的實時站點

然後,您將必須通過輸入站點名稱來確認備份還原。然後點擊「還原」。這將覆蓋您的實時環境。

或者,您可以通過下載WordPress,通過FTP刪除損壞的文件,然後從WordPress .zip文件上傳新副本來替換核心文件。

瀏覽器錯誤

訪客使用自己選擇的瀏覽器訪問您的網站。這意味著各種瀏覽器錯誤都可能使用戶無法訪問您的站點。防止它們將有助於您避免流量丟失。

38. Chrome中的「不安全」警告

使用Google Chrome瀏覽器瀏覽互聯網時,您可能已經注意到某些網頁的網址旁邊有「不安全」警告:

鉻不安全

Google Chrome瀏覽器中的「不安全」警告

網站未使用SSL證書時,瀏覽器將顯示此警告。如果您的網頁在用戶的瀏覽器中觸發了這些消息,則可能會損害您網站的信譽,並影響您的流量水平,SEO和轉化率。為防止這種情況發生,您可以安裝SSL證書。

最近,Chrome開始為未使用TLS 1.2或1.3的網站顯示ERR_SSL_OBSOLETE_VERSION警告消息。

39.「您的連接不是私有的」瀏覽器錯誤

甚至比Chrome中的「不安全」警告更糟糕的是「您的連接不是私有的」頁面。由於其SSL證書有問題(或缺少SSL證書),此錯誤使用戶無法輕鬆訪問您的站點。

如果他們遇到此頁面,可能會因為害怕用戶的個人信息被盜而嚇跑用戶。您可以通過確保正確安裝SSL證書來防止這種情況的發生,但這也可能是用戶必須自行修復的客戶端問題。

40.ERR_TOO_MANY_REDIRECTS

重定向循環通常顯示為「 ERR_TOO_MANY_REDIRECTS」,發生在伺服器上的重定向配置錯誤時。

例如,這可能意味著URL 1指向URL 2,但是URL 2指向URL 1,從而導致無限循環。用戶可以嘗試刪除該網站的Cookie並清除其瀏覽器緩存來解決此錯誤。您也可以嘗試確定重定向循環的性質,以便找出問題的根源,然後加以解決。

41. ERR_CONNECTION_REFUSED

像許多瀏覽器問題一樣,ERR_CONNECTION_REFUSED問題通常不是由特定於WordPress引起的。但是,如果用戶由於在Chrome中出現此消息而由於無法訪問您的網站而與您聯繫,那麼告訴他們如何解決問題仍然有幫助。

發生ERR_CONNECTION_REFUSED錯誤,因為用戶的瀏覽器無法連接到您站點的伺服器。這可能是伺服器端的問題,在這種情況下,您應該檢查網站是否關閉並聯繫託管服務提供商。另外,您可以嘗試指示用戶重新啟動路由器並清除其瀏覽器緩存。

42. ERR_EMPTY_RESPONSE

The ERR_EMPTY_RESPONSE issue occurs when a user』s browser sends a request to your site and your server sends nothing back. The most popular fixes for this issue are to clear your browser cache and reset your network settings.

You may also want to advise users who are experiencing this problem to disable any Chrome extensions they』re using and try temporarily disabling their anti-virus software.

43. DNS_PROBE_FINISHED_NXDOMAIN Browser Error

Your DNS is the system that takes your website』s IP address and turns it into a readable domain, such as kinsta.com. If your DNS fails to translate your domain into your site』s IP address correctly, users will see the DNS_PROBE_FINSHED_NXDOMAIN browser error in Chrome.

The first steps to resolve this issue are to release and renew your IP address. If that doesn』t work, you may suggest that users try temporarily disabling their anti-virus software or Virtual Private Networks (VPNs).

Troubleshooting Miscellaneous WordPress Errors

While many WordPress errors can be traced back to a specific cause, some are a little more difficult to diagnose. They may have multiple possible origins or lead back to a minute detail that doesn』t seem significant.

Below are a variety of WordPress problems that don』t fit neatly into the categories we』ve covered so far.

44. The White Screen of Death

One of the most famous WordPress errors is the White Screen of Death (WSoD). It causes your site to display as a blank white page to its users. This issue may also lock you out of your WordPress dashboard. Usually, it is caused by a plugin compatibility issue.

The best course of action for resolving it is to find the plugin that』s causing the conflict and remove it. Other possible causes include syntax errors, reaching your site』s memory limit, and file permissions issues.

45. Locked Out of the WordPress Admin Dashboard

Your WordPress dashboard is highly important for numerous tasks, including fixing many common WordPress errors. However, sometimes the issues you』re experiencing on your site can lock you out of your WordPress dashboard.

There are many possible causes for this problem. If you can, try to determine whether you』re locked out due to a separate problem, and then take steps to resolve the root of the issue. You can also try restoring a backup of your site, or disabling a security plugin via FTP if you believe it』s keeping you from your site』s backend.

46. Can』t Connect via SSH or SFTP

Sometimes, WordPress management or troubleshooting will require that you access your server directly. SFTP enables you to access your files, and SSH permits a wide variety of other remote tasks (here』s a guide on how to get started with SSH).

If you』re attempting to use SFTP or SSH to reach your server but can』t connect, you may need to delete outdated IP addresses from your known_hosts file.

47. SSH Connection Refused

In the event that you』re trying to connect to your server via SSH, and you see a message that reads 「Connection refused」 in your command line interface, the problem is slightly different:

connection refused error

The Connection refused error message in Terminal

Instead of editing known_hosts, you』ll need to check a few things related to your SSH configuration.

First, make sure that your server has an SSH daemon installed. You should also check your credentials and determine if the port you』re using is open. The issue could also be due to your firewall settings.

48. Briefly Unavailable for Scheduled Maintenance

Whenever you run updates on your WordPress site, it temporarily goes into maintenance mode. During this time, anyone who tries to access your site will see a message that says something like: 「Briefly unavailable for scheduled maintenance. Check back in a minute」:

unavailable scheduled maintenance

The 「Briefly unavailable for scheduled maintenance」 message in WordPress

This isn』t truly an error, since it』s supposed to happen, but users may interpret it differently. If they contact you about it but you』re not experiencing trouble on your end, you』ll want to recommend that they reload the page.

If you』re seeing this message while running updates in WordPress, on the other hand, your site may have gotten stuck in maintenance mode.

49. WordPress Stuck in Maintenance Mode

Closing your browser in the middle of an update or running bulk plugin updates can cause your site to get stuck in maintenance mode. In this case, you』ll see the same message that users see on the front end when you run updates.

Fortunately, fixing this problem is quite simple. All you have to do is access your site』s files via FTP, and delete the one named .maintenance:

wordpress maintenace file

The .maintenance file in FileZilla

After that you can check back with your site and all should be well again.

50. Changes Aren』t Visible on Your Live Site

If you』ve put in a lot of hard work to make updates to your site, only to check the frontend and see that none of them are visible, you may be feeling frustrated. The good news is that this problem is usually very simple to fix.

Most often, it』s the result of a caching issue. First, you can try clearing your browser cache. If your changes still aren』t visible and you』re using a caching plugin, check its documentation to learn how to clear the plugin』s cache as well.

51. Missed Schedule

A consistent upload schedule is part of a strong content strategy. WordPress helps with this by enabling you to schedule posts for publication at specific dates and times.

scheduled post trigger

The Scheduled Post Trigger plugin

Unfortunately, it doesn』t always work as intended, resulting in missed schedule errors. Generally speaking, the quickest solutions to this problem are either available via plugins, such as Scheduled Post Trigger or WP Scheduled Posts Pro, or by editing cron jobs.

Here at Kinsta, we configure your WordPress cron jobs to run at a system level with intervals of 15 minutes.

52. Failed Auto-Update

In order to help your site stay on the latest version of WordPress, you may have auto-updates enabled. This can be handy for streamlining this aspect of website maintenance and keeping your site secure, but it also sometimes results in problems.

Auto-updates can sometimes fail, in which case your site may go down and become unavailable to users. The recommended fix is to carry out a manual update instead.

53. WordPress Import Issues

For a variety of reasons, you may find that you need to import content into your WordPress site. This is a fairly common practice among developers, and various plugins are often used for this task.

Unfortunately, imports can easily result in PHP or HTTP timeouts. In order to avoid these issues, you can:

  • Switch to a faster internet connection.
  • Import your files using the WP-CLI.
  • Increase your PHP timeout limit.

You may also need to contact your hosting provider for help resolving this issue.

54. WordPress Performance Issues

Your site』s performance is more or less synonymous with its speed. Fast-loading pages make for better UX and SEO, so it』s important to routinely monitor and optimize your site』s speed. Pingdom is a handy tool for testing loading times from multiple locations:

pingdom tools test

The Pingdom Website Speed Test

After testing your site, Pingdom will give you a list of suggestions regarding how you can improve its performance. Common solutions include image compression, caching, and enabling a CDN.

55. WordPress Is Not Sending Emails

Email marketing is a key strategy for many WordPress sites and can increase your traffic level and conversion rates. There are several plugins available that can enable you to send emails from your WordPress dashboard, conveniently bundling your email marketing platform with your site』s backend.

Often, if your emails aren』t being sent to your subscribers, it』s because of your server』s configuration. Your host may have limits on the resources your site can use, which prevents emails from going out.

If you suspect a server-related issue, contact your host. You may need to upgrade your plan. Alternatively, the plugin you』re using could be the source of the problem. Check its support forums and documentation for common issues or contact the developer for support.

Finally, emails sent from WordPress may be marked as spam. If a user contacts you about a missing email, tell them to check their junk folder just in case.

56. WordPress Syntax Errors

Syntax errors refer to problems with the syntax or structure of your code. This may include incorrectly-used punctuation marks or other typos. In some cases, a syntax error can lock you out of your dashboard and break your site.

Despite the seemingly-insignificant root cause, this type of error is pretty serious. It often occurs when you paste in code snippets you』ve found online. If you』ve done something like that recently, that』s likely the source of your problem.

To resolve it, navigate to the location of the code snippet you pasted in using FTP, and correct or remove it.

57. The WordPress Sidebar Is Appearing Below the Content

Sidebars can be useful for displaying key content to your users, such as your navigation menu, WordPress search function, social icons, and even disclaimers. If your sidebar looks odd because it』s appearing below your content instead of next to it, however, you』ve got a problem.

This is often the result of misused

tags in one or more of your theme』s files. You』ll need to track down the source of the issue in order to correct your code and fix it. This could also occur due to problems with your site』s width, a float property error, or other issues with your WordPress theme.

58. White Text and Missing Buttons in the Visual Editor

Your WordPress editor is pretty important. Without it, adding new content to your site would be much more difficult. If you』ve ever opened the Classic Editor to find that all of the buttons are missing from the toolbar and your text color is set to white, you』ve probably felt the distress that comes with not having access to that functionality.

Often, this error is due to a plugin conflict or caching issue. If clearing your browser cache or deactivating your plugins doesn』t resolve the problem, you may need to replace some of your WordPress core files.

59. WordPress RSS Feed Issues

RSS feeds are an easy way to bolster your site through curation. They』re especially useful for news sites and other content hubs. However, errors in your RSS feed can appear unprofessional and prevent users from viewing content.

These errors may occur due to extra spaces or line breaks following closing PHP tags in your functions.php file or plugins. You can track them down and remove them to eliminate this issue. Alternatively, you may also need to test for plugin and theme incompatibilities or simply disable WordPress』 default RSS feeds function.

60. WordPress Failed to Open Stream

If you see an error message reading 「failed to open stream」, this means that WordPress was unable to open a file referenced somewhere in your code.

This error can be caused by a variety of issues, but the message will usually tell you what the source of the problem is. Possible responses include:

  • No such file or directory.
  • Permission denied.
  • Operation failed.

The course of action needed to correct the problem will depend on which response you』re seeing. It may be that there』s a file missing, your permissions are set incorrectly, or WordPress is having trouble connecting to a third-party API.

61. Password Reset Key Error

If users are able to register for accounts on your site, they may at times need to reset their passwords. In some cases, the default password reset email provides a link that directs users back to the login page, where they』ll see a message that reads: 「This key is invalid or has been used. Please try to reset the password again.」

Usually, this is a caching issue. If you have a caching plugin installed on your site, make sure you』ve disabled caching for the My Account page in the plugin』s settings. Instances of conflicts with CAPTCHA plugins have also been reported.

62. The Login Page Keeps Refreshing

If clicking on the Log In button on your WordPress login page simply refreshes it instead of bringing you to your dashboard, there may be something wrong going on:

wordpress login screen

The WordPress login screen

This issue may be due to a plugin conflict, wrong WordPress addresses, or a corrupted .htaccess file.

63. WordPress Keeps Logging You Out

Unlike the login page refreshing error, this problem enables you to briefly access your WordPress dashboard but then suddenly logs you back out. This is often due to an issue with your WordPress site』s settings.

If you』re experiencing this error, the WordPress Address and Site Address in your General settings probably don』t match:

wordpress general settings

The WordPress Address and Site Address in the General Settings

This can include seemingly small differences, such as whether or not both URLs include www at the beginning. Changing the URLs so they match should fix this issue.

If you aren』t able to do this via your dashboard because WordPress keeps logging you out, you can get the job done by editing your wp-config.php file.

64. 「Are You Sure You Want to Do This?」

The most frustrating WordPress errors are those that give no indication as to what might be causing them. An error reading 「Are you sure you want to do this?」 is one such issue.

Most often, this is the result of a plugin or theme conflict and can be resolved with standard troubleshooting for that situation. In the event that this doesn』t work, you will probably need to replace your wp-config.php file.

65. 「Another Update In Progress」

Normally, the 「Another update is currently in progress」 error appears if you』re trying to run a plugin or theme update while WordPress is still executing a core update.

Often this happens during automated core security updates. The message should automatically disappear once the first update has finished. If it doesn』t, you have an error on your hands. You can resolve it in phpMyAdmin by deleting the core_updater.lock row from the wp_options table.

66. Error Moving to Trash

WordPress enables you to easily delete posts and pages from your site with the click of a button. However, various problems can lead to an error when trying to move content to the trash.

This can occur because of a caching issue or a plugin conflict. It may also be due to database corruption or incorrect file permissions.

67. WordPress Installation Errors

Although WordPress is famous for its simple five-minute installation process, you may still run into trouble. Potential issues include the Error Establishing a Database Connection and 500 Internal Server Errors, which we』ve covered elsewhere in this post.

You may also encounter a 「Headers Already Sent」 error message. This is likely due to unnecessary spaces or PHP tags in your code. The message should tell you where the problem is and you can resolve it by editing the relevant file.

68. 「The Site Is Experiencing Technical Difficulties」

This error has become more frequent since the launch of WordPress 5.2. It usually appears during core, plugin, or theme updates:

experiencing technical difficultiesAn error message reading: 「The site is experiencing technical difficulties.」

The cause of 「The Site Is Experiencing Technical Difficulties」 error is typically either a PHP memory limit error or a plugin conflict. You can increase your site』s memory in different ways.

To troubleshoot a plugin conflict, try deactivating your plugins and then reactivating one by one to see which one causes the error to appear again.

Info

The default memory limit for Kinsta customers is set to 256 MB. If you host your WordPress site at Kinsta you shouldn』t have any issues with a lack of memory.

69. Your WordPress Site Is Down

An unavailable site can lead to lost traffic and revenue. If you』re sure that your WordPress site is down, the first step is determining if the cause is a WordPress error or if your server is experiencing trouble. Symptoms of other WordPress errors may tip you off to the underlying problem.

If none are present, you can try checking your server』s error logs. Here』s how to do it in MyKinsta:

Accessing error logs un MyKinsta

Accessing error logs un MyKinsta

If your server is unable to work properly or have no idea about what』s happening, you should contact your hosting provider for help.

Steps to fixing any #WordPress error: Read this guide. ✅ That’s it. That’s all the steps. ?

點擊鳴叫

摘要

The last thing any site owner wants is for their WordPress website to become unavailable to users or showing issues. Not only does this cause you to miss out on any sales, ad views, SEO, conversions, and even affiliate commissions you might have earned.

It』ll also make your site seem less reliable and hurt your brand reputation, which could be really hard to repair.

That』s why we grouped these common WordPress errors all together on a single page to help you find a fix as easily as possible and get your business back on track quickly. Isn』t that convenient?

Do you have any questions about troubleshooting errors on your WordPress site? Ask away in the comments section below!

如果您喜歡這篇文章,那麼您會喜歡Kinsta的WordPress託管平台。加速您的網站,並從我們經驗豐富的WordPress團隊獲得24/7支持。我們基於Google Cloud的基礎架構專註於自動擴展,性能和安全性。讓我們向您展示Kinsta的與眾不同!查看我們的計劃

相關文章