2.5 Problem Fixed, Now I’m Scared
-
Hey All,
Through a process of elimination I was able to track down a problem with my upgrade to 2.5 (running on a Windows XP Pro box and IIS out of my home). I am not a coder or skilled with scripting languages in any way shape or form, so my grasp of just what I have done is meager at best and I’m worried about potential consequences.
After running the upgrade script I was unable to reach the admin page. I would get errors regarding “Undefined index: PATH_INFO” in wp-settings.php. I scoped out that file and noticed that there were a couple of “else” statements set up as a fix for IIS that included the PATH_INFO statement. I remarked them out and everything has since been running like a top. The block of code I remarked out was as follows:
// else // { // Some IIS + PHP configurations puts the script-name in the path-info (No need to append it twice) // if ( $_SERVER['PATH_INFO'] == $_SERVER['SCRIPT_NAME'] ) // $_SERVER['REQUEST_URI'] = $_SERVER['PATH_INFO']; // else // $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . $_SERVER['PATH_INFO']; // // Append the query string if it exists and isn't null // if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) { // $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING']; // } // }
Have I found a bug in this version of WordPress, managed to fix a problem anomalous to my system, or stuck my foot in a big ol’ bucket of something that may come back to bite me later? Any input from those folks who actually know what they’re doing (or at least know what I’m doing) would be greatly appreciated.
Uncle Andrew
- The topic ‘2.5 Problem Fixed, Now I’m Scared’ is closed to new replies.