We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42046
    • 436 Posts
    After upgrading two sites to 2.2.7 I'm getting a constant stream of caching errors in the logs for both sites.

    I've gone through the regular procedures of manually clearing the core cache, flushing permissions, sessions etc but to no avail. All core cache folders have 755 permissions. Core folder is located under the public web folder though.

    Errors are only generated when using the manager, front-end seems to caching fine.

    Is anyone else experiencing this or have any other suggestions?

    [2013-04-27 19:22:59] (ERROR @ /manager/min/index.php) Could not cache system settings.
    [2013-04-27 19:22:59] (ERROR @ /manager/min/index.php) Could not cache system settings.
    [2013-04-27 19:23:00] (ERROR @ /connectors/layout/modx.config.js.php) Could not cache context settings for mgr.
    [2013-04-27 19:23:05] (ERROR @ /connectors/resource/index.php) Could not cache system settings.
    [2013-04-27 19:23:05] (ERROR @ /connectors/resource/index.php) Error caching action map mgr/actions
    [2013-04-27 19:23:05] (ERROR @ /connectors/security/user.php) Error caching action map mgr/actions
    [2013-04-27 19:23:06] (ERROR @ /assets/components/analytics/connector.php) Could not cache system settings.
    [2013-04-27 19:23:29] (ERROR @ /manager/min/index.php) Could not cache context settings for mgr.
    [2013-04-27 19:23:33] (ERROR @ /connectors/resource/index.php) Could not cache context settings for mgr.
    [2013-04-27 19:23:33] (ERROR @ /connectors/system/registry/register.php) Error caching lexicon topic lexicon/en/core/default
    [2013-04-27 19:23:33] (ERROR @ /connectors/system/registry/register.php) Error caching action map mgr/actions
    [2013-04-27 19:23:38] (ERROR @ /connectors/system/settings.php) Error caching lexicon topic lexicon/en/phpthumbof/default
    [2013-04-27 19:23:38] (ERROR @ /connectors/system/settings.php) Error caching lexicon topic lexicon/en/phpthumbof/default
    [2013-04-27 19:26:46] (ERROR @ /manager/min/index.php) Could not cache system settings.
    [2013-04-27 19:26:46] (ERROR @ /manager/min/index.php) Could not cache context settings for mgr.
    [2013-04-27 19:26:52] (ERROR @ /assets/components/analytics/connector.php) Error caching action map mgr/actions
    19:26:52] (ERROR @ /assets/components/analytics/connector.php) Could not cache system settings.
    [2013-04-27 19:26:52] (ERROR @ /assets/components/analytics/connector.php) Could not cache context settings for mgr.
    [2013-04-27 19:26:52] (ERROR @ /assets/components/analytics/connector.php) Error caching lexicon topic lexicon/en/core/default
    [2013-04-27 19:26:52] (ERROR @ /assets/components/analytics/connector.php) Error caching lexicon topic lexicon/en/analytics/default
    [ed. note: absent42 last edited this post 13 years, 5 months ago.]
      • 42046
      • 436 Posts
      It seems caching in the manager is completely broken. The cache files are being created with an 0644 permission, but the manager doesn't seem to be able to read them back.

      [2013-04-29 19:18:26] (ERROR @ /connectors/system/registry/register.php) Could not cache system settings.
      [2013-04-29 19:18:27] (ERROR @ /connectors/security/user.php) Error caching lexicon topic lexicon/en/core/default
      [2013-04-29 19:18:27] (ERROR @ /assets/components/analytics/connector.php) Error caching action map mgr/actions
      [2013-04-29 19:20:10] (ERROR @ /connectors/resource/index.php) Error caching lexicon topic lexicon/en/core/default
      [2013-04-29 19:20:10] (ERROR @ /connectors/resource/index.php) Error caching lexicon topic lexicon/en/core/default
      [2013-04-29 19:20:10] (ERROR @ /connectors/resource/index.php) Error caching action map mgr/actions
      [2013-04-29 19:20:26] (ERROR @ /connectors/system/settings.php) Error caching lexicon topic lexicon/en/core/default
      [2013-04-29 19:22:04] (ERROR @ /connectors/resource/index.php) Could not cache system settings.
      [2013-04-29 19:22:04] (ERROR @ /connectors/system/dashboard/widget.php) Could not cache system settings.
      [2013-04-29 19:22:04] (ERROR @ /connectors/system/registry/register.php) Could not cache context settings for mgr.
      [2013-04-29 19:22:04] (ERROR @ /connectors/system/dashboard/widget.php) Error caching lexicon topic lexicon/en/core/default
      [2013-04-29 19:22:04] (ERROR @ /connectors/system/registry/register.php) Error caching action map mgr/actions
      [2013-04-29 19:22:15] (ERROR @ /assets/components/analytics/connector.php) Could not cache system settings.
      [2013-04-29 19:22:15] (ERROR @ /assets/components/analytics/connector.php) Error caching action map mgr/actions
        • 40045
        • 534 Posts
        On each page load I have a crapload of these:

        [2013-04-30 14:02:48] (WARN @ /index.php) xPDO->toCache() could not cache object with signature objects/modSnippet/88d7006bfff5f61dfa25dd4a6aa031b7


        dont know if this is related...but it's definitely annoying =)
          • 42046
          • 436 Posts
          Tried moving the core back into public web space thinking it may have trouble accessing the cache directory but alas, still the same errors.

          [2013-04-30 14:13:45] (ERROR @ /index.php) Could not cache system settings.
          [2013-04-30 14:13:46] (ERROR @ /index.php) Error caching lexicon topic lexicon/en/core/tv_widget
          [2013-04-30 14:13:53] (ERROR @ /index.php) Could not cache system settings.
            • 22303 MODX Staff
            • 10,725 Posts
            @exside — disable the cache_db setting in your installation and see if that problem goes away. Is there a reason you have enabled this setting in your site?

            @Dan — this sounds like a permissions problem or a problem with moving your core after running setup (always place the core and then run setup). Are you using the advanced or traditional package? Are all your cache Setting values out of the box?
              • 42046
              • 436 Posts
              When I moved the core, I altered the config files re-ran setup as described in http://rtfm.modx.com/display/revolution20/Hardening+MODX+Revolution#HardeningMODXRevolution-core

              Core paths are correct in all the config.core.php files.

              I'm using the traditional package. Cache settings were as default. I tried disabling some caching but ran into the repeating archivist errors as described here: https://forums.modx.com/thread/83948/archivist-erros-logs-backend-in-2-2-7

              Cache file permissions seem to be working fine (755 on folders, 644 on files), are there any other permissions besides cache files I should be looking for? [ed. note: absent42 last edited this post 13 years, 5 months ago.]
                • 40045
                • 534 Posts
                Quote from: opengeek at Apr 30, 2013, 08:28 AM
                @exside — disable the cache_db setting in your installation and see if that problem goes away. Is there a reason you have enabled this setting in your site?

                ok, that could be the issue and yes, the reason is very slow page loading time and slow manager (6-10 seconds when cache is cleared), probably due heavy use of getResources (I guess, even very optimized calls) and other medium to high complexity stuff, so I thought this speeds things up a bit, am I wrong with this assumption?
                  • 42046
                  • 436 Posts
                  I exported the site contents with Vapor and imported it into a fresh install of MODX thinking this might solve any installation configuration issues but the problem but the errors came back right after loading the site.

                  Does anyone have any ideas what I might need to look for in order to fix this?


                   [2013-05-07 17:56:51] (ERROR @ /connectors/layout/modx.config.js.php) Error caching action map mgr/actions
                  [2013-05-07 17:56:56] (ERROR @ /connectors/resource/index.php) Could not cache system settings.
                  settings.
                  [2013-05-07 17:56:56] (ERROR @ /assets/components/analytics/connector.php) Could not cache system settings.
                  [2013-05-07 17:57:15] (ERROR @ /connectors/system/index.php) Error caching lexicon topic lexicon/en/core/default
                  [2013-05-07 17:57:24] (ERROR @ /connectors/lang.js.php) Could not cache context settings for mgr.
                  [2013-05-07 17:57:24] (ERROR @ /connectors/lang.js.php) Error caching lexicon topic lexicon/en/core/default
                  [2013-05-07 17:57:24] (ERROR @ /connectors/lang.js.php) Error caching action map mgr/actions
                  [2013-05-07 17:57:35] (ERROR @ /assets/components/analytics/connector.php) Could not cache system settings.
                  [2013-05-07 17:57:35] (ERROR @ /assets/components/analytics/connector.php) Error caching lexicon topic lexicon/en/analytics/default
                    • 22303 MODX Staff
                    • 10,725 Posts
                    If you are sure the permissions on all folders/files at core/cache/ have the proper permissions for PHP to write to it, then perhaps you have a bad file uploaded in your installation? Did you upload MODX to the server via FTP? Any other custom paths stored in System Settings?