Active
Project:
Notifications
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2011 at 21:24 UTC
Updated:
20 Feb 2013 at 20:10 UTC
(This may be a bug in messaging instead of notifications.)
Error message:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'send_method' cannot be null: UPDATE {notifications_subscription} SET send_method=:db_update_placeholder_0 WHERE (send_method = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => [:db_condition_placeholder_0] => mail ) in notifications_messaging_method() (line 1033 of /Users/sharplesa/Sites/n/sites/all/modules/notifications/notifications.module).
How to reproduce:
The problem appears to be that you cannot set the column send_method to NULL in the table notifications_subscription.
Would it make sense to check $param, and if ($op=='replace' && $param==NULL), set $op to 'disable' and throw a warning drupal_set_message()?
Comments
Comment #1
agerson commentedHappening to me as well