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?

  1. Yes - Awesome!
  2. No - Try "Easy fixes for the most common roadblocks" at the bottom of this article.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.