Solved

Wordpress Template Tags not being replaced after moving servers

Posted on 2012-04-04
4
341 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
  • 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This article discusses how to create an extensible mechanism for linked drop downs.
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now