We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44969
    • 16 Posts
    SeriouslyThough Reply #1, 6 years ago
    Hello everyone,

    I have a site running Revo 2.5.1 (I believe; I'm not sure because I can't log in to the manager to check). I'm unable to log in any users in any context (manager or web). When I try, the page just refreshes and nothing else happens. I have many members and use the MODx login system to let them log in, and they are currently unable to do so in the web context just as I am in the manager context. I have a lot of annoyed members right now and I'd like to get this fixed yesterday!

    Oddly, when I deliberately enter an incorrect password, MODx notices this and tells me so. This seems to imply that I'm using the right one.

    I'm looking at this page
    https://docs.modx.com/revolution/2.x/getting-started/installation/troubleshooting-installation#TroubleshootingInstallation-Theloginpagekeepsredirectingmebacktotheloginscreenwithnoerror

    and it says I should "delete the following 3 system settings from the DB table `[prefix]_system_settings` (where prefix is your table prefix):

    session_name
    session_cookie_path
    session_cookie_domain

    Then delete the core/cache/config.cache.php file."

    and I want to make sure I understand those instructions before trying them. Does this mean I should delete the values of those three items (they are already empty)? Or that I should delete those items from the table? It sounds like the latter but I'd appreciate confirmation before I do that! I also don't have the core/cache/config.cache.php file

    I've also read that deleting all files in the core/cache directory can fix this problem, but I'm scared to do that. Should I delete the whole directory structure in that directory if I try that? Or leave all the directories and just delete the files?

    Does anyone have any thoughts? Any help you can provide would be greatly appreciated!

    Thank you for any time or knowledge you may be able to spare.

    Best regards,
    William
      • 3749
      • 24,544 Posts
      It means to blank out the value of each setting. It sounds like that's unnecessary.

      The first thing to try is manually deleting all files in the core/cache directory. Trust me, it won't hurt anything -- I've done it literally hundreds of times. They're just the cache files and MODX will re-create them. Don't delete the cache directory, just the files in it.
        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
        • 44969
        • 16 Posts
        SeriouslyThough Reply #3, 6 years ago
        Quote from: BobRay at Apr 17, 2018, 10:29 PM
        It means to blank out the value of each setting. It sounds like that's unnecessary.

        The first thing to try is manually deleting all files in the core/cache directory. Trust me, it won't hurt anything -- I've done it literally hundreds of times. They're just the cache files and MODX will re-create them. Don't delete the cache directory, just the files in it.

        Hi BobRay, and thank you for your answer!

        Just to make sure I understand, you're saying to delete everything inside the core/cache directory, right? Including all the subdirectories and all their content?
          • 3749
          • 24,544 Posts
          Yes.
            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
            • 44969
            • 16 Posts
            SeriouslyThough Reply #5, 6 years ago
            Hi BobRay,

            Sorry for my delayed reply. I very much appreciate your help! This whole problem began after I had a server hard drive failure. In the end, it was determined that my problem was due to a missing modx session table, which, after being restored, fixed the problem.

            Thanks again for your assistance. I already own a copy of your excellent book, but allow me to plug it here. (Buy the book, everyone! It's MODX:The Official Guide and available here: https://modx.com/learn/modx-the-official-guide)

            Best regards,
            William
              • 3749
              • 24,544 Posts
              Thanks for the kind words (and the plug). I'm glad you got it sorted. smiley
                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