0

Total newbie here. I'm a pretty good user of applications, but have never written a single line of code. Installed XAMPP and WP, purchased a template from Envato and plan on working on it over the weekend. Followed instructions for both WP and XAMPP, and all seems to be fine. Running solely on local machine, MAC running Mojave.

Go to install the .zip file on WP, and it asks for credentials for FTP. Not sure what I need to put in here, or what to do to change in order to install the .zip file for my template site.

Any suggestions or recommendations are appreciated in advance.

JVN

2

Congratulation Jon, welcome to the WordPress world!

To fix the issue, just add the following line of code in your installed WordPress's wp-config.php file. It's a PHP constant declaration which tells the WordPress to avoid the FTP. That's it.

define( 'FS_METHOD', 'direct' );

For more info: https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants

  • Thanks, Obi! I will edit the .php file and insert the code you have provided. Does it matter where I insert the new code into the file? Is there any code that needs to be removed? I thank you for your time, expertise and consideration. – Jon V Nov 11 '18 at 13:51
  • You don't have to remove any code and there's no specific place but you can add right after the define( 'WP_DEBUG' ... ); constant. – obiPlabon Nov 12 '18 at 3:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.