wpdngi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Circular redirects with some clients: parse_url and portsSite runs on $_SERVER[“SERVER_PORT”] = 83.
Other site info:
PHP Version 5.2.5
SunOS vhost 5.10 Generic_137111-06 sun4u
Server API Apache 2.0 Handler
WordPress 2.7.11. After fresh install, WP Homepage takes very long time to load.
http://www.energy.wisc.edu/v2/2. The “Hello world!” URL, includes port :83 (as do all other internal URLs):
http://www.energy.wisc.edu:83/v2/?p=1
A. Clicking this URL returns: “The connection has timed out”
B. Removing the port from the URL does load the page, but still takes long time to load:
http://www.energy.wisc.edu/v2/?p=1I tried changing line 259 of wp-includes/canonical.php
from:
if ( !empty( $original[‘port’] ) && $original[‘port’] != 80 )
to both of the following, after which the error still occurred:
if ( !empty( $original[‘port’] ) && $original[‘port’] != $_SERVER[“SERVER_PORT”] )
if ( !empty( $original[‘port’] ) && $original[‘port’] != 83 )I also commented out line 275 which looks like it’s the line that actually adds the port to the URLs, but that didn’t work either:
wp-includes/canonical.php (line 275-276(
# if ( !empty($redirect[‘port’]) )
# $redirect_url .= ‘:’ . $redirect[‘port’];And, tried all these as well, none of which worked:
commented out:
lines 202-205 (didn’t remove port from login page)
lines 259-260 (didn’t remove port from login page)
lines 267-268 (didn’t remove port from login page)
lines 275-276 (didn’t remove port from login page)What’s causing this problem? Thanks for any help.