I installed Simplenews version 6.x-1.0-rc3 and my problem is an error:
Fatal error. Call to undefined function getrusage() in ...\simplenews.module on line 2263

I am using Drupal 6.8 on PC with XAMPP and when I try to send newsletter (on cron run with Poormanscron, test send or send to all) this error occurs on a blank page. Sending newsletter isn't working then. But not trying to send newsletter, this error is shown at the bottom of the page. My newsletter based on Event module. I have also RSVP module installed and when I am sending invitations for the same event it is working.

Is it Simplenews bug or maybe my XAMPP mail disfunction? I didn't try to install this configuration on web server yet.

Thanks in advanced for your help.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Sutharsan’s picture

Assigned: Unassigned » Sutharsan

I think I forgot this remark in the PHP manual: "This function is not implemented on Windows platforms." :( It will run fine on Linux based systems. I will fix this tomorrow.

Sutharsan’s picture

Status: Active » Needs review
FileSize
0 bytes

Please try the attached patch.

Sutharsan’s picture

FileSize
3.65 KB

Or better, this one!

Sutharsan’s picture

Assigned: Sutharsan » Unassigned
iamwind’s picture

Please tell me how to use this patch?
thanks!!!

Sutharsan’s picture

http:/drupal.org/patch/apply

Sutharsan’s picture

Status: Needs review » Fixed
FileSize
3.47 KB

I tested the patch on an XAMPP system. The slightly revised patch is now committed. Still your test results are appreciated!

Status: Fixed » Closed (fixed)

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