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.

Templates not loading or saving.

November 13, 2012 1:15am

Subscribe [1]
  • #1 / Nov 13, 2012 1:15am

    dbarrio

    2 posts

    Ever since importing a new database and connecting it, I can’t load any of the already created templates or save new templates to the templates/default_site folder. I no longer have access to the old version of the database (which was working).

    I am working on a local install of the site, running MAMP and EE 2.5.2 on Mac, database is MySql 5.5.25. There are 3 other developers working on the site and we’re tracking through Git. They are all able to work with the templates tracked in the repo.

    When I try to synchronize templates, I get:
    Unable to save your template as a text file.

    Allow Templates to be Saved to Files is set to yes.
    My Basepath to Template File Directory is correct.

    If I create a new template group, it shows up in Template Manager, but is not actually created in the file directory.

    I have granted all privileges to the database user in Sequel Pro (Global and Schema), and chmod -R 777 the template folder.

    I don’t know what else to check..?

  • #2 / Nov 15, 2012 10:42am

    Dan Decker

    7338 posts

    Hi dbarrio,

    Welcome to ExpressionEngine and the Forums!

    I’m sorry you are having trouble with templates-as-files!

    There is an extra step or 2 when creating a new template to have it saved as a file.

    First, let’s sync your templates to make sure everything is in order. Design-> Templates-> Synchronize Templates

    Now, in the new template you’ve created, open that in ExpressionEngine’s template editor and make sure that it has been checked to be saved as a file. ExpressionEngine allows for this on a per-template basis, and it’s easy to miss.

    I would also like you to test the reverse. In your file system, create a new file an the template group directory. Name it test.html and then visit the Template Manager in ExpressionEngine. Do you see the new test template there?

    I look forward to your reply!

    Cheers,

  • #3 / Nov 15, 2012 7:45pm

    dbarrio

    2 posts

    Hi Dan,

    I’m a Dan as well!

    So when I try to sync templates, I get:
    Unable to save your template as text file.

    I’ve narrowed it down and see that’s only the case for template files that exist in the Control Panel, but have not yet been created in the file system. Templates that already exist in the file system, I can sync fine.

    If I create a test.html file in one of the existing groups on my machine, Template manager sees it.

    In Templates > Global Preferences, the basepath is correct, and save templates as files is Yes. Also, as you suggested, the new templates have save template as file option set to Yes in thier template editor.

    I also tried changing the entire local templates directory to 777, recursive, but that didn’t help, so I changed it back to 755 to be safe.

  • #4 / Nov 20, 2012 4:28pm

    Dan Decker

    7338 posts

    Well, hello Dan!

    Since you have checked permissions, let’s check ownership too. It reminds me of an ownership conflict I had with git once.

    ~

  • #5 / Nov 21, 2012 5:48pm

    dbarrio

    2 posts

    Not sure what you mean. I have full file system ownership (and permissions) of the folder the file is supposed to be created in…?

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

ExpressionEngine News!

#eecms, #events, #releases