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.

msm templates as files - how to rehook after upgrade to EE2

November 12, 2011 4:24pm

Subscribe [2]
  • #1 / Nov 12, 2011 4:24pm

    dreas

    61 posts

    ( file this one under—- there’s simply got to be an easier way…)

    I’ve just updated one of our EE installs to 2.3 (from 1.6.9). And after the (usual) config and database errors were dealt with, I’ve got it up and running in the CP

    However, during the install the site template files could not be written to.
    (yes the permissions and paths were confirmed 3 times prior to activating installer. nevertheless… )
    In order to continue the installer asked for the files and folders to be placed outside of the /templates/ folder. done.

    Next I made sure the paths were correct in each site within the install
    Now that site is active, I’d like to hook the templates back in. First thought of course is to use the “synchronize templates” command.

    ...however this overwrites the uploaded template as - I’m assuming based on behavior - the database updated all its template info on upgrade. IOW the more more recent time stamp of the DB supercedes the file creation time/modification time.

    Other than manually rehooking all of the templates in and then modifying all of the templates so their time delta is more recent than in the db what would the speediest and most effective way of re-synching with the correct files be?

    thx in advance folks

    //Andreas

  • #2 / Nov 14, 2011 9:23am

    Kevin Smith

    4784 posts

    Hi Andreas,

    I’m sorry to hear about the frustrating experience you’ve had. To be sure, there shouldn’t be any “usual” errors encountered while upgrading. If you’d like to detail some of those errors, I’d be more than happy to help you with those as well.

    When upgrading a 1.x site that has templates as files to 2.x, I typically find it works best to sync up the files to make sure the EE database has the latest version, upgrade the site, then create the template files again after the upgrade is complete.

    In your case, if your site’s DB is the master record, I would recommend just deleting the template files and having EE recreate the files again. Note: Please backup your site’s database and files before doing so.

    If you try that, does it clear up the issues you’re having?

  • #3 / Nov 14, 2011 10:24am

    dreas

    61 posts

    The issue was the date stamp. I waited an hour then retried and the hook ins worked.  al ok now.
    (well I’m working through a _new to EE2_ openbase_dir issue which I didn’t have with our EE1 install)

    As to the “usual errors” these are well documented in various posts already on the support forums.
    Thank god others had dealt with these issues before or I would have lost days troubleshooting.

    I had the “file field” issue (201345++) and many others. Each time scouring the forums using _Google_ search worked.
    Which reminds me—your forum search and advanced forum search return almost nothing useful.  Are the team going to fix this?
    <friendly tweak>Or do you all use google too?  ;> </friendly tweak>

     

  • #4 / Nov 15, 2011 3:35pm

    Lisa Wess

    20502 posts

    Hi, dreas -

    We are working on the search issue as it was reported in another thread.

    You are all set for the time being?

    thanks!

  • #5 / Nov 15, 2011 3:41pm

    dreas

    61 posts

    yes, you can close the thread.

    //A

  • #6 / Nov 15, 2011 3:51pm

    Lisa Wess

    20502 posts

    thanks dreas!  Please do let us know if there is anything else we can do for you.

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

ExpressionEngine News!

#eecms, #events, #releases