Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am able to get this to send an email when the user is subscribed to a content type, but when I create a node that is supposed to trigger an email to a user who is subscribed to a taxonomy, instead of it sending an email I get this error for each taxonomy term that is attached to a subscriber:
Notice: Trying to get property of non-object in _subscriptions_taxonomy_node_options() (line 105 of /Applications/MAMP/htdocs/multisite/html/sites/mysite.com/modules/subscriptions/subscriptions_taxonomy.module).
Any thoughts? Thanks!
Comments
Comment #1
gettysburger CreditAttribution: gettysburger commentedComment #2
salvisPlease update to the current -dev version and try again.
Comment #3
gettysburger CreditAttribution: gettysburger commentedI tried that and got the same error. I think I figured it out, though. I was using an entity reference. I tried the same taxonomy with a term reference and it worked.
I would appreciate it if it could be confirmed that I need to use a term reference and not an entity reference. Thanks.
Comment #4
salvisThank you for the update, and sorry for the delay.
Yes, subscriptions_taxonomy.module is designed to work with term references. I'm not sure what it would take to make it work with entity references, and what the user interface would have to be...
Comment #5
salvis