User Delete makes use of the php scandir() function which is not supported in PHP 4.x. PHP 4.x is still supported by Drupal 6.x. This bug can be triggered by deleteing a user from a site and all of their content, then running cron. Cron will not succeed and the following message will be displayed:

"Fatal error: Call to undefined function: scandir() in /hsphere/local/home/kathyann/caribexams.org/sites/all/modules/user_delete/user_delete.module on line 282"

CommentFileSizeAuthor
#2 user_delete-850438.patch1.09 KBilo

Comments

sanduhrs’s picture

Category: bug » feature
Priority: Critical » Normal
Status: Active » Needs work

This module is a backport from D7 functionality.
The requirements [1] say:

Required: PHP version 4.4.0 or higher (Contributed modules may not support this version of PHP)

You are very welcome, if you want to provide a patch, though.
regards.

[1] http://drupal.org/requirements

ilo’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
Category: feature » bug
Status: Needs work » Needs review
StatusFileSize
new1.09 KB

Included a compat function to work with php 4 also.

ilo’s picture

Status: Needs review » Reviewed & tested by the community

I'll commit this with some coder review changes also.

ilo’s picture

Status: Reviewed & tested by the community » Fixed

Committed to DRUPAL-6--1: http://drupal.org/cvs?commit=432186

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.