We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7647
    • 3 Posts
    Quote from: pawson at Jan 24, 2008, 09:00 PM

    Hey Aaron,

    Ive tried it on a localhost and it works perfectly. I think the problem is powweb.

    Catch Ya Later
    Carlos

    I was thinking that as well... The problem seems to be on Powweb’s end...
    though I still would like to see a fix for this problem...
    It probably would be appropriate to move this thread
    • Hi all,

      I was curious to try and work out why this happens on IIS and to try and replicate the fault on my server.

      within \install\install.php theres this bit of code which basically checks if a certain session exists and a GET variable.


      // session loop-back tester
      if (!$_SESSION[’session_test’] && $_GET[’s’] != ’set’) {
      $_SESSION[’session_test’] = 1;
      $installBaseUrl = (!isset ($_SERVER[’HTTPS’]) || strtolower($_SERVER[’HTTPS’]) != ’on’) ? ’http://’ : ’https://’;
      $installBaseUrl .= $_SERVER[’HTTP_HOST’];
      if ($_SERVER[’SERVER_PORT’] != 80)
      $installBaseUrl = str_replace(’:’ . $_SERVER[’SERVER_PORT’], ’’, $installBaseUrl); // remove port from HTTP_HOST
      $installBaseUrl .= ($_SERVER[’SERVER_PORT’] == 80 || isset ($_SERVER[’HTTPS’]) || strtolower($_SERVER[’HTTPS’]) == ’on’) ? ’’ : ’:’ . $_SERVER[’SERVER_PORT’];
      echo "<html><head><title>" . $_lang[’loading’] . "</title><script>window.location.href=’" . $installBaseUrl . $_SERVER[’PHP_SELF’] . "?action=language’;</script></head><body></body></html>";
      exit;
      }

      This is the line which checks for the session


      if (!$_SESSION[’session_test’] && $_GET[’s’] != ’set’) {

      On my server i changed this line to an invalid session name and it started to loop

      if (!$_SESSION[’session_test1’] && $_GET[’s’] != ’set’) {

      You can see here on my server the working version

      http://87.117.200.76/modx%2Dworking/

      and also the broken version

      http://87.117.200.76/modx-broken/install/index.php?action=language

      So its definitly a sessions saving problem to verify this further I edited the install\index.php and added a php ini_Set command for a non existing session save path the result ended in the install looping.

      @ ini_set(’session.save_path’,’blablablabla’);

      You will need to speak to your web hosting company and try and get them to fix it i think the info above should be enough for them to resolve the matter.

      Let me know how you get on.

      Thanks
      Aaron
        http://www.onesmarthost.co.uk
        UK MODX Hosting with love.
      • After reading this FAQ it seems there is a shared sessions folder on the server which I guess is not working but the link below explains how you can create your own by using a custom php.ini file.

        http://www.powweb.com/knowledgebase/read_article.bml?kbid=3439

        :)
          http://www.onesmarthost.co.uk
          UK MODX Hosting with love.
        • If they are using some kind of clustering and load balancing system, this can happen. You can never be sure which physical server you are connecting to from page to page, and the session file that got saved on the first page, which was allocated server #1, might get server #2 on the next page, but that server doesn’t have a copy of your session file.

          So telling PHP to use a folder on your site’s webspace will allow the session files to be available to your users all the time. Watch out for "garbage collection", though, since now you’ll need to take care of "stale" sessions yourself.
            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
            • 7647
            • 3 Posts
            grin You guys RULE!!!!!
            Finally had a chance to try that last tip (reply #32) (powweb tech support were a waste of time btw)
            and it looks like it worked!!!!

            MARK AS SOLVED smiley