[WordPress] 外掛分享: Windows Compatibility Fix

首頁外掛目錄 › Windows Compatibility Fix
1,000+
安裝啟用
★★★★★
5/5 分(8 則評價)
2704 天前
最後更新
問題解決
WordPress 4.0+ v1.0.2 上架:2017-05-03

內容簡介

此外掛將修復 Windows 系統在從第三方外掛儲存庫進行更新(例如在從 Easy Digital Downloads(EDD)網站進行更新)時長檔名的問題。

使用情境:

我們發現,在從第三方外掛儲存庫(例如 Easy Digital Downloads(EDD)網站)升級主題和外掛程式的 Windows 系統上,使用者會遇到問題。他們將會看到一則「更新失敗: 無法建立目錄…」的錯誤訊息。這是由於在更新過程中,從 EDD 網站要求的檔案名稱中有編碼的產品名稱、使用者名稱和其他相關資訊,以便 EDD 知道誰是請求該檔案的人。因此,導致檔案名稱非常長。這不一定是 WordPress 或 EDD 的問題,因為在非 Windows 系統上可以工作。但如果您在 Windows 上運行 WordPress 並看到此錯誤,這是因為請求了長檔名的原因。

如果您在 Windows 上使用 DesktopServer進行本地開發,並希望將 Windows Compatibility Fix 外掛作為設計時間外掛程式使用,您可以將其安裝在 C:\xampplite\ds-plugings 目錄中,它將自動啟用和使用在您的所有本地開發網站上。這允許您在需要的本地環境中使用該外掛程式,而不必在可能不需要該外掛程式的生產環境中部署它。有關 DesktopServer 和本地開發工具的更多信息,請訪問我們的網站:https://serverpress.com/get-desktopserver/

由於只有在 Windows 系統上需要此修正,因此此外掛程式會檢查其運行的作業系統,並不初始化自己。如果在非 Windows 系統上遇到更新過程的問題,可能更有可能是目錄權限的問題。

如何運作:

Windows Compatibility Fix 外掛程式使用了幾個 WordPress 過濾器,這些過濾器在更新過程中被使用。它修改要下載到您系統的檔案名稱,以縮短它的長度。這可以使 WordPress 的更新過程在 Windows 系統上正常運作,因為它一開始就不會建立長檔名。

支援:

支援詳情:我們很樂意提供支援和協助排除問題。請訪問我們的聯絡頁面:http://serverpress.com/contact/。但是,使用者應該知道,我們每週僅在週三下午6點至8點(太平洋標準時間,UTC-8)檢查 WordPress.org 支援論壇。

ServerPress, LLC不對使用此工具造成的任何資料損失負責。我們強烈建議在測試和使用此工具之前進行網站和數據庫備份。但是,如果您遇到此問題,我們希望能立即得知。

我們歡迎透過我們位於 GitHub 的公共儲存庫為此外掛程式提供反饋和合併請求。儲存庫位於:https://github.com/ServerPress/Windows-Compatibility-Fix

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Windows Compatibility Fix」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin will fix long filename problems on Windows systems when doing updates from third-party plugin repositories, such as updating from EDD based sites.
Usage Scenarios:
We’ve found that users on Windows systems that are upgrading themes and plugins from a third-party repository, such as an Easy Digital Downloads (EDD) site have problems. They will see an error message of “Update Failed: Could not create directory…”. The reason for this is that during the update process, the file name requested from the EDD site has the product name, user name and other information encoded within it so that EDD knows who is requesting the file. This results in a very long file name. This is not necessarily a problem WordPress itself, or even EDD, as this works on non-Windows systems. But if you are running WordPress on Windows and see this error, it is because of the long file name requested.
If you are using DesktopServer for your local development on Windows and would like to use the Windows Compatibility Fix plugin as a Design Time plugin, you can install this in your C:\xampplite\ds-plugings directory and it can then be automatically activated and used with all of your local development web sites. This allows you to use the plugin in your local environment, where it’s needed and not to deploy it to your live environment where it may not be needed. For more information on DesktopServer and local development tools, please visit our web site at: https://serverpress.com/get-desktopserver/
Because this fix is only needed on Windows systems, the plugin checks the operating system on which it is running and does not initialize itself. If you are having problems with the update process on non-Windows systems, it is more likely an issue with directory permissions.
How it Works:
The Windows Compatibility Fix plugin uses a couple of WordPress filters employed during the update process. It modifies the name of the file that is downloaded to your system, shortening it to just a few characters. This allows WordPress’s update process to work correctly on Windows systems by not creating the long file name in the first place.
Support:

Support Details: We are happy to provide support and help troubleshoot issues. Visit our Contact page at http://serverpress.com/contact/. Users should know however, that we check the WordPress.org support forums once a week on Wednesdays from 6pm to 8pm PST (UTC -8).

ServerPress, LLC is not responsible for any loss of data that may occur as a result of using this tool. We strongly recommend performing a site and database backup before testing and using this tool. However, should you experience such an issue, we want to know about it right away.
We welcome feedback and Pull Requests for this plugin via our public GitHub repository located at: https://github.com/ServerPress/Windows-Compatibility-Fix

延伸相關外掛

文章
Filter
Apply Filters
Mastodon