WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#10095 closed feature request (duplicate)

get_home_path() confused if "WordPress address" and "Blog address" slightly different.

Reported by: csixty4 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Administration Keywords:
Focuses: Cc:

Description

User has "WordPress address" (siteurl) set to http://www.tuxotaku.com and "Blog address" (home) set to http://tuxotaku.com. Both are valid URLs.

get_home_path() in wp-admin/includes/file.php is trying to take the "home" address off the front of "siteurl" to get the path to .haccess. The "www." messes up the str_replace() call, and get_home_path() just returns "/" instead of the path to the WordPress files.

Additionally, user's server has open_basedir configured and gives error that "File(/) is not within the allowed path(s):" when is_writable($home_path) called in save_mod_rewrite_rules() (misc.php).

Told user to set both URLs to http://www.tuxotaku.com and it cleared up the problem.

Maybe add a warning message to the General admin screen if "siteurl" doesn't start with the URL from "home"?

Change History (2)

#1 @dd32
10 years ago

There has been mentions of mentioning the www. prefix mess there before...

But just a word of advice to people, Set them BOTH to the site url your actually using, www.something.com is different from something.com

#2 @Denis-de-Bernardy
10 years ago

  • Milestone Unassigned deleted
  • Resolution set to duplicate
  • Status changed from new to closed

see #9873

Note: See TracTickets for help on using tickets.