Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Notice: Constant FS_METHOD already defined

Discussion in 'Misc WordPress Requests' started by thomasdoerr, Feb 12, 2018.

  1. thomasdoerr

    Guest

    Reply To: Notice: Constant FS_METHOD already defined, by thomasdoerr

    Hi, did you fix that problem?
    I have the same here. As far as I see, it is already defined when it comes to the line in wp-config.php.
    You can write this in order to avoid the error:

    if ( ! defined( ‘FS_METHOD’ ) ) {
    define( ‘FS_METHOD’, ‘direct’ );
    }

    To check how it is defined you can write this line before all that stuff.
    echo “FS_METHOD :”.FS_METHOD;

    I assume that it is set by my theme somewhere. When you take a look at wp-settings.php which is load by the wp-config.php, than you see that a lot of php files are loaded before it comes to the define in wp-config.php.

    Regards,
    Thomas

    Reply To: Notice: Constant FS_METHOD already defined
     
    #1

Share This Page

Monarch Social Sharing Plugin