Solved

Wordpress Template Tags not being replaced after moving servers

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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
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 update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 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