ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Upgrade from 1.69 to 2.5.5 truncates templates following accented e in Café

April 23, 2013 3:04pm

Subscribe [1]
  • #1 / Apr 23, 2013 3:04pm

    tbritton

    714 posts

    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 Caf

    Which 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

  • #2 / Jun 25, 2013 2:29am

    tbritton

    714 posts

    A mild bump to this thread…

    Just wondering if the new update scripts allow words like “Café” to exist in templates now?

    Terry

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases