Wordpress asking for FTP credentials
If you are prompted to enter your FTP credentials when you try to install or update a plugin or theme in the WordPress admin, it is due to a specific setting in the wp-config.php file. Follow the steps below to prevent WordPress from displaying this FTP message.
- Connect to your hosting account with FTP or File Manager .
- Find the folder with your WordPress files and open the wp-config.php file.
- At the bottom of the wp-config.php file, above the line that says
/* That's all, stop editing! Happy publishing. */
, add the following lines of code:define('FS_METHOD', 'direct'); define('FS_CHMOD_DIR', 0755); define('FS_CHMOD_FILE', 0644);
- Save the updated file.
- In a browser, it reloads the WordPress dashboard page.
You can now update or install plugins and themes without being prompted for FTP credentials.
Are there more debugging tools?
WP_Debug as designed to work with additional tools, which are enabled the same way as WP_Debug.
define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
Learn more about WP_Debug_Log and WP_Debug_Display by visiting WordPress.org.