WordPress 2.51 and IIS error - Notice: Undefined index: REQUEST_URI in \wp-settings.php on line 81

April 27, 2008 · Filed Under Getting Started 

The original wordpress 2.5 error mentioned in the last post was fixed in the 2.51 release but there is an additional error that crops up. If you are getting an error similiar to the follwing:

Notice: Undefined index: REQUEST_URI in F:\Domains\mydomain.com\wwwroot\wp-settings.php on line 81

To solve this issue you need to edit the wp-settings.php file.  After line 79 or “// Append the query string if it exists and isn’t null” add the following line:
  $_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],0);

This error is due to IIS not recognizing ‘REQUEST_URI’



If you don’t want to make the modification yourself you can download the modified wp-setting.php file from here.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Technorati

Comments

7 Responses to “WordPress 2.51 and IIS error - Notice: Undefined index: REQUEST_URI in \wp-settings.php on line 81”

  1. Micheal on April 28th, 2008 6:54 am

    Thanks. I didn’t think the error was causing me any problems. It was just annoying. Your suggestion fixed the problem.

    Mike

  2. Robert Earl on April 28th, 2008 1:38 pm

    Thank You so much - this solved the problem. Great Information

  3. Adam on May 14th, 2008 11:58 am

    Thanks a million! Those errors were driving me nuts.

  4. Drew on May 24th, 2008 12:22 pm

    Worked for me as well (hosted by Brinkster). Thanks for posting the solution.

  5. Ed Lewis on June 17th, 2008 5:34 am

    Thanks so much! Is this posted on wordpress.org? It was not an easy fix to locate.

  6. jason on June 17th, 2008 5:06 pm

    I am happy to help - I have posted this solution to a couple of questions in the wordpress forums.

  7. Philip Coke on June 23rd, 2008 12:07 am

    thanks

Leave a Reply