Support » Fixing WordPress » Access WordPress on localhost via IP: get_template_directory_uri fail

  • Resolved axew3


    I’m not sure to get the same with different server configurations, so just reporting this:

    Resuming in two word the problem is:
    WordPress fail to locate the correct template uri, if WP installed on localhost with localhost address, and is accessed not via localhost, but via IP address.
    So maybe a patch for this could be applied on wp-includes/theme.php
    function get_template_directory_uri()
    to fix this (maybe secondary) issue.

    Anybody an idea?

    >Access WordPress on localhost via IP fail on loading stylesheet or function, due to wrong get_template_directory_uri()

Viewing 1 replies (of 1 total)
  • well, to resolve, just change install url setting:
    NOT something like
    BUT as value for the installed wordpress, where
    WordPress Address (URL)
    Site Address (URL)
    USE something like:
    with your correct assigned IP.
    And yes, may it can be also resolved by setting up the server in different way.

    • This reply was modified 8 months, 3 weeks ago by  axew3.
Viewing 1 replies (of 1 total)
  • The topic ‘Access WordPress on localhost via IP: get_template_directory_uri fail’ is closed to new replies.