• after deploying my changes from local to server, i dont get any theme background, on investigation it appeaed that the function

    get_stylesheet_directory_uri() in functions.php in the themes directory under wp_content returns localhost path rather than the website path

    it retuns http://localhost:8888/wordpress/ rather than http://mywebsite.com/

    Any pointers if i need to change anything in db or anywhere else.

Viewing 1 replies (of 1 total)
  • Same thing just happened to me, but locally… i’m coding on a Linux VM and i used testing websites via lan on various device. I had some trouble with software updates and i managed a reinstall of php5 apache2.

    I’m not really sure what is going on, but now all files served from WP have 127.0.0.1 path, even if viewed from other than server machine. I’m pretty sure it’s a server (apache?) configuration issue and not a wordpress one, but i’m not strong on networking, so if someone has an idea of how to solve… i appreciate!

    I tested server IP via $SERVER['SERVER_ADDR'] global variable and IP is correct: 127.0.0.1 from inside and 192.168… from outside.

Viewing 1 replies (of 1 total)

The topic ‘get_stylesheet_directory_uri() returns localhost value’ is closed to new replies.