Solved

Wordpress Template Tags not being replaced after moving servers

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

920 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

17 Experts available now in Live!

Get 1:1 Help Now