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.

Editing templates...

February 09, 2012 5:50am

Subscribe [6]
  • #1 / Feb 09, 2012 5:50am

    Hi. Since updating to 2.4 I have been having strange issues with my templates.

    I use ‘transmit’ FTP and edit my files directly off the server. All of my templates are ‘save template as file’.

    For some reason edits made via FTP are not appearing on the site. For instance, I make a change vai FTP, save, and refresh the site, nothing has changed. I go to ‘design > templates… and look at the template and it doesn’t have the changes. I open the file again from FTP and it shows the changes…

    This is very strange. Its as if Expression Engine isn’t reading the files.

    Any ideas?

  • #2 / Feb 09, 2012 6:24am

    box-head

    177 posts

    There could be a couple of things to check.

    1. Are the folders in which you template files are stored set to permissions 777? When updating EE in the past I’ve noticed that can sometimes revert to 755.
    2. Have you tried using the ‘Synchronize Templates’ (under ‘Design’ > ‘Templates’) to force the database version and your file version to be the same? You may well receive an error but that should point you in the right direction.

  • #3 / Feb 09, 2012 7:58am

    Hi. Thanks for the reply.

    1. You were right, the file permissions were 755. I have changed them all to 777.

    2. I have synced all templates

    Unfortunately its still doing it, any changes made in my files aren’t showing…

    Any more ideas?

  • #4 / Feb 09, 2012 8:05am

    box-head

    177 posts

    Did you get any notices/errors when using ‘synchronize templates’?
    When changing the file permissions did you change every folder and every file, or just the folders?

    Beyond those 2 things my next check would be whether in the global preferences the path to the templates folder is correct and that templates can be saved as files is turned on. These shouldn’t have changed in the upgrade though as they’re recorded in the database.

  • #5 / Feb 09, 2012 8:07am

    Hi again!

    Okay major breakthrough, I have found that it is all the templates which have php enabled.

    If I turn off PHP they work… hmmm… interesting?

    In return to your questions, no errors, just the folders, paths are correct.

    Thanks

  • #6 / Feb 09, 2012 8:09am

    box-head

    177 posts

    It might be worth changing the permissions on the files as well to 777 to see if that makes a difference.
    Have you tried changing the template from the EE editor and seeing if the change is reflected in the file?

  • #7 / Feb 09, 2012 8:12am

    I just changed the permissions of the files as well, and nothing.

    If I edit through the CP the changes are made. Its very strange that its only the templates with PHP on right?

  • #8 / Feb 09, 2012 8:45am

    box-head

    177 posts

    Yep the PHP thing is very strange.

    I’m not entirely sure what to suggest from here.
    I know there have been problems reported for EE 2.4 related to files (usually images) going missing or not linking correctly to channel entries. It might be that if the same Class(es) are used for updating template files that there might be some crossover.

    Sorry I can’t be much more help.

  • #9 / Feb 09, 2012 8:46am

    Thank you for your help, if the problem persists I will contact support again!

    Thanks again!

  • #10 / Feb 09, 2012 8:47am

    box-head

    177 posts

    No problem, I hope it all gets resolved quickly. I haven’t yet made the jump to 2.4, and I think I might hold off for a little while longer while a few of the bugs are ironed out.

  • #11 / Feb 09, 2012 8:48am

    Wish I had… lesson learnt! ha

  • #12 / Feb 10, 2012 12:51pm

    Shane Eckert

    7174 posts

    Hello Chris Davies,

    I am sorry to hear you are running into this problem.

    I just tried to reproduce this and I am unable to.

    I can save a template to text, download it, update it, upload it and see the changes. This works with or without PHP enabled.

    On those templates that are not working, the ones that were set to allow PHP, is there a common block of code that is in those files? Some PHP maybe?

    Looking forward to your response.

    Cheers,

  • #13 / Feb 17, 2012 7:12pm

    Amanda

    54 posts

    I’m having the same issue.

    This has come up because of multiple environments (dev, staging and prod) and I can’t keep updating the db because of test content.

    So I’ll update/create a template within dev ee, every few times a day I’ll sync dev templates to the server, ftp to my laptop and then ftp to staging/prod.  It’s usually good but I’ve just noticed it won’t create templates with php enabled in the new location.

    So Chris Davies, you’re not alone.

  • #14 / Feb 20, 2012 10:43pm

    dreamten

    2 posts

    I too have the same issue.  All my templates that have php enabled don’t work when saved as a file.  Been having to edit my template files within the EE admin and it’s a real pain. I can also confirm that as soon as php is disabled, I’m able to use my template as a file again. Once re-enabled, the problem returns.

  • #15 / Feb 21, 2012 1:20am

    narration

    773 posts

    This is not a problem I’m having, as I don’t save templates to files.

    However, this is a bug report and fix which I came across in looking for something else, which sounds like the issue several of you are having here.

    https://support.ellislab.com/bugs/detail/17449

    It should be an easy thing to try, and see if it will get you by until Ellis gets a patched 2.4 tested and posted.

    Regards,
    Clive

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

ExpressionEngine News!

#eecms, #events, #releases