We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36440
    • 87 Posts
    Exactly. It reverts to the original template. And far as I can tell it's the ONLY issue I'm having with MODx. With Revo 2.1, when changing templates I would get "An error occurred while duplicating the resource". So after upgrading I've just replaced one problem with another.
      • 15734
      • 70 Posts
      I had this problem and fixed it by checking the phpinfo ( Reports -> System Info -> phpinfo ). Look for the Default Timezone. I copied this to the Modx system setting, I'm actually 1 hour ahead of that time so I added a +1 to the server_offset_time setting. I did empty the core/cache folder. Flushed permissions and it worked.

      I did check the variables in MySQL and time zone there is set to SYSTEM. That's what it should be I think.

      If it's something else maybe try a php.ini file in the root of Modx with:

      date.timezone = "US/Central" 


      or whatever. Make sure that matches the setting in Modx.

      Anyway this worked for me. Was very frustrating for a while though.
        • 36440
        • 87 Posts
        phpinfo:
        Default timezone = America/Toronto.
        date.timezone = America/Toronto

        MySQL is set to SYSTEM.
        MODx System Info shows Server Time and Local Time match.

        I again added America/Toronto to the MODx system setting, manually cleared core/cache, flushed permissions, flushed sessions, tried to change template...it reverts back. The problem must be something other than this timezone stuff.
          • 3749
          • 24,544 Posts
          Quote from: graves007 at Jan 31, 2012, 12:01 AM
          phpinfo:
          Default timezone = America/Toronto.
          date.timezone = America/Toronto

          MySQL is set to SYSTEM.
          MODx System Info shows Server Time and Local Time match.

          I again added America/Toronto to the MODx system setting, manually cleared core/cache, flushed permissions, flushed sessions, tried to change template...it reverts back. The problem must be something other than this timezone stuff.

          Did you try turning off compress_js and compress_css in the System Settings?


          ---------------------------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
          MODx info for everyone: http://bobsguides.com/modx.html
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
          • If trying the custom php.ini file, those have to go in the directory where the .php script is running. For MODx, that means you need one in the /manager/ directory to deal with its index.php.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 38512
              • 8 Posts
              I'm having the exact same issue, a fresh installation of 2.2.0-pl2, unable to change Template for a Resource because it reverts back to BaseTemplate. It is not a timezone issue for sure,

              MySQL settings
              system time zone = CET
              time zone = SYSTEM

              select now() 
              2012-01-31 14:49:10


              <?php echo ini_get("date.timezone") . " - " . date("H:i:s"); ?>
              Europe/Warsaw - 14:49:11


              Cleared the cache, turned off compression, tried IE and Firefox. Did a full reinstall, nothing.
                • 36440
                • 87 Posts
                Quote from: BobRay at Jan 31, 2012, 03:24 AM

                Did you try turning off compress_js and compress_css in the System Settings?


                I did. I had to do this to fix this problem:

                http://forums.modx.com/thread/72961/resources-tree-missing-and-blank-pages-for-tabs
                  • 38512
                  • 8 Posts
                  Quote from: graves007 at Jan 31, 2012, 02:15 PM
                  I did. I had to do this to fix this problem:

                  http://forums.modx.com/thread/72961/resources-tree-missing-and-blank-pages-for-tabs
                  This is a different issue and does not fix the problem with being unable to change the template because it reverts after "temporary save". At least it doesn't fix it for me.
                    • 36440
                    • 87 Posts
                    Quote from: sottwell at Jan 31, 2012, 05:37 AM
                    If trying the custom php.ini file, those have to go in the directory where the .php script is running. For MODx, that means you need one in the /manager/ directory to deal with its index.php.

                    Thanks. but I have access to the server's php.ini so would this not just be redundant?
                      • 36440
                      • 87 Posts
                      Bump. Any other suggestions?