We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36551
    • 416 Posts
    I've been asked to update an old version of Modx 2.2.0

    I've had good success making big leaps in versions on other sites, so I thought I'd give it a try. The update to 2.50 failed. I went back and started updating in smaller leaps. I'm up to ver 2.3.3. Manager is working, front-end is working. But I can't seem to get past this one.

    I tried updating to 2.4.0. That's when I get this error: Access to undeclared static property: Smarty::$_CHARSET in

    I had previously updated php on the server to 5.6, so I set it back to 2.4. No change.
    I disabled all the plugins, cleared the cache tried again, no change.
    I uninstalled all the extras, (except for two that would not uninstall for some reason), cleared the cache, still no change.

    Any ideas how to get past this?
      • 3749
      • 24,544 Posts
      This is part of the MODX core. I know it's fixed in MODX 2.4.4, so upgrading to that should take care of it.

      I'm pretty sure it's an E_NOTICE or E_STRICT error, so disabling those would also take care of it. It is a bug ( Smarty::$_CHARSET should be Smarty::$_SMARTY_RESOURCE_CHAR_SET), but I'm not sure if it causes any real problems.
        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
        • 36551
        • 416 Posts
        OK, I'll try skipping to 2.4.4. this afternoon and report back.

        The error message is not in the log but on the page. No login, no manager.

        Thanks.
          • 36551
          • 416 Posts
          So I tried installing 2.4.4. Install went fine, just the usual warnings. But when I go to the manager, I get that fatal error on a white page, can't even get to the login.

          I noticed in the error log these errors on the day I first started this.

          [18-May-2016 09:51:04 America/Chicago] PHP Warning:  PHP Startup: imagick: Unable to initialize module
          Module compiled with module API=20131226
          PHP    compiled with module API=20100525
          These options need to match
           in Unknown on line 0
          [18-May-2016 09:51:04 America/Chicago] PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
          Module compiled with module API=20131226
          PHP    compiled with module API=20100525
          These options need to match
           in Unknown on line 0

          But there are no errors today when this failed again.
            • 3749
            • 24,544 Posts
            Did you upgrade with the UpgradeMODX widget?
              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
              • 36551
              • 416 Posts
              Yes, I've also done it manually. Same result.
                • 3749
                • 24,544 Posts
                Try deleting the core/cache files (again) and using private or incognito mode in the browser to log in.
                  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