Forums

[resolved] wp-settings.php on line 38 (4 posts)

  1. Matias
    Member
    Posted 6 years ago #

    Hello I have an error is the following one:

    -------------------------
    PHP Notice: Undefined index: SCRIPT_FILENAME in E:\webspace\hosting\aguante\aguantexu.com.ar\www\Portal\wp-settings.php on line 38 PHP Notice: Undefined index: SCRIPT_FILENAME in E:\webspace\hosting\aguante\aguantexu.com.ar\www\Portal\wp-settings.php on line 38
    ------------------------

    Somebody can inform to me to that it must to Greetings and Matias thanks.

  2. Austin Matzko
    Member
    Posted 6 years ago #

    This seems to be a bug with Windows servers. The best thing to do for now is to comment out lines 38 and 39 of wp-settings, so that it looks like so:

    // Fix for PHP as CGI hosts that set SCRIPT_FILENAME to something ending in php.cgi for all requests
    //if ( strpos($_SERVER['SCRIPT_FILENAME'], 'php.cgi') == strlen($_SERVER['SCRIPT_FILENAME']) - 7 )
    // $_SERVER['SCRIPT_FILENAME'] = $_SERVER['PATH_TRANSLATED'];

  3. Matias
    Member
    Posted 6 years ago #

    Ok thanks I did not receive mail of its answer for that reason it does not answer. I am going to prove if I can solve it, I thank to him.

  4. Matias
    Member
    Posted 6 years ago #

    Good but with that I do. I erase those lines and the error no longer leaves. But so that they serve these? (they are necessary ??)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.