I am getting a fatal error when a user visits the delete conformation link sent to their email. After some research, it looks like it is caused by a combination of using Memcached, PHP 5.2, and calling session_destroy():
- http://drupal.org/node/979502
- https://bugs.launchpad.net/pressflow/+bug/513117

Apparently, there is a bug in PHP 5.2 that can cause a fatal error when calling session_destroy():
"Failed to initialize storage module: user (path: /var/lib/php5) in /var/www/wsgc/dev/includes/bootstrap.inc on line 1733"
when calling session_destroy()

This seems to occur when you are using Memcached. The patch is very simple, just call this after session_destroy() around line 350 of user_delete.module:
session_set_save_handler('sess_open', 'sess_close', 'sess_read', 'sess_write', 'sess_destroy_sid', 'sess_gc');

Will attempt to attach a patch.

* Title is wrong. Should be PHP 5.2, not 5.3, but I can't seem to fix it.

CommentFileSizeAuthor
#1 user_delete-session_destroy-1459368-1.patch685 bytesjemond

Comments

jemond’s picture

StatusFileSize
new685 bytes

Patch attached. This is my first Git patch on Drupal, so my apologies if I screwed this up.

jemond’s picture

Issue summary: View changes

Fix typo

jemond’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, user_delete-session_destroy-1459368-1.patch, failed testing.

Anonymous’s picture

Issue summary: View changes

Note typo in title.

damienmckenna’s picture

Issue summary: View changes
Status: Needs work » Needs review

This should be good.