Support » Fixing WordPress » URL guessed using file paths incorrect

  • Hey guys,

    I know there were some bugs fixed in 3.7 relating too how urls are guessed based on file paths, but one of these fixes seems to play up with our set up. Hopefully no one else has the same issue but here is the issue and fix if you need it.

    What happens is WordPress incorrectly picks up the ‘/shared’ in
    the path to our site files. Apache is configured to point at
    /var/www/, but /var/www is a symlink to
    /shared/var/www. This makes the full path to the site files
    /shared/var/www/ WordPress’s path
    manipulation is picking up the /shared from that path for
    some reason.

    So upon installation we get:

    The way around this is too add WP_HOME and WP_SITEURL entries to your wp-config.php

    define('WP_SITEURL', '');
    define('WP_HOME', '');

    Hopefully this is a problem that can be resolved in the next version or two 🙂

  • The topic ‘URL guessed using file paths incorrect’ is closed to new replies.