Maximum execution time of 30 seconds exceeded

如果在執行匯入其他WordPress網誌時,發生了Fatal error: Maximum execution time of 30 seconds exceeded 這樣的錯誤訊息,這是因為主機的PHP設定檔裡對於程式執行時間作了限制,這時候你可以以請求虛擬主機商幫忙協助排處問題。如果是自己的主機,請調整php.ini 檔案裡 max_execution_time 的數值,調整完後要重新啟動 Web 伺服器。另外還有一個方法,就是在.htaccess 檔案裡面(如果沒有這個.htaccess,可以建立一個)加上php_value max_execution_time 600,600這個數值單位是秒,請自行斟酌設定,設定完後將.htaccess 上傳到你安裝 WordPress 的目錄下,然後再執行WordPress匯入的動作。

This entry was posted in Troubleshooting and tagged . Bookmark the permalink.

2 Responses to Maximum execution time of 30 seconds exceeded

  1. 小乖 says:

    如果 wordpress的文章備份檔 太大 匯出後 無法 匯入 另一個WordPress 可以把那個太大的 xml 檔 切割成小xml 檔或是怎麼做嗎? (我的xml檔80幾M >_<)

  2. max says:

    小乖
    你好,匯出的XML檔有80幾M,實在是大的嚇人,你可以參考這一篇文章的說明。

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">