OK! The current configuration “session.gc_probability” is set to 1 and “session.gc_divisor” is set to 1000.
By default, MODX stores sessions in the database, so misconfiguration of these options can cause the session table to grow in size.
I’m not sure what to do with this? Is this saying it IS misconfigured?
I understand there was an issue related to this in 3.0.0. I assume this upgrade has the fix, but will it configure it correctly or do I have to do something?
I don’t know if I should proceed with the upgrade.
Just proceed with the upgrade.
What you are seeing is the ‘success’ message. The code seems to output a ‘warning’ regardless of whether the check passes or fails. Not sure if this is intentional or a bug.
Still stuck on this. I upgraded 2.8.6 to 3.0.0 no issues. Then to 3.0.5 and I get all these errors (see previous post). Basically all the config parameters in the config.inc.php, db name, user, path etc, urls are all replaced with placeholders and the upgrade crashes.
I restored the config file and attempted another upgrade to 3.0.5 with the same results.
Next I restored the config file and then the site came back up although with several elements not working, slideshow, images, etc. In the manager, the home page is missing several of the assigned TV–even though the TVs are assigned to the template they are just not visible on the TV tab.
Finally, I noticed that the manager, just below the logo, reports the version is 3.0.5 but the upgrade modx widget and update status shows 3.0.0. I assume this is due to the failed 3.0.5 upgrade.
I’m thinking reinstalling 3.0.0 over the top of this might get me back to a working site.
I wouldn’t try to install 3.0.0 after installing 3.0.5.
It’s probably better to try to install version 3.0.5 again.
Or start with a backup of 2.8.6 and install 3.0.5. (There is no need to install 3.0.0 first.)
I haven’t heard of any problems with installing MODX 3.0.5 before. Also, these installation problems have nothing to do with the session garbage collector warning.
This has been a long-standing bug that is incredibly hard to debug and fix once and for all, but is not 3.0.5 related. If you look for it, you’ll find references of this issue dating back to like 2.5.x if not older.
(The problem is also not that the config file gets replaced, that’s always the case, the problem is that it loses the values somewhere along the way and corrupts it.)
What seems to help when when setup causes the config file to go corrupt is:
Wipe your cookies and sessions for the domain you’re installing on.
Wipe core/cache/setup if it exists
Restore the config file from backup
Run the setup again
When running setup, avoid going back steps, and complete it in one go. From what I’ve gathered about this, something about going back a setup step or waiting a long time to continue it, seems to be related to how the data gets corrupted.
No idea why though. I’ve tried to find a fix for it before but it’s just a super weird issue.