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.

Synchronize template issue

June 03, 2011 6:56am

Subscribe [5]
  • #16 / Jun 10, 2011 4:54am

    John Henry Donovan

    12339 posts

    Vic,

    Is it possible for you to test with a regular FTP client? Download a template, make a change and upload it again to see if it is picked up?

  • #17 / Nov 22, 2011 5:47am

    Pv Ledoux

    95 posts

    Hi,

    I’m not sure that it is related, but I have a ‘relatively’ similar issue. I have a multi-lingual site. So I’m detecting the language directly in the config.php and switching template root path like this:

    /*
    |--------------------------------------------------------------------------
    | Languages Templates Path
    |--------------------------------------------------------------------------
    |
    */
    switch ( substr($_SERVER['REQUEST_URI'], 1,2) ) {
    
     case 'fr':
      $config['tmpl_file_basepath'] = $template_root_path . '/fr/';
      break;
     case 'nl':
      $config['tmpl_file_basepath'] = $template_root_path . '/nl/' ;
      break;
     case 'en':
      $config['tmpl_file_basepath'] = $template_root_path . '/en/' ;
      break;
     default:
      $config['tmpl_file_basepath'] = $template_root_path . '/fr/' ;
      break;
    }

    It was working perfectly until I upgraded to 2.3.1 (from 2.1.3). It seems that EE does not re-check templates, and only use templates that are already in the DB.

    It’s a bit annoying because now, I have french template displaying Dutch content. In Belgium, it’s not really welcome 😉

    Pv

     

  • #18 / Nov 23, 2011 3:27pm

    Dan Decker

    7338 posts

    Hi Pv Ledoux,

    Did you make sure to retain the customizations you made to config.php when you upgraded? Have you synchronized your templates since upgrading? Design-> Templates-> Synchronize Templates

    If you re-sync your templates, does that clear things up for you?

    Thanks!

  • #19 / Nov 24, 2011 3:39am

    Pv Ledoux

    95 posts

    Hi Dan,

    yes my config is the right one. If I synchronize manually, EE re-sync correctly. I noticed on other more ‘standard’ sites, where I have only one template folder, that every time I update a template file, I have to re-sync manually. The problem is clearly related to the upgrade to 2.3.1, as we never had the problem before.

  • #20 / Nov 29, 2011 3:07pm

    Dan Decker

    7338 posts

    Hi Pv Ledoux,

    I haven’t seen this behavior on 2.3.1, but I will try to replicate and see if you have turned up a bug.

    Thanks!

  • #21 / Jan 22, 2012 11:17pm

    E P Alton

    55 posts

    I’ve had this issue on the two sites I have running 2.3.1. Templates I create outside of the CP are not recognized until I manually sync them within the CP. It used to be that just making new files in Coda (the editor I’m using) worked without accessing the CP at all.

    Bummer.

  • #22 / Jan 27, 2012 8:01pm

    Sean C. Smith

    3818 posts

    E.P alton,

    I have experienced this issue recently on a site I’m developing for clients using 2.3.1. I’ve filed a bug report for you on this issue. I encourage you to comment on that thread in order to keep informed of the status of the fix.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases