Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7052293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:21:58+00:00 2026-05-28T03:21:58+00:00

I have installed IIS7.5 on my box for development including php of course, and

  • 0

I have installed IIS7.5 on my box for development including php of course, and i have copied my wordpress site from my live server and changed the url settings in the db etc.

however when visiting the homepage none of the style or meta data associated in the header.php file is rendered. looking at the source code it changes the default php function

        <?php get_header(); ?>

to include the header.php file and it gets rendered to the browser as

        <? get_header(); ?>

i.e it is viewable as such in the view source.

other php functions and includes and php generally seems to be running ok in other files… i have mantisBT install running smoothly for example.

  • i have already tried copying the files from the server again and then using a fresh install of wordpress too.
  • accessing the wp-admin all seems to work ok

Does anyone have any ideas what might be causing this?

ta

EDIT: adding index.php file – very vanilla.

         <?php get_header(); ?>
         <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

         <!-- Begin Post: <?php the_title(); ?> --> 

            <div class="post">
            <h3 class="posttitle"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
            <div class="title"><div class="postmetadata"><?php the_time('F jS, Y'); ?> by <?php the_author(); ?> in <?php the_category(', '); ?></div></div>

            <div class="entry">
                <?php the_content(); ?>
            </div>

<div class="tags"><div class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?></div></div><div class="comments"><div class="postmetadata"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> <img src="<?php bloginfo('template_directory'); ?>/images/comment.png" alt="Comments" /></div></div>
            </div><br /><br /><br /> 

         <!-- End Post: <?php the_title(); ?> -->

         <?php endwhile; ?>
            <div class="navigation">
                <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
                <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
            </div>

         <?php else: ?>
          <p>Sorry, no posts matched your criteria.</p>
         <?php endif; ?>

         </div>
         <!-- Include Sidebars -->
         <?php include (TEMPLATEPATH . '/sidebarR.php'); ?>
         <?php include (TEMPLATEPATH . '/sidebarL.php'); ?>     
         </div>
         <?php get_footer(); ?>

EDIT: added header.php – also pretty vanilla

     <!DOCTYPE html>
     <html>
     <head>
     <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />    
        <link href="style.css" rel="stylesheet" type="text/css"/>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
<title><?php if (is_single() || is_page() || is_archive()) { ?><?php wp_title('',true); ?> | <?php } ?><?php bloginfo('name'); ?></title>
     </head>
     <body>
     <div id="navwrap">
     <div id="nav">
        <div class="navpad">
            <ul class="navi">
     <li class="page_item"></li>
        </div>
     </div>
     </div>
     <div id="header">
        <div class="headpad">
             </div>
     </div>
     <div id="wrapper">
     <div id="content">

UPDATE:
still getting the same issue, have reinstalled php 5.3.8, checked encoding, saved files as utf-8 without BOM. still no joy.

           <? get_header(); ?>



              <div class="post">

UPDATE 2:

Still not got this to work, the code is standard for a wordpress theme, i’ve installed another theme and it seems to work ok, so i doubt it is a IIS7 issue.

i’ve looked at the encoding of files and made sure everything is utf-8.

all my wordpress core files are intact and up to date.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:21:59+00:00Added an answer on May 28, 2026 at 3:21 am

    it appears a number of issues helped fix it to a certain extent…

    1. removed ~ from folder name in path.
    2. added test.xyz.com addresses to host file
    3. added these addresses to II7.5
    4. updated wordpress db to reflect the new addresses.
    5. rewritten index.php of theme file and rewritten the call to the get_header function.
    6. wasted too much of my life on this…

    result:

    1. localhost/path/to/index.php now works and loads the header as expected. but not all the content (page not found on homepage).

    2. test.xyz.com/index.php doesn’t load header and still shows <? get_header(); ?> and the equivalent for the footer file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just installed windows 7 (IIS7.5) on my development system. I was trying
I have a public web server with the following software installed: IIS7 on port
I have just moved a site from a Windows 2003, IIS6 SQL 2005 server
We have recently moved to a new web server (from IIS6 to IIS7.5) and
I have site minder installed on IIS7 and I am running ASP.NET site on
I have an IIS7.5 web-site, on Windows Server 2008, with an ASP.NET MVC2 web-site
I have PHP, IIS7, ReWrite Module for IIS and Zend all installed. I can
I have installed the following components of SQL Server 2012: management tools - complete
I have installed team foundation server 2012 express and am wanting to connect through
i have installed wordpress and i i have installed couple of plugins and i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.