|  首頁
說明

WordPress 說明

Fix the FTP popup in WordPress

You may encounter a popup for your FTP username and password when installing or updating a plugin in WordPress. Follow these steps to correct the problem:

  1. Connect to your website with FTP.
  2. Add these 3 lines anywhere within the wp-config.php file:
    define('FS_METHOD', 'direct');
    define('FS_CHMOD_DIR', (0705 & ~ umask()));
    define('FS_CHMOD_FILE', (0604 & ~ umask()));
    
  3. Save your changes and upload the file.
  4. Once inserted, you may need to refresh the WordPress Dashboard or clear your browser cache and cookies.

Note: It's important to insert these lines of code above the line: /* That's all, stop editing! Happy publishing. */.

You can now update or install plugins without this issue.


這篇文章有用嗎?
感謝您提供意見。 若要與客戶服務代表聯絡,請撥打支援中心電話號碼,或使用上方的對話選項。
很高興能幫上忙! 還有什麼可幫您的嗎?
很抱歉有這種情形。 請告訴我們您不了解的部分,或解決方案無法解決您問題的原因。