We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29076
    • 615 Posts
    Hi.

    My problem: Users don't get further from log in screen. They show up as logged-in in the manager log and Whos online, but the log-in screen just shows an empty log-in-form after submit log in.
    It all worked for several days after last upgrade to 2.7.0.pl, and then suddenly stopped.

    Error log: (ERROR @ /home/verkejml/public_html/core/model/modx/moduser.class.php : 362) PHP warning: session_regenerate_id(): Cannot regenerate session id - session is not active.

    Tried:

    • Delete all files in core/cache.
    • Delete browser cache and cookies.
    • Different browsers and different users with different permissions, up to admin.
    • Reading all forum questions about the same problem, no luck.

    I have one admin user logged in, and I'm super afraid to log out that user, if I'm not able to lo in again, and therefor can't access the manager again.

    My setup:
    Modx Revo 2.7.0pl.
    Just a few "standard" extras installed, all updated.
    PHP 7.0.33

    Question: Is there anything I can do without reinstall everything, and by that be forced to log out my only logged in user?

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

    [ed. note: Sylvaticus last edited this post 5 years, 2 months ago.]
      I think, thererfor I am! But what I am, and why...?
      • 3749
      • 24,544 Posts
      Do you have any plugins connected to login events?

      Are you using Captcha for the Manager login?

      Have you changed anything lately -- MODX upgrade, PHP upgrade, etc.


        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
        • 29076
        • 615 Posts
        Thank's for replying.

        No, I don't have any plugins to login events. I'm only using Captcha for a single Formit form, not for Manager login. And I upgraded to 2.7.0.pl, but everything worked fine for at least four weeks after that.

        And the strange thing is that the user are in fact logged in, it shows in the reports. But it's just impossible to get further from the login form, it just refreshes it self, and the form inputs gets blank.
          I think, thererfor I am! But what I am, and why...?
          • 3749
          • 24,544 Posts
          What happens if you manually type in a specific Manager URL after the login, like this one?

          http://yoursite.com/manager/?a=system/settings


            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
            • 29076
            • 615 Posts
            The same. No difference. I will try to deinstall extras, one by one, to see if some of them gives the session failior. And in the end, I'll have to get to the point to retransfer all the files, and do a complete reinstall. Hopefylly it will not lock me completely out of the manager.
              I think, thererfor I am! But what I am, and why...?
              • 3749
              • 24,544 Posts
              It sounds very much like a problem with sessions, in which case re-installing won't help.

              Take a look at this: https://forums.modx.com/thread/10992/solved-manager-login-session-problems-on-shared-cloud-grid-servers#dis-post-63013
                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
                • 29076
                • 615 Posts
                Thank you for still trying. Unfortunately, the solution you mentioned didn't help either. This is what I added to the .htaccess-file:
                php_value session.save_path /home/verkejml/public_html/assets/sessions/ (correct path)
                php_value session.gc_maxlifetime 28800


                The /sessions folder did not exist before, so I created it.
                Sorry for my lack of knowledge, but server-side and sessions are not within my knowledge area.
                  I think, thererfor I am! But what I am, and why...?
                  • 3749
                  • 24,544 Posts
                  Did that solve things for you?
                    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
                    • 29076
                    • 615 Posts
                    No, i didn't change anything.
                      I think, thererfor I am! But what I am, and why...?
                    • discuss.answer
                      • 3749
                      • 24,544 Posts
                      I assume that you've tried manually deleting all files in the core/cache directory and visiting with your browser in private or incognito mode.

                      Go to System (gear icon) -> System Settings and put 'session' (without the quotes) in the search filter at the upper right of the grid, then hit enter.

                      These are the defaults:

                      session_cookie_domain => (blank)
                      session_cookie_lifetime => 604800,
                      session_cookie_secure => No,
                      session_handler_class => modSessionHandler,
                      session_cookie_path => /
                      anonymous_sessions => Yes
                      


                      Is that what you have?

                      If you make any changes, be sure to manually delete all files in the core/cache directory before testing.

                      You could also turn on Chrome Dev. tools (Ctrl-Shift-i) and watch the Network tab to see if there are any clues to what's happening.
                        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