We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9207 ☆ A M B ☆
    • 2,475 Posts
    Trying to install 2.2.5, I get this error:

    FATAL ERROR: MODX Setup cannot continue.
    
    Make sure your PHP session configuration is valid and working.


    This is on my local MAMP host which is already running several versions of MODX Revo, so doesn't that mean that sessions are working?

    I'm about to lose my mind.... php.ini is set to log and display errors, but something is wonky... errors are going to the apache log (which wasn't happening before), and xDebug's error messages are not showing at all. There is some kind of problem with sessions though since my little test pages I wrote to pass around a session variable does not work properly. The last entry in my PHP log is from the day before my computer died (I did a full restore from Time Machine). But that date in the log is suspicious...

    I have CodeIgniter on another domain on my localhost, and it's logging perfectly: xDebug errors show and everything.

    Anyone have any ideas here?
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      AHA. Ok, so somehow when my computer died (and got a new logic board), and then restored via Time Machine, the permissions on my PHP sessions directory changed.

      The last time the PHP sessions directory got modified was the day my computer died:
      /Applications/MAMP/tmp/php


      So I did this:

      sudo chmod -R 777 /Applications/MAMP/tmp/php


      And then POOF: My session tests started working as well as the MODX setup. It's just curious why pre-existing sites worked where new sites did not.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Revo uses the database for sessions, but for installation it needs to have standard PHP file-based sessions (or whatever session configuration is in the PHP configuration).
          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
          • 9207 ☆ A M B ☆
          • 2,475 Posts
          That makes sense in retrospect. Actually, I think CodeIgniter was also configured to use the database.