Trouble installing plugins and uploading images
WordPress may be asking for FTP Credentials when you are trying to install a plugin or upload an image inside your media library. This can also cause errors during installation. We've found this fix works in many cases.
- Open wp-config.php for editing.
- Add the code below to the file and save.
if ( ! defined( ‘FS_METHOD’ ) ) { define( ‘FS_METHOD’, ‘direct’ ); }
- Make sure to add this anywhere above the line that says:
/* That's all, stop editing! Happy publishing. */
Success?
- Yes - Awesome!
- No - Try "Easy fixes for the most common roadblocks" at the bottom of this article.