This is a patch that should be applied once the following two issues are resolved:
#1306074: WSOD when unable to connect to mongodb
#1007974: Backport sessions module to D6

Once these two issues are resolved, this patch will update the sessions module so that it errors cleanly when unable to connect to a MongDB server. This means that instead of totally WSOD breaking your site, it simply becomes "anonymous only".

For those who are interested, I've put all these patches together here: https://github.com/phayes/mongodb

CommentFileSizeAuthor
#1 mongodb_sessions_wsod_1389670.patch1.77 KBphayes

Comments

phayes’s picture

Status: Active » Needs review
StatusFileSize
new1.77 KB

Here's the patch

fgm’s picture

Issue summary: View changes

Three years later and no committed version, can we agree to close this and say there will never be a stable 6.x version for sessions, hence close this issue too ?

Or does it apply to 7.x too ?

slashrsm’s picture

Status: Needs review » Closed (won't fix)

Agreed. If there is still anyone out there that needs this feel free to reopen and bring patch to RTBC state. Maintainers will be happy to commit it in that case.

Did a quick search in D7 code and it seems that we don't have watchdog() calls where they shouldn't be.