[wp-trac] Re: [WordPress Trac] #10234: Incorrect 'siteurl' inserted
into database
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 26 13:31:59 GMT 2009
#10234: Incorrect 'siteurl' inserted into database
--------------------------+-------------------------------------------------
Reporter: SteveBooth | Owner: markjaquith
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 2.8.1
Component: Canonical | Version:
Severity: blocker | Keywords:
--------------------------+-------------------------------------------------
Comment(by SteveBooth):
Further info: This is caused by weirdnesses in the $SYSTEM variables on
my host ISP server, which is running SunOS.These are the values when
running the WP root index.php:
{{{
REQUEST_URI: (i.e. Null)
SCRIPT_NAME: /wordpress/index.php
PHP_SELF: /wordpress/index.php
SERVER_NAME: stevenmbooth.com
}}}
The installer is going to have a real problem with this. In fact, I'm in
the middle of *trying* to install bbPress, and frankly it's been a
nightmare, trying to get it to even run on this platform. To get at least
a fairly reasonable value into REQUEST URI, I inserted the following code
into bb_load.php:
{{{
// On some SunOS/Solarix systems, we need to construct the path
from
// the SERVER_NAME and the SCRIPT_NAME:
if ( !isset($_SERVER['PATH_INFO']) &&
isset($_SERVER['SERVER_NAME']) &&
isset($_SERVER['SCRIPT_NAME']) ) {
$_SERVER['PATH_INFO'] = 'http://' .
$_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'];
$_SERVER['REQUEST_URI'] = $_SERVER['PATH_INFO'];
}
}}}
I suspect a similar thing needs to be done for WP.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10234#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list