Im getting to know this module.
Test. I subscribed a user to Articles content type.
Im getting the following error on update.
****
The Article has been updated.
* warning: Missing argument 3 for subscriptions_mail_send() in /home/jvrljicak/workspacePHP/dpc-solution/drupal/modules/subscriptions/subscriptions_mail.module on line 84.
* warning: Missing argument 4 for subscriptions_mail_send() in /home/jvrljicak/workspacePHP/dpc-solution/drupal/modules/subscriptions/subscriptions_mail.module on line 84.
* warning: Missing argument 5 for subscriptions_mail_send() in /home/jvrljicak/workspacePHP/dpc-solution/drupal/modules/subscriptions/subscriptions_mail.module on line 84.
* warning: Missing argument 6 for subscriptions_mail_send() in /home/jvrljicak/workspacePHP/dpc-solution/drupal/modules/subscriptions/subscriptions_mail.module on line 84.
function subscriptions_mail_send($mailkey, $name, $to, $subject, $body, $from) {
$mail_success = drupal_mail($mailkey, $to, $subject, $body, $from);
$watchdog_params = array('@name' => $name, '@to' => "<$to>");
if ($mail_success) {
watchdog('subscriptions', t('subscription notification for @name at @to', $watchdog_params));
db_query("UPDATE {subscriptions_user} SET last_sent = %d WHERE uid = %d", time(), $subscriptions->uid);
if (!db_affected_rows()) {
@db_query("INSERT INTO {subscriptions_user} (uid, digest, last_sent) VALUES (%d, %d, %d)", $subscriptions->uid, 0, time());
}
}
else {
watchdog('subscriptions', t('error mailing subscription notification for @name at @to', $watchdog_params), WATCHDOG_ERROR);
}
}
The question would be where to start looking..
thanks
Comments
Comment #1
salvisSomething's wrong here. Is anyone else seeing this?
Have you installed the new mail_edit? Have you removed the old mail_edit files from the Privatemsg module directory?
Maybe you have a corrupt file or some other conflict.
Where are you coming from? (like, did you have an older version of Subscriptions installed, etc.)
Comment #2
jurivrljicak commentedHi,
Yes i installed the new mail_edit.
I come from 1.9, 2 beta 3. All unsuccessful experiences.
Maybe there is some garbage i am not able to see.
I'll try to debug and find why it is failing to load the user.
thanks
Comment #3
salvisDo you have Privatemsg 5.x-2.x-dev installed? It's not working correctly and seems to be unmaintained. Try removing it.
Comment #4
jurivrljicak commentedi dont have that installed...
thanks
Comment #5
salvisIt may hurt your installation, if it's there, even if it's disabled!
Comment #6
alexiscott commentedI also get the same error message, and do not have Private Message installed, or in my modules directory. I am using the 5-2 beta version of subscriptions.
Comment #7
salvisHmm... Please search through all of your source code for the strings 'send' and "send" (including the quotes!) and report all .inc or .module files where it's found. If you could also show the lines in each, where it's found, then we might get a better picture faster.
Comment #8
salvisWe're at BETA8 now, and I don't think this is relevant anymore.
Please reopen if this is still an issue...
Comment #9
JStuckman commentedI'm running at BETA9 and this is still an issue.
# warning: Missing argument 3 for subscriptions_mail_send() in /var/www/drupal-5.6/sites/all/modules/subscriptions/subscriptions/subscriptions_mail.module on line 131.
# warning: Missing argument 4 for subscriptions_mail_send() in /var/www/drupal-5.6/sites/all/modules/subscriptions/subscriptions/subscriptions_mail.module on line 131.
# warning: Missing argument 5 for subscriptions_mail_send() in /var/www/drupal-5.6/sites/all/modules/subscriptions/subscriptions/subscriptions_mail.module on line 131.
# warning: Missing argument 6 for subscriptions_mail_send() in /var/www/drupal-5.6/sites/all/modules/subscriptions/subscriptions/subscriptions_mail.module on line 131.
# warning: Missing argument 7 for subscriptions_mail_send() in /var/www/drupal-5.6/sites/all/modules/subscriptions/subscriptions/subscriptions_mail.module on line 131.
(((((repeated 3 times)))))
It seems like this only happens if the "Send" module is enabled (http://drupal.org/project/send).
I'm hoping that someone can figure this out, because I really need both the Subscriptions and the Send modules on my site...
Comment #10
salvisHmm, ok, replace the three instances of
subscriptions_mail_sendwith
_subscriptions_mail_sendin subscriptions_mail.module. This will be in BETA10...
Comment #11
JStuckman commentedThis fixes the problem.
However, I have another issue. The "subscriptions_ui" module prevents the "send" module from sending e-mails. I am filing a new bug report for the issue.
Filed bug 212664
Comment #12
JStuckman commentedWill this change appear in the next version of the software?
Comment #13
salvisYes, thanks.
Comment #14
salvisComment #15
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.