Forums

[resolved] issues with TEMPLATEPATH when migrating site (6 posts)

  1. blasher
    Member
    Posted 1 year ago #

    my sidebar.php has several include calls in it. i.e. include (TEMPLATEPATH.'/includes/banner.php');

    this works just fine on the main development server (LAMP), but doesn't work on my local WAMP server. i've noticed that if i get rid of the slash in front of includes, then it works on my WAMP server, but not on the LAMP server.

    anyone have a really good way to fix this?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try using get_template_directory() . '/includes/banner.php'

  3. blasher
    Member
    Posted 1 year ago #

    i've done that. i get the exact same results i've also tried get_bloginfo('template_dir').

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Sounds like there's an issue on your local WAMP server. It's adding an unwanted slash.

  5. Simon Prosser
    Member
    Posted 1 year ago #

    just a thought but is the WAMP server in a folder with a space in it? like 'my documents'?

  6. blasher
    Member
    Posted 1 year ago #

    turns out it was something else and just manifesting itself like it was a difference in the values of TEMPLATEPATH.

Topic Closed

This topic has been closed to new replies.

About this Topic