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.

weird template sync issue

November 05, 2011 6:20pm

Subscribe [3]
  • #1 / Nov 05, 2011 6:20pm

    Steven Grant

    894 posts

    I started a site upgrade from EE1.x to EE2.3.1 - the site uses the Structure module.

    I didn’t develop the original site and so I’ve been setting things up like I would one of my own builds.

    Setting templates as files is part of that. So in my config I’ve got:

    $config['save_tmpl_files']  = "y";
    $config['tmpl_file_basepath']   = $base_path . "/templates/";

    as per usual and that gives the right path in template prefs. However, when I go to sync, I only get 2 template groups.

    I did try clearing out the templates and template groups from the db and then syncing (which works) but realised that it messes with Structure template assignments.

    Any ideas?

  • #2 / Nov 07, 2011 10:13am

    Kevin Smith

    4784 posts

    Hi Steven,

    Have you tried coding the full path in your config.php file yet? I realize that might not be idea for your setup, but I ran into a very similar issue myself earlier this year where I had problems getting templates to sync with a config.php setup that tried to use PHP variables as part of $config[‘tmpl_file_basepath’].

    Could you give that a try and see if the sync behaves as expected?

  • #3 / Nov 07, 2011 10:17am

    Steven Grant

    894 posts

    Thanks Kevin - yeah I tried that too and it didn’t work.

    I restored the db and reset all the paths and seems to be fine now. Definitely a weird issue though. I think it may have been that templates were saved as files on EE1 at one point and then turned off.

    You can close this out though.

  • #4 / Nov 08, 2011 11:25pm

    Dan Decker

    7338 posts

    Hi Steven,

    Thanks for sharing your solution! If you find yourself needing our assistance in the future, just let us know in a new thread.

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

ExpressionEngine News!

#eecms, #events, #releases