We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22503
    • 12 Posts
    Hi,
    I have just done a fresh install of RC2.1 and am stuck in the install
    I am pretty sure I have used RC1 on this server without problems
    The error is

    Checking if sessions are properly configured: Failed!

    System info is

    PHP Version 4.3.10

    and session info is

    session
    Session Support enabled
    Registered save handlers files user

    Directive Local Value Master Value
    session.auto_start Off Off
    session.bug_compat_42 On On
    session.bug_compat_warn On On
    session.cache_expire 180 180
    session.cache_limiter nocache nocache
    session.cookie_domain no value no value
    session.cookie_lifetime 0 0
    session.cookie_path / /
    session.cookie_secure Off Off
    session.entropy_file no value no value
    session.entropy_length 0 0
    session.gc_divisor 100 100
    session.gc_maxlifetime 1440 1440
    session.gc_probability 1 1
    session.name PHPSESSID PHPSESSID
    session.referer_check no value no value
    session.save_handler files files
    session.save_path /tmp /tmp
    session.serialize_handler php php
    session.use_cookies On On
    session.use_only_cookies Off Off
    session.use_trans_sid Off Off


    Any help would be appreciated


      • 4018
      • 1,131 Posts
      Try changing session.use_trans_sid to On. It’s likely that the application is looking for a unique transaction ID in the session. smiley

      Jeff
        Jeff Whitfield

        "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
        • 32963
        • 1,732 Posts
        You can try changing the session path if you can.
          xWisdom
          www.xwisdomhtml.com
          The fear of the Lord is the beginning of wisdom:
          MODx Co-Founder - Create and do more with less.
          • 4018
          • 1,131 Posts
          Or check to make sure that PHP and your web server has permissions to write sessions in the /tmp directory. Else, yeah, change to a different path. My Linux server is set to save sessions in /var/lib/php.

          Regarding the session.use_trans_sid, probably best to just leave it off. What this does is allow the session ID to used as part of the URL if cookies aren’t present. In otherwords...if you’re using cookies to keep track of sessions and a visitor has disabled cookies, then PHP will add the session ID to the URL automatically...not a good thing from a security standpoint. It’s enabled on my production server...but this isn’t a big deal since all of my sessions are saved in /var/lib/php anyways. smiley

          Quote from: xwisdom at Jun 29, 2005, 03:14 PM

          You can try changing the session path if you can.
            Jeff Whitfield

            "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
            • 22503
            • 12 Posts
            Thanks guys the problem seems to have fixed itself wink

            Ran the install this morning and all went perfect
            Totally my favorite resolution to a problem grin

            cio
              • 34162
              • 1 Posts
              after checking my session files and all the other goodies that come with sessions I believe that there is actually a bug in the install.
              On about line 14 there is
              // session loop-back tester
              if(!isset($_GET[’s’])) {
              $_SESSION[’session_test’] = 1;
              // I had some problems with sessions when I used headers. This works ok
              echo "<html><head><title>Loading...</title><script>window.location.href=’".$_SERVER[’PHP_SELF’]."?s=set’;</script></head><body></body></html>";
              exit;
              }
              I think it should be
              // session loop-back tester
              $_SESSION[’session_test’] = 1;
              if(!isset($_GET[’s’])) {
              // I had some problems with sessions when I used headers. This works ok
              echo "<html><head><title>Loading...</title><script>window.location.href=’".$_SERVER[’PHP_SELF’]."?s=set’;</script></head><body></body></html>";
              exit;
              }

              because on line 317
              // check sessions
              echo "<p>Checking if sessions are properly configured: ";
              if($_SESSION[’session_test’]!=1 ) {
              echo "<span class=’notok’>Failed!</span></p>";
              $errors += 1;
              } else {
              echo "<span class=’ok’>OK!</span></p>";
              }
              that is where it fails.
              At lease this worked for me.
                • 32963
                • 1,732 Posts
                Strider,

                by moving the $_SESSION[’session_test’] = 1 line above the if block you make the session test useless.

                The statement $_SESSION[’session_test’] = 1 will allways set the session_test variable to 1 and it will allways pass even when the session does not exists



                  xWisdom
                  www.xwisdomhtml.com
                  The fear of the Lord is the beginning of wisdom:
                  MODx Co-Founder - Create and do more with less.
                • Strider,

                  Was the installer failing on you? If so, could you post the regulars re: your OS/PHP/MySQL versions. Thanks!
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 24387
                    • 3 Posts
                    hi, i am using a free hosting server.

                    you can check their settings at http://www.host.sk

                    i get the same error.

                    pls help.

                    can modify their settings or make a setting for my site alone?

                    huh
                    • Quote from: raiyen at Jul 20, 2006, 03:31 AM

                      hi, i am using a free hosting server.

                      you can check their settings at http://www.host.sk

                      i get the same error.

                      pls help.

                      can modify their settings or make a setting for my site alone?

                      huh

                      I wasn’t able to find any information on their PHP/MySQL information other than they have the latest PHP and MySQL; in order to diagnose any server configuration problems, you’ll need to provide a copy of or access to the results of phpinfo() on the server itself.