We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43825
    • 6 Posts
    Hello,

    Without being aware of changing anything in the manager all chunks and a lot of snippets are missing. The category element is also empty. How to resolve this?
    Thanks,
    Pieter

    This question has been answered by BobRay. See the first response.

    • Try manually deleting all the folders in the core/cache/ folder. Also make sure your browser cache and cookies are cleared.

      Check your server error logs, as well as your browser console for Javascript errors.

      This can sometimes happen if your hosting has modified their server security settings. MODX uses a lot of AJAX requests to load the Manager, and sometimes server security settings are set to allow only x number of requests within a given period of time.
        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
        • 43825
        • 6 Posts
        Quote from: sottwell at Jan 20, 2016, 02:18 AM
        Try manually deleting all the folders in the core/cache/ folder. Also make sure your browser cache and cookies are cleared.

        Check your server error logs, as well as your browser console for Javascript errors.

        This can sometimes happen if your hosting has modified their server security settings. MODX uses a lot of AJAX requests to load the Manager, and sometimes server security settings are set to allow only x number of requests within a given period of time.

        Thanks for your quick reply!
        To be sure that I don't mess up my whole website please tell how to do that:
        - use the Manage-Clear cache menu of Revolution self
        - use the File Manager of c-Panel and delete the /core/cache directory or only the 17 maps in it, or
        - use my FTP-manager and delete the whole directory or only the 17 maps?
        What is the best option
        • I usually use the MODX Manager's file manager and delete the whole core/cache directory. But it might be safer for you to just delete the subdirectories, using CPanel or FTP.
            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
            • 43825
            • 6 Posts
            Quote from: sottwell at Jan 20, 2016, 01:35 PM
            I usually use the MODX Manager's file manager and delete the whole core/cache directory. But it might be safer for you to just delete the subdirectories, using CPanel or FTP.

            Deleted whole directory, both in MODx manager and c-panel. Revolution recreates the cache immediately, but still no chunks or categories. Now what next?
            • Check error logs - the MODX error log, the PHP error logs, web server error logs, and the browser console for Javascript errors.

              Also you can check the System Settings and try turning compress_js and compress_css off.

              Are there any user groups/permissions involved, or are you logged in as an Administrator user?
                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
                • 30585
                • 833 Posts
                If you have access to phpMyAdmin or any other database management tool you use, check the modx_categories table and make sure it's not empty. If you see your categories there, you'll need to recreate them manually in the manager using the same names as those in the database (Case-sensitive). This should also take care of the missing chunks, which may just be hidden since their categories aren't there.
                  A MODx Fanatic
                  • 43825
                  • 6 Posts
                  In modx_categories all categories are present. creating a new categorie gives this message: A category already exists with that name. Please try a different name.
                  So the only problem seems to be that the categories and chunks are not visible. Problem in the permissions? I never changed them, but recently I upgraded to version 2.4.2 and since then they are gone.
                    • 3749
                    • 24,544 Posts
                    The first thing to try is making yourself a sudo user and then flushing permissions *and sessions*. If that solves the problem, it's definitely a permissions issue.

                    If not, check the MODX error log for clues.

                    If that's no help, it may be because MODX won't show categories or chunks if even one of them has an invalid parent or category field.

                    You could look through them in the DB (or let SiteCheck test them for you). Look for two categories with each other as parents or a category that's its own parent. Look for chunks with a 'category' field that's not the ID of any category.

                    Another way to go would be to set the 'parent' field of all the categories to 0, and 'category' field of all the chunks to 0.

                    That should make all of them visible again and you can move them back into the correct categories.

                      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
                      • 43825
                      • 6 Posts
                      I flushes sessions and permissions but no relief.
                      Error log:
                      [2016-01-20 09:47:17] (ERROR @ /manager/index.php) [configcheck] check core lockdown curl err: 28
                      [2016-01-20 09:47:26] (ERROR @ /connectors/index.php) Error 42S22 executing statement:
                      Array
                      (
                      [0] => 42S22
                      [1] => 1054
                      [2] => Unknown column 'modCategory.rank' in 'field list'

                      Does this give any clues?