I just performed an upgrade from 1.69 to 2.5.5 and two of my templates did not import correctly. They truncated from and following the accented e in “Café”. This was a staging site, so I had plenty of time to figure out what broke, thankfully.
The first template was the embed template for the main navigation. I got this:
<div id="nav">
<ul>
<li><a{if '{embed:my_location}'=="home"} class="selected"{/if} href="{path="site/index"}">Homepage</a></li>
<li><a{if '{embed:my_location}'=="showtimes"} class="selected"{/if} href="{path="site/showtimes"}">Showtimes</a></li>
<li><a{if '{embed:my_location}'=="special_events"} class="selected"{/if} href="{path="site/special_events"}">Events</a></li>
<li><a{if '{embed:my_location}'=="coming_soon"} class="selected"{/if} href="{path="site/coming_soon"}">Coming Soon</a></li>
<li><a{if '{embed:my_location}'=="filmworks_forum"} class="selected"{/if} href="{path="site/filmworks_forum"}">FilmWorks Forum</a></li>
<li><a{if '{embed:my_location}'=="gallery"} class="selected"{/if} href="{path="site/gallery"}">Gallery CafWhich should have been this:
<div id="nav">
<ul>
<li><a{if '{embed:my_location}'=="home"} class="selected"{/if} href="{path="site/index"}">Homepage</a></li>
<li><a{if '{embed:my_location}'=="showtimes"} class="selected"{/if} href="{path="site/showtimes"}">Showtimes</a></li>
<li><a{if '{embed:my_location}'=="special_events"} class="selected"{/if} href="{path="site/special_events"}">Events</a></li>
<li><a{if '{embed:my_location}'=="coming_soon"} class="selected"{/if} href="{path="site/coming_soon"}">Coming Soon</a></li>
<li><a{if '{embed:my_location}'=="filmworks_forum"} class="selected"{/if} href="{path="site/filmworks_forum"}">FilmWorks Forum</a></li>
<li><a{if '{embed:my_location}'=="gallery"} class="selected"{/if} href="{path="site/gallery"}">Gallery Café</a></li>
<li><a{if '{embed:my_location}'=="theater_info"} class="selected"{/if} href="{path="site/theater_info"}">Theater Info</a></li>
<li class="last"><a{if '{embed:my_location}'=="screen_ads"} class="selected"{/if} href="{path="site/screen_ads"}">Screen Ads</a></li>
</ul>
</div>Needless to say, the broken li, ul and div elements lacking closure wrought havoc with the layout! 😊
In the previous upgrade, we had other templates fail to import also, though it was never very clear why those failed. This time around I used the template2files module for 1.6.x to create file versions of all my templates before continuing, and it was a very good move!
http://ellislab.com/forums/viewthread/49716/
This is another good one that allows export AND import of templates as files, though I only needed the above one to get myself good copies of my templates into files. (The module’s export function does not have any issues with the accented character.)
http://ellislab.com/forums/viewthread/70792/P18/#357316
For both you do need to set up Template Global Preferences to allow saving templates as files and specify a directory for them to go into.
http://ee1docs.com/templates/flat_file_templates.html
This information should keep you safe till the import works in all situations!
Terry