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.

Template modified in web interface, now EE won't recognize existence of or changes to file in file system

June 27, 2012 3:45pm

Subscribe [1]
  • #1 / Jun 27, 2012 3:45pm

    kayaker392

    11 posts

    We use git checkout to deploy our ee code. A new developer accidentally updated a template file in the web interface. Now ee doesn’t even recognize that the file is in the file system “file does not exist” in the synchronize templates interface. Synchronizing the files, then doing the git checkout doesn’t fix things either.

  • #2 / Jun 28, 2012 12:52am

    kayaker392

    11 posts

    Any thoughts here?

  • #3 / Jun 28, 2012 12:28pm

    Dan Decker

    7338 posts

    Hi Kay,

    What version of ExpressionEngine are you using?

    There is a bug with templates as files in ExpressionEngine 2.4

    Does that help?

    Cheers,

  • #4 / Jun 28, 2012 2:26pm

    kayaker392

    11 posts

    Yeap!

    It looks like we have an interim solution:

    I’ve figured out the problem:
    In the production DB, the “news/.single-entry” template has a “template_type” of “undefined”.
    In the developmnt DB, the “news/.single-entry” template has a “template_type” of “webpage”.
    This means that the dev install looks for a file called “.single-entry.html”
    The production install, however,looks for a file called “.single-entry”
    Proposed solution:
    In the production database ‘ee’,
    UPDATE exp_templates
    SET template_type = ‘webpage’
    WHERE group_id = 5 AND template_name = ‘.single-entry’
    Then the production DB will be looking for the dev DB’s template file with the proper file extension.

    We’ll get the upgrade to 2.5.2 on our calendar pronto.

  • #5 / Jun 29, 2012 5:50pm

    Dan Decker

    7338 posts

    Hi Kay,

    Thanks for sharing your workaround!

    Is there anything else I can assist you with?

    Cheers,

  • #6 / Jul 06, 2012 10:12pm

    kayaker392

    11 posts

    Nay, thanks

  • #7 / Jul 09, 2012 4:21pm

    Dan Decker

    7338 posts

    Hey Kay,

    Yea! 😉

    If, however, that changes, please let me know in a new thread!

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases