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.

Additional files added when saving PHP enabled templates as files

February 03, 2012 8:37am

Subscribe [6]
  • #1 / Feb 03, 2012 8:37am

    jtcc_webmaster

    10 posts

    We have “Save Templates as Files” enabled and when saving certain templates, it creates an HTML file and a file with no extension ONLY when PHP is allowed in the template.

    I’ve checked the change logs and didn’t see anything. This started after upgrading from 2.3 to 2.4.

    Not really a big deal but it’s just a bit confusing because the HTML isn’t the template that’s active. The file without and extension is the one that’s being synced with the DB.

    We are running EE 2.4 on IIS 7.0 and PHP 5.2.8.

    Just wondering if anyone has had this issue! Thanks!

    [Mod Edit: Moved to the EE 2 Tech Support forum]

  • #2 / Feb 03, 2012 8:56am

    Ed

    3 posts

    I’m having exactly the same problem. There are two files and the one with no extension is being used as the live template.

  • #3 / Feb 03, 2012 9:18am

    jtcc_webmaster

    10 posts

    Are you running an IIS server or Apache? I’m just wondering if it is a server issue!

  • #4 / Feb 03, 2012 9:44am

    Ed

    3 posts

    I’m on Apache, PHP 5.3.8, and EE 2.4.0

  • #5 / Feb 03, 2012 9:54am

    Ed

    3 posts

    I just did a couple of quick tests and I can verify the issue is caused by setting the template to enable PHP.

    Not just that, but then even if you set the template back to not allowing PHP you are stuck with the problem.

    I had a normal template with no PHP enabled and all that existed on the server was a .html file for it. When I enabled PHO in the template and updated it a file appeared with no extension.

    I then went back to the template in the EE CP and set it back to not allow PHP, updated the template and then deleted the file with no extension from the server.

    However, the file with no extension keeps recreating itself - when I go to sync the templates, it reports that no file exists (the .html one is still there) and synching simply re-adds the file with no extension - so I’m stuck having to edit that one and I have to discard my .html one.

  • #6 / Feb 04, 2012 3:27pm

    Kevin Cupp

    791 posts

    Hi Ed and jzador,

    Thanks for bringing this to our attention. The problem is with the AJAX that updates the template information, it sends along the wrong value for the template_type field. To fix, you’ll unfortunately have to edit the compressed JS. I’ve posted a solution with your bug report:

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

    Please let us know how it works for you.

    Kevin

  • #7 / Feb 08, 2012 11:08am

    kellypacker

    138 posts

    I am having this same problem, even when php is not on. I put in the fix, but it’s still doing it.

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

    kellypacker

    138 posts

    I am not on IIS, apache. Maybe I will post a separate ticket.

  • #9 / Feb 12, 2012 9:06pm

    Dan Decker

    7338 posts

    Hi kellypacker,

    Did you ever post a separate issue?

    I am not on IIS, apache.

    Did you mean that you are not on IIS or apache, or that you are *on* apache rather than IIS?

    Thanks!

  • #10 / Feb 13, 2012 10:07am

    kellypacker

    138 posts

    Hi Dan, no I haven’t had time to properly troubleshoot it enough to post. A couple of my templates do this, but not all. And not all the ones that do that have php enabled. And sorry for the cryptic comment, I must have rushed that. This site is on apache.

  • #11 / Feb 14, 2012 4:10pm

    Shane Eckert

    7174 posts

    Hello kellypacker,

    Please do let us know if there is anything else we can help with. We are here to help!

    Ed and jzador - I see that Ed commented on the bug. jzador - is there anything else I can help you with?

    Cheers,

  • #12 / Feb 21, 2012 6:52am

    I’ve tried editing the .js, but no effect. Since editing it, I’ve re-clicked the upload and finish button on my main index and footer (the two templates affected) but it’s still only responding to changes in the extension-less files.

  • #13 / Feb 24, 2012 11:55am

    Shane Eckert

    7174 posts

    Hello SCSMarketing,

    I would love to help you out. Can you give us a little more information?

    Can you paste in the template code? I would like to see what you are editing.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases