[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

Microsoft Expression Web breaking PHP file in wordpress template

I'm attempting to use this wordpress template:

http://www.wpshoppe.com/themes/cleanr/

I've used this template successfully in the past.  However, right now I'm editing in Microsoft expression web and I'm running into a problem.  Everything works fine, but if I open up header.php in expression web, change something (just add a space, remove it, save) it breaks the file and the page is no longer centered in IE8.  The file does become a very slightly different size, but winmerge says it is identical to the original.  This does NOT happen if I edit in notepad, but I can't seem to track down what expression web is doing to it (or why) and I've never had problems with expression web in the past.  

A couple other things worth noting:
-Once the file is broken it seems broken for good - pasting it into notepad and resaving does not fix it and the only noticeable difference is that it retains the line breaks from expression web (when originally opening it in notepad there are no line breaks).
-Even if I paste the original working code, from notepad into the broken file in notepad, it's STILL broken.

Any insight into this problem would be very helpful.  I've attached the original file and the broken file as well.
header.php
header-broken.php
0
collages
Asked:
collages
  • 3
1 Solution
 
souquetbressandCommented:
What version of Expression Web are you using?  There have been known problems with PHP and Expression Web 1.  
0
 
collagesAuthor Commented:
The version reads: Microsoft Expression Web (12.0.4518.1014)
0
 
collagesAuthor Commented:
It looks like my version is the original version of expression web.  I do see some things here and there about this version and PHP problems, and version 2 states that it has "PHP support".  I guess this is the source of my problems and I will need to upgrade.
0
 
collagesAuthor Commented:
I've downloaded the trial of expression web 3, and it does not break the file so I'm good to go now.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now