?
Solved

Wordpress Template Tags not being replaced after moving servers

Posted on 2012-04-04
4
Medium Priority
?
354 Views
Last Modified: 2012-04-10
I moved a wordpress website from one server to another.  I basically copied all of the files to the new server, exported the database and imported it in the new server.

I can now access the home page, but none of the menu items or links work (they lead to 404 errors when clicked) and images are not displayed.  Upon viewing the source code of the page, I can see all of the php template tags are still in the html.  They have not been replaced as they should be.

The database appears to have been migrated.  I did it twice to be sure.  Same with the files.  I copied them twice.

I'm running it on IIS 7.5 using MySQL.  I tried a fresh install of wordpress to make sure I had IIS configured properly and it worked just fine.
0
Comment
Question by:totalgolfnetwork
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 3

Expert Comment

by:gnemi
ID: 37809288
Check your logs for any php errors and make sure php is installed correctly with a phpinfo page.
0
 

Author Comment

by:totalgolfnetwork
ID: 37812612
That all seems to check out.  

I did narrow it down though to a custom theme.  If I switch to a default theme, the problem doesn't exist.  The odd thing is, I migrated a second site and had the exact problem.  The custom theme caused a problem, but the default themes do not.  There is a difference though.  In the second site, the first few template tags were replaced, but all of the rest were not.  

On the existing linux server, the custom themes work fine.  It is just on the IIS server that they do not.
0
 

Accepted Solution

by:
totalgolfnetwork earned 0 total points
ID: 37815069
Well, I figured out the solution to my problem.  The custom skin designer had used short open php tags everywhere.  PHP for IIS disables parsing of short tags by default.  You have to configure PHP for IIS to enable short open tags.
0
 

Author Closing Comment

by:totalgolfnetwork
ID: 37826828
I solved the problem.
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question