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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | user_delete-session_destroy-1459368-1.patch | 685 bytes | jemond |
Comments
Comment #1
jemond commentedPatch attached. This is my first Git patch on Drupal, so my apologies if I screwed this up.
Comment #1.0
jemond commentedFix typo
Comment #2
jemond commentedComment #3.0
(not verified) commentedNote typo in title.
Comment #4
damienmckennaThis should be good.