Apologies I am new to this, never logged an issue before, building my first multi-blog site.
SunMailer appears fine, but when I go to subscribe I get the following error:
expects parameter 1 to be array, null given in C:\xampp\htdocs\drupal\sites\all\modules\contrib\sunmailer\sunmailer.module on line 641.
Hence, no subscribers in the statistics menu. I can make the newsletter just fine.
My best guess is this is a PHP 5.3 compatibility issue, but I'm not sure. Any help would be greatly appreciated. Thank you.
I'm running XAMPP v1.7.3, Apache 2.2.14, MySQL 5.1.41, PHP 5.3.1, drupal 6.16.
Comments
Comment #1
Mike Wacker commentedI'll look it into it further, but your initial assessment seems like a reasonable guess. If it weren't isolated to PHP 5.3, you probably wouldn't be the only one reporting a problem.
Comment #2
Stefan3 commentedThank you Mike. In an effort to explore further, I installed xampp 1.7.1, PHP 5.2.9, MySQL 5.0.51a, Apache 2.2.11, and Drupal 6.16 on a separate machine. Rebuilt the site, and tried again.
When I hit the subscribe button this time I got the following similiar message which may lessen the likelihood it is an incompatibility issue. I don't think I am doing something silly, though I don't really understand what is the actual problem. I receive phpmailer and Sunmailer test messages just fine. If you can offer any help that would be greatly appreciated. Thank you.
warning: array_keys() [function.array-keys]: The first argument should be an array in C:\xampp\htdocs\drupal\sites\all\modules\sunmailer\sunmailer.module on line 641.
Comment #3
Satri commentedHi. This is a me-too post. No one can subscribe to the newsletter, I get a same error message:
"warning: array_keys() [function.array-keys]: The first argument should be an array in /home/alexandreleroux/satri.net/sites/all/modules/sunmailer/sunmailer.module on line 641."
Using latest Drupal & latest SunMailer. The test email works fine for me too. As for other software versions, I'm hosted on Dreamhost and guess that it's also mostly up to date. Thanks for your help and the module :-) (maybe this ticket should be tagged as bug?)
Comment #4
Mike Wacker commentedI have isolated it a newsletter which only has one section. Two or more sections and it works fine.
I updated the tests so that they caught the bug, and then I went ahead and made a fix. Let me know if the patch works for you.
Comment #5
Satri commentedHi Mike,
I installed the patch and I'm happy to report it now works. Users can now subscribe to the newsletter. Great job, thanks!
Comment #6
Mike Wacker commentedComment #7
Stefan3 commentedMike,
Apologies for the delay in posting. It took me a while to figure out how to apply the patch, having not done that before. Patch applied, and its working fine. Thank you very much for your assistance and a great module. I look forward to using it in earnest.
Stefan